工会web
This commit is contained in:
19
GonghuiWeb/www/js/login.php
Normal file
19
GonghuiWeb/www/js/login.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
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加密
|
||||
if($GG['uname'] && $upwd){
|
||||
if($GG['uname'] == 'admin' && $upwd=='9a7d95c86e6da0fb3b47cd2384cfe27d'){
|
||||
//写入登录信息及SESSION
|
||||
$_SESSION['XQAdUser']='admin';
|
||||
echo "/adminxx";
|
||||
}else{
|
||||
echo "no";
|
||||
}
|
||||
}else{
|
||||
echo "no";
|
||||
}
|
||||
unset($GG,$db);
|
||||
?>
|
||||
Reference in New Issue
Block a user