change_email-complete.php
来自「GForge 3.0 协作开发平台 支持CVS, mailing lists, 」· PHP 代码 · 共 55 行
PHP
55 行
<?php/** * * Commit user's email change * * This page should be accessed with confirmation URL sent to user in email * * SourceForge: Breaking Down the Barriers to Open Source Development * Copyright 1999-2001 (c) VA Linux Systems * http://sourceforge.net * * @version $Id: change_email-complete.php,v 1.18 2001/06/27 21:52:21 pfalcon Exp $ * */require_once('pre.php'); require_once('common/include/account.php');if (!$confirm_hash) { $confirm_hash = $ch;}$confirm_hash = html_clean_hash_string($confirm_hash);$res_user = db_query("SELECT * FROM users WHERE confirm_hash='$confirm_hash'");if (db_numrows($res_user) > 1) { exit_error("Error","This confirm hash exists more than once.");}if (db_numrows($res_user) < 1) { exit_error("Error","Invalid confirmation hash.");}$u =& user_get_object(db_result($res_user, 0, 'user_id'), $res_user);exit_assert_object($u, 'User');if (!$u->setEmail($u->getNewEmail())) { exit_error( 'Could Not Complete Operation', $u->getErrorMessage() );}site_user_header(array('title'=>$Language->getText('account_change_email-complete','title'),'pagename'=>'account_change_email'));?><p><?php echo $Language->getText('account_change_email-complete','confirm', array($u->getUnixName(),$u->getEmail(),'<'.$u->getUnixName().'@'.$GLOBALS['sys_users_host'].'>')) ?></p><p><a href="/"><?php echo $Language->getText('account_change_email', 'return'); ?></a></p><?phpsite_user_footer(array());?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?