verify.php
来自「GForge 3.0 协作开发平台 支持CVS, mailing lists, 」· PHP 代码 · 共 93 行
PHP
93 行
<?php/** * * Registration verification page * * This page is accessed with the link sent in account confirmation * email. * * SourceForge: Breaking Down the Barriers to Open Source Development * Copyright 1999-2001 (c) VA Linux Systems * http://sourceforge.net * * @version $Id: verify.php,v 1.42 2001/06/11 21:49:49 pfalcon Exp $ * */require_once('pre.php');if ($submit) { if (!$loginname) { exit_error( $Language->getText('account_verify','missingparam'), $Language->getText('account_verify','usermandatory') ); } $u = user_get_object_by_name($loginname); if (!$u || !is_object($u)){ exit_error( $Language->getText('account_verify','invaliduser'), $Language->getText('account_verify','nouser') ); } if ($u->getStatus()=='A'){ exit_error( $Language->getText('account_verify','invalidop'), $Language->getText('account_verify','accountactive') ); } $confirm_hash = html_clean_hash_string($confirm_hash); if ($confirm_hash != $u->getConfirmHash()) { exit_error( $Language->getText('account_verify','invalidparam'), $Language->getText('account_verify','cannotconfirm') ); } if (!session_login_valid($loginname, $passwd, 1)) { exit_error( $Language->getText('account_verify','accessdenied'), $Language->getText('account_verify','invalidcred') ); } if (!$u->setStatus('A')) { exit_error( $Language->getText('account_verify','cannotactivate'), $Language->getText('account_verify','erroractivate').': '.$u->getErrorMessage() ); } session_redirect("/account/first.php");}$HTML->header(array('title'=>'Login','pagename'=>'account_verify','titlevals'=>array($GLOBALS['sys_name'])));echo $Language->getText('account_verify', 'verify_blurb');if ($GLOBALS['error_msg']) { print '<p><font color="#FF0000">'.$GLOBALS['error_msg'].'</font>';}?><form action="<?php echo $PHP_SELF; ?>" method="post"><p><?php echo $Language->getText('account_verify', 'loginname'); ?><br /><input type="text" name="loginname" /></p><p><?php echo $Language->getText('account_verify', 'password'); ?><br /><input type="password" name="passwd" /></p><input type="hidden" name="confirm_hash" value="<?php print $confirm_hash; ?>" /><p><input type="submit" name="submit" value="<?php echo $Language->getText('account_verify', 'login'); ?>" /></p></form><?php$HTML->footer(array());?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?