⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get_pwd.php

📁 VIP信息处理系统源码
💻 PHP
字号:
<title>找回密码</title>
<link href="../public/index.css" rel="stylesheet" type="text/css">
<script src="../public/check.js"></script>
<script>
function check_sub(){
	if(check_null("用户名/Email",document.form1.username)){
			return false;
	}
	if(document.form1.type.value!="advertizer" && document.form1.type.value!="webmember"){
		alert("请选择您的身份类型!");
		return false;
	}
	return true;
}
</script>
<?
include_once("../public/db_conn.php");

if($_POST["submit"]=="确认提交" && !empty($_POST["username"]) && ($_POST["type"]=="advertizer" || $_POST["type"]=="webmember")){
	$table=$_POST["type"];
	
	$sql="select * from $table where username='$_POST[username]' or email='$_POST[username]'";
	$rs=mysql_query($sql);
	$num=mysql_num_rows($rs);
	if($num<1){
		echo "<script>alert('没有找到匹配的用户名和Email!\\n\\n请确认输入正确的用户信息!\\n');history.go(-1);</script>";
		exit();
	}else{
		$str_name=$row["username"];
		$str_pwd=$row["pwd"];
		$email=$row["email"];
		$message="
欢迎您访问 麒润网络 http://www.keyrun.com !

请妥善保留这封电子邮件. 您的帐号资料如下:

----------------------------
帐号: $str_name
密码: $str_pwd
----------------------------

请牢记您的密码.

本邮件为系统自动发送,请不要回复.

—————————————
 http://www.keyrun.com
 珠海麒润网络有限公司 
—————————————";
		mail($email, "取回用户密码 www.keyrun.com", $message, "From: admaster@keyrun.com\nReply-To: admaster@keyrun.com\nX-Mailer: PHP/" . phpversion());
		echo "<script>alert('您的密码已发至您的E-mail,请注意查收!');window.close();</script>";
		exit();
	}
}

?>
<table width="400" border="0" align="center" cellpadding="10" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td valign="top" class="bgconn">
      <br>
      <table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#CCCCCC" bordercolordark="#ffffff" bgcolor="#CCCCCC" >
        <form name="form1" method="post" action="" onSubmit="return check_sub()">
          <tr>
            <td height="30" colspan="4" class="listtbhd"><div align="center">请输入用户名或Email</div></td>
          </tr>
          <tr bgcolor="f9f9f9">
            <td width="39%" height="30" align="right">用户名/Email:</td>
            <td width="61%"><input name="username" type="text" id="username" size="20" maxlength="20" class="text"></td>
          </tr>
          <tr bgcolor="f9f9f9">
            <td width="39%" height="30" align="right"> 选 择 身 份 :</td>
            <td width="61%">
			<select name="type">
              <option value="#">请选择身份类型</option>
              <option value="advertizer">广告主</option>
              <option value="webmember">网站主</option>
            </select></td>
          </tr>
          <tr bgcolor="f9f9f9">
            <td height="30" colspan="4" align="center">
              <input name="submit" type="submit" class="subbt" value="确认提交">
              <input name="button_r" type="button" class="subbt" value="关闭窗口" onClick="window.close()"> </td>
          </tr>
        </form>
      </table>
      <p><br>
          <br>
    </p></td></tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -