增加用户名登录
This commit is contained in:
@@ -4,7 +4,7 @@ include_once("../inc/admin.smarty.php");
|
||||
$db = new myConn;
|
||||
$db->links();
|
||||
$GG=$db->getpost($GG);
|
||||
if($GG['id']){
|
||||
if(!empty($GG['id'])){
|
||||
$arr = explode(",",$GG['id']);
|
||||
$idd = implode(',',$arr);
|
||||
$data = $db->fetch_all("select HeadHttp from IndividualDatum where UserID in (".$idd.")");
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
ini_set("display_errors", "On");
|
||||
include_once("../../inc/class.php");
|
||||
include_once("../../inc/admin.smarty.php");
|
||||
$ppxq -> caching = ture; //false 缓存关闭 ture 开启
|
||||
$ppxq -> cache_lifetime = 86400; //缓存时间秒1天
|
||||
$ppxq -> caching = true; //false <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ر<EFBFBD> ture <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$ppxq -> cache_lifetime = 86400; //<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>
|
||||
$ppxq -> display('login.tpl');
|
||||
unset($GG,$ppxq);
|
||||
?>
|
||||
Reference in New Issue
Block a user