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

📄 auth_modpass.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 2 );
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n</head>\r\n\r\n<body  class=\"NormalPage\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n  <tr> \r\n    <td width=\"250\" >&nbsp;&nbsp;<img src=\"images/bar.gif\" >&nbsp;&nbsp;";
echo $strPasswdModi;
echo "</td>\r\n    <td >&nbsp;</td>    <td width=\"100\" >&nbsp;</td>\r\n  </tr>\r\n  </table>\r\n";
$step = $_REQUEST['step'];
$user = $_REQUEST['user'];
$newpass = $_REQUEST['newpass'];
$repass = $_REQUEST['repass'];
$password = $_REQUEST['password'];
if ( $step == "modify" )
{
	if ( $newpass !== $repass )
	{
		err( $strPasswdNTC1, "", "" );
	}
	$oldmd = md5( $password );
	$newmd = md5( $newpass );
	$msql->query( "select * from {$tbl_admin} where user='{$user}' and password='{$oldmd}'" );
	if ( $msql->next_record( ) )
	{
		$fsql->query( "update {$tbl_admin} set password='{$newmd}'  where user='{$user}' and password='{$oldmd}'" );
		if ( $user == $_COOKIE['SYSUSER'] )
		{
			sayok( $strPasswdNTC2, "logout.php", $strPasswdNTC3 );
		}
		else
		{
			sayok( $strPasswdNTC4, "", "" );
		}
	}
	else
	{
		err( $strPasswdNTC5, "", "" );
	}
}
else
{
	echo " <br>\r\n<table width=\"480\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"22\">\r\n  <tr> \r\n    <td class=title align=\"left\" height=\"22\" valign=\"top\" width=\"3\"><img src=\"images/menubg16.gif\" width=\"3\" height=\"30\"></td>\r\n    <td class=title align=\"center\" height=\"22\" colspan=\"2\">";
	echo $strPasswdModi;
	echo "</td>\r\n    <td class=title align=\"right\" height=\"22\" width=\"3\" valign=\"top\"><img src=\"images/menubg17.gif\" width=\"3\" height=\"30\"></td>\r\n  </tr>\r\n</table>\r\n<table width=\"480\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\" align=\"center\">\r\n  <form method=\"post\" action=\"\">\r\n    <tr> \r\n      <td height=\"25\" width=\"125\" class=title> \r\n        <div align=\"right\">";
	echo $strPasswdModiUser;
	echo "</div>\r\n      </td>\r\n      <td height=\"25\" class=con> \r\n        <input type=\"text\" name=\"user\" class=input style=\"width:150px\">\r\n      </td>\r\n    </tr>\r\n    <tr> \r\n      <td height=\"25\" width=\"125\" class=title> \r\n        <div align=\"right\">";
	echo $strPasswdModiOld;
	echo "</div>\r\n      </td>\r\n      <td height=\"25\" class=con> \r\n        <input type=\"password\" name=\"password\" value=\"\" class=input style=\"width:150px\">\r\n      </td>\r\n    </tr>\r\n    <tr> \r\n      <td height=\"25\" width=\"125\" class=title> \r\n        <div align=\"right\">";
	echo $strPasswdModiNew;
	echo "</div>\r\n      </td>\r\n      <td height=\"25\" class=con> \r\n        <input type=\"password\" name=\"newpass\" class=input style=\"width:150px\">\r\n      </td>\r\n    </tr>\r\n    <tr> \r\n      <td height=\"25\" width=\"125\" class=title> \r\n        <div align=\"right\">";
	echo $strPasswdModiRe;
	echo "</div>\r\n      </td>\r\n      <td height=\"25\" class=con> \r\n        <input type=\"password\" name=\"repass\" class=input style=\"width:150px\">\r\n      </td>\r\n    </tr>\r\n    <tr> \r\n      <td height=\"25\" colspan=\"2\" class=title> \r\n        <div align=\"right\"><font color=\"#FFFFFF\"></font></div>\r\n        <div align=\"center\"> \r\n          <input type=\"submit\" name=\"cc\" value=\"";
	echo $strSubmit;
	echo "\" class=button>\r\n          <input type=\"hidden\" name=\"step\" value=\"modify\">\r\n        </div>\r\n      </td>\r\n    </tr>\r\n  </form>\r\n</table>\r\n";
}
echo " \r\n<p align=\"center\">&nbsp;</p>\r\n<p align=\"center\"></p>\r\n      </body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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