或者
问答详情页顶部banner图
您的位置:首页 >开发 > 模板建站 > 企业模板站 > 安装蓝色织梦cms企业网站模板时输入127.0.0.1出现空白,怎么...

安装蓝色织梦cms企业网站模板时输入127.0.0.1出现空白,怎么...

提问者:云客网官方问答  |   分类:企业模板站  |   浏览164次  |   悬赏分:0积分 2017-03-09 06:00:32

我要回答

提 交

匿名

  • 锟***哥

    解决方法:找include/userlogin.class.php里面的keepuser()函数,将其修改为以下代码即可 function keepUser(){ if($this->userID != '' && $this->userType != ''){ global $admincachefile,$adminstyle; if(empty($adminstyle)) $adminstyle = 'dedecms'; if (!isset($_SESSION[$this->keepUserIDTag])) $_SESSION[$this->keepUserIDTag] = $this->userID; if (!isset($_SESSION[$this->keepUserTypeTag])) $_SESSION[$this->keepUserTypeTag] = $this->userType; if (!isset($_SESSION[$this->keepUserChannelTag])) $_SESSION[$this->keepUserChannelTag] = $this->userChannel; if (!isset($_SESSION[$this->keepUserNameTag])) $_SESSION[$this->keepUserNameTag] = $this->userName; if (!isset($_SESSION[$this->keepUserPurviewTag])) $_SESSION[$this->keepUserPurviewTag] = $this->userPurview; if (!isset($_SESSION[$this->keepAdminStyleTag])) $_SESSION[$this->keepAdminStyleTag] = $adminstyle; PutCookie('DedeUserID', $this->userID, 3600 * 24, '/'); PutCookie('DedeLoginTime', time(), 3600 * 24, '/'); $this->ReWriteAdminChannel(); return 1; }else{ return -1; } }

    2017-03-09 15:43:21
    评论0  |   0
问答详情中间banner