📄 sendpwd.php
字号:
<?
require("config.php");
if (empty($username)) {
?>
<html>
<head>
<title>发送密码</title>
<LINK href="style.css" type=text/css rel=stylesheet>
</head>
<body bgcolor="<? echo $bg_color; ?>">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="220"><img src="images/pcd.jpg" height="60"></td>
<td align="center" valign="middle"><font size="3"><b><font color="#336699">发送密码</font></b></font></td>
</tr>
</table>
<br>
<form method="post" action="">
<table width="500" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="ccccff">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td bgcolor="#336699"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td>请输入你的用户名:
<input type="text" name="username" size="16">
</td>
</tr>
<tr>
<td> <input type="submit" value="提 交" style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'" name="submit">
</td>
</tr>
<tr>
<td bgcolor="#336699"> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<br>
</body></html>
<? exit;}
if (file_exists("user/$user_file")) {
$user_list=file("user/$user_file");
$count=count($user_list);
for ($i=0; $i<$count; $i++) {
$detail=explode("|",$user_list[$i]);
if ($detail[1]==$username) {$userpwd=$detail[4]; $useremail=$detail[2];
?>
<html>
<head>
<title>发送密码</title>
<LINK href="style.css" type=text/css rel=stylesheet>
</head>
<body <? echo "bgcolor=$bg_color"; ?>>
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td ><img src="images/pcd.jpg" height="60"></td>
<td align="center" valign="middle"><font size="3"><b><font color="#336699">发送密码</font></b></font></td>
</tr>
</table>
<br>
<table width="500" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="ccccff">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td bgcolor="ccccff"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td><center>
<?
$emailsubject="重发密码";
$message="帐户情况:
用户名: $username
密码 : $userpwd
请牢记您的密码.
旅行快递
\n";
if (mail("\"$username\" <$useremail>",$emailsubject,$message,"From: \"风事画馆\" <$admin_email>")) echo "发送成功";
else echo "发送失败";
?>
</center>
</td>
</tr>
<tr>
<td bgcolor="ccccff"> </td>
</tr>
</table>
</td>
</tr>
</table>
<br><center><a href="pcd.php">回到首页</a></center>
</body></html>
<?
exit;}}}
header("Location:sendpwd.php");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -