mirror of
https://github.com/LyLme/lylme_spage.git
synced 2024-11-17 14:34:08 +08:00
11 lines
261 B
PHP
11 lines
261 B
PHP
<?php
|
|
if(isset($_COOKIE["admin_token"]))
|
|
{
|
|
$token=authcode(daddslashes($_COOKIE['admin_token']), 'DECODE', SYS_KEY);
|
|
list($user, $sid) = explode("\t", $token);
|
|
$session=md5($conf['admin_user'].$conf['admin_pwd']);
|
|
if($session==$sid) {
|
|
$islogin=1;
|
|
}
|
|
}
|
|
?>
|