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

📄 cpasswd.php

📁 This a free web game, animportantnote of this, "xia domain" for free software, follow the "general p
💻 PHP
字号:
<?
/*
===============================================================
=                 侠域(Ver 0.9.0) 使用规则版本(Ver 0.2)     =
 此程序所有版权归原作者所有. 此版权信息不得删除.
= Copyright (C) 2001-2002  WFoxd                              =
=                                                             =
=版权所有(C)2002,作者 田野(风狐) 未经许可 不得使用 传播    =
=E-MAIL:wfoxd@cnnetgame.com                                   =
=http://www.cnnetgame.com                                     =
===============================================================
*/
include "./inc/config.inc.php";
include "./inc/style.inc.php";
/*
=====================
=密码修改 (Ver 0.1.2)
=公元:2001年11月18日
=====================
*/
?>
<?
if($B1){
	if($T2 != $T3){
		echo "<br><font color=red>重复密码不正确!</font>\n";
		echo "<meta http-equiv=\"refresh\" content=\"3; url=cpasswd.php\">";
		exit();
	}	

	include "./inc/db.inc.php";
	include "./inc/config.inc.php";
	$now_passwd = mysql_query("SELECT pw FROM renwu_member WHERE id='$T4'");
	$now_passwd = mysql_result($now_passwd,0,"pw");
	
	if($now_passwd != $T1){
		echo "<br><font color=red>用户密码错误!</font>\n";
		echo "<meta http-equiv=\"refresh\" content=\"3; url=cpasswd.php\">";
		exit();
	}
	
	@mysql_query("UPDATE renwu_member SET pw='$T2' WHERE id='$T4'");
	
	mysql_select_db($yh_db);
	@mysql_query("UPDATE user_info SET passwd='$T2' WHERE id='$T4'");
	echo "<font color=red>密码已经修改,请一定记住新密码!</font>\n";
	echo "<meta http-equiv=\"refresh\" content=\"3; url=index.htm\">";
	
	mysql_close();
}
?>
<form action=cpasswd.php method=post>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
  <tr>
    <td width="100%">
    <p align="center"><h3>密码修改(注意:这将同时修改你的幽狐网站通密码)</h3></td>
  </tr>
  <tr>
    <td width="100%">用户ID<input type=text name=T4 size=10> </td>
  </tr>
  <tr>
    <td width="100%">现在密码<input type=password name=T1 size=10> </td>
  </tr>
  <tr>
    <td width="100%">新密码<input type=password name=T2 size=10> </td>
  </tr>
  <tr>
    <td width="100%">重复密码<input type=password name=T3 size=10> </td>
  </tr>
</table>
<input type=submit value=修改 name=B1 style="font-family: 宋体; border-style: ridge; border-width: 0; background-color: #CCFF99; color:#666633">
</form>
 <div align="center">
<pre>===============================================================
=             侠域(Ver 0.9.0) 使用规则版本(Ver 0.2)         =
=                                                             =
=        本系统版权完全属于 风狐 未经许可 不得公布 使用 传播  =
=E-MAIL:wfoxd@cnnetgame.com                                   =
=http://www.cnnetgame.com                                     =
===============================================================</pre>
    </div>

⌨️ 快捷键说明

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