修复 UC登录兼容

This commit is contained in:
康盛Discuz! 2017-01-09 16:04:31 +08:00
parent d090ffd65b
commit 2210083721
1 changed files with 3 additions and 3 deletions

View File

@ -19,9 +19,9 @@ class adminbase extends base {
function adminbase() {
parent::__construct();
$this->cookie_status = 0;
$sid = $this->cookie_status ? getgpc('sid', 'C') : rawurlencode(getgpc('sid', 'R'));
$this->sid = $this->view->sid = $this->sid_decode($sid) ? $sid : '';
$this->cookie_status = isset($_COOKIE['sid']) ? 1 : 0;
$sid = $this->cookie_status ? getgpc('sid', 'C') : rawurlencode(getgpc('sid', 'R'));
$this->sid = $this->view->sid = $this->sid_decode($sid) ? $sid : '';
$this->view->assign('sid', $this->view->sid);
$this->view->assign('iframe', getgpc('iframe'));
$a = getgpc('a');