增加用户名登录

This commit is contained in:
2026-02-24 21:53:24 +08:00
parent f36d6cb9e9
commit 9ae4e8e614
23 changed files with 388 additions and 110 deletions

View File

@@ -3,10 +3,10 @@ session_start();
include_once("../../inc/class.php");
$db = new myConn;
$GG=array_merge($db->getpost($_POST,"uname|user|3|16|1"),$GG);
$upwd=md5($_POST[upwd]);//MD5加密
$upwd=md5($_POST['upwd']);//MD5<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if($GG['uname'] && $upwd){
if($GG['uname'] == 'admin' && $upwd=='9a7d95c86e6da0fb3b47cd2384cfe27d'){
//写入登录信息及SESSION
//д<EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>SESSION
$_SESSION['XQAdUser']='admin';
echo "/adminxx";
}else{