return true;
}
$admin_info = H::decode_hash($_SESSION['admin_login']);
if(!($admin_info['uid'] == USER::get_client_uid() AND $admin_info['UA'] == $_SERVER['HTTP_USER_AGENT'] AND $admin_info['ip'] == $_SERVER['REMOTE_ADDR'] AND $_SESSION['permission']['is_administortar']))
{
unset($_SESSION['admin_login']);
if($_POST['_post_type'] == 'ajax')
{
die('帐户已退出,请重新登录。');
}
else
{
HTTP::redirect(get_setting('base_url') . '/?/admin/login/url-' . base64_encode($_SERVER['REQUEST_URI']));
}
}
unset($_POST['_post_type']);
阅读全文
收起全文