From 2210083721684f7cbb334f05a3df09575fb6a420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E7=9B=9BDiscuz!?= Date: Mon, 9 Jan 2017 16:04:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20UC=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/uc_server/model/admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upload/uc_server/model/admin.php b/upload/uc_server/model/admin.php index 2fb677a..339e17e 100644 --- a/upload/uc_server/model/admin.php +++ b/upload/uc_server/model/admin.php @@ -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');