mirror of
https://github.com/LyLme/lylme_spage.git
synced 2024-11-17 22:38:03 +08:00
修复错误
This commit is contained in:
parent
022bbe22b4
commit
21087b7d73
@ -1,10 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(isset($_COOKIE["admin_token"]))
|
if(isset($_COOKIE["admin_token"]))
|
||||||
{
|
{
|
||||||
$token=authcode(daddslashes($_COOKIE['admin_token']), 'DECODE', SYS_KEY);
|
$token=authcode(daddslashes($_COOKIE['admin_token']), 'DECODE', SYS_KEY);
|
||||||
list($user, $sid) = explode("\t", $token);
|
list($user, $sid) = explode("\t", $token);
|
||||||
$session=md5($conf['admin_user'].$conf['admin_pwd'].$password_hash);
|
$session=md5($conf['admin_user'].$conf['admin_pwd']);
|
||||||
if($session==$sid) {
|
if($session==$sid) {
|
||||||
$islogin=1;
|
$islogin=1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user