function keepUser() { if($this->userID != '' && $this->userType != '') { global $admincachefile,$adminstyle; if(empty($adminstyle)) $adminstyle = 'dedecms'; //if (!isset($_SESSION[$this->keepUserIDTag])) @session_register($this->keepUserIDTag); $_SESSION[$this->keepUserIDTag] = $this->userID; //if (!isset($_SESSION[$this->keepUserTypeTag])) @session_register($this->keepUserTypeTag); $_SESSION[$this->keepUserTypeTag] = $this->userType; //if (!isset($_SESSION[$this->keepUserChannelTag])) @session_register($this->keepUserChannelTag); $_SESSION[$this->keepUserChannelTag] = $this->userChannel; //if (!isset($_SESSION[$this->keepUserNameTag])) @session_register($this->keepUserNameTag); $_SESSION[$this->keepUserNameTag] = $this->userName; //if (!isset($_SESSION[$this->keepUserPurviewTag])) @session_register($this->keepUserPurviewTag); $_SESSION[$this->keepUserPurviewTag] = $this->userPurview; //if (!isset($_SESSION[$this->keepAdminStyleTag])) @session_register($this->keepAdminStyleTag); $_SESSION[$this->keepAdminStyleTag] = $adminstyle; PutCookie('DedeUserID', $this->userID, 3600 * 24, '/'); PutCookie('DedeLoginTime', time(), 3600 * 24, '/'); $this->ReWriteAdminChannel(); return 1; } else { return -1; } }
但依舊沒有解決該問題;于是繼續百度,發現一個讓織夢顯示錯誤的方法 如下:
找到:include/common.inc.php文件,打開,查找程序代碼:
// error_reporting(E_ALL); error_reporting(E_ALL || ~E_NOTICE);
改為:
error_reporting(E_ALL); // error_reporting(E_ALL || ~E_NOTICE);
然后根據問題的提示:
Parse error: syntax error, unexpected ';' in D:\www\www.xxxxx.com\data\config.cache.inc.php on line 160
最后才發現是我自定義的變量里的值,被我刪除了,變成空白了。這樣問題就出來了。
Copyright © 2009-2019 Ywcms.Com All Right Reserved. 湘ICP備16006489號-2