📄 losepwd.php
字号:
<?php
/*
+-------------------------------------------
|
| Technology of Wane netware
| ========================================
| Powered by wan-e.net inc
| (c) 2004 wane.net Power Services
| http://www.wan-e.net
| ========================================
| Web: http://www.wan-e.net
|
+-------------------------------------------
| Autohr : wsfuyibing
+-------------------------------------------
*/
eval($function->load_lang('losepwd'));
if ($submit_pwd && $action=='pwdsubmit')
{
if (empty($username)) {$function->clickback($LANG_PWD[PWD_NOUSER]);}
elseif (empty($question) && empty($answer) && empty($email)) {$function->clickback($LANG_PWD[PWD_NOINFO]);}
else if (empty($email))
{
$user = addslashes($username);
$ques = addslashes($question);
$answ = addslashes($answer);
$query=$db->query("select username,question,answer from {$tablepre}member where username='$user' and question='$ques' and answer='$answ'");
if (!$db->num($query))
{
$function->clickback($LANG_PWD['PWD_NOTMATCH_QUES']);
}
else
{
$newpass = rand('10000001','99999999');
/*
$db->query("UPDATE {$tablepre}member set password='".md5($newpass)."' where username='$username'");
require $wane_root.'globals/class_password.php';
$chpwd = new wane_password;
$chpwd -> password_wane($username,md5($newpass));
*/
$function->showmsg($default_url.'index.php?action=memcp',$LANG_PWD['PWD_SUCCESS_QUES'],'100');
}
}
else
{
$user = addslashes($username);
$mail = addslashes(htmlspecialchars($email));
$query=$db->query("select username,email from {$tablepre}member where username='$user' and email='$mail'");
if (!$db->num($query))
{
$function->clickback($LANG_PWD['PWD_NOTMATCH_MAIL']);
}
else
{
}
}
}
else
{
eval($tpl->set_var(array(
'WEBTITLE' => $function->headtitle('['.$webtitle.'] '.$LANG_PWD['PWD_TITLE']),
'NAVIGATA' => "<a class='navigata' href='{$default_url}index.php?action=idx'>$webtitle</a> $category_separate $LANG_PWD[PWD_TITLE]",
'BACKURL' => $_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : $default_url.'index.php?action=idx',
)));
$tplfiles = array('header','losepwd','footer');
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -