织梦CMS安装完成后登陆界面空白的解决办法
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
$_SESSION[$this->keepAdminStyleTag] = $adminstyle;
$完美世界小说]
//-------------修改结束------------------------
PutCookie('DedeUserID', $this->userID, 3600 * 24, '/');
由于公司服务器坏掉,我要给网站搬家,换服务器
公司网站由织梦CMS搭建,可是我用禅道构建简单的服务器,不过所有代码以及数据库都导入后,登陆后台后,出现空白页面,我于是在网站收集了一下解决办法
解决方ห้องสมุดไป่ตู้:
找include/userlogin.class.php里面的keepuser()函数,把@session_register全部改写,
把@session_register($this->keepUserIDTag); 注释掉,然后改为
if (!isset($_SESSION[$this->keepUserIDTag]))
全部有6个
修改后如下:
function keepUser()
{
if($this->userID != '' && $this->userType != '')
PutCookie('DedeLoginTime', time(), 3600 * 24, '/');
$this->ReWriteAdminChannel();
return 1;
}else{
return -1;
}
}
$_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);
{
global $admincachefile,$adminstyle;
if(empty($adminstyle)) $adminstyle = 'dedecms';
//------------修改开始----------------------
if (!isset($_SESSION[$this->keepUserIDTag]))
$_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_register($this->keepUserIDTag);
$_SESSION[$this->keepUserIDTag] = $this->userID;
if (!isset($_SESSION[$this->keepUserTypeTag]))
//@session_register($this->keepUserTypeTag);
$完美世界小说]
//-------------修改结束------------------------
PutCookie('DedeUserID', $this->userID, 3600 * 24, '/');
由于公司服务器坏掉,我要给网站搬家,换服务器
公司网站由织梦CMS搭建,可是我用禅道构建简单的服务器,不过所有代码以及数据库都导入后,登陆后台后,出现空白页面,我于是在网站收集了一下解决办法
解决方ห้องสมุดไป่ตู้:
找include/userlogin.class.php里面的keepuser()函数,把@session_register全部改写,
把@session_register($this->keepUserIDTag); 注释掉,然后改为
if (!isset($_SESSION[$this->keepUserIDTag]))
全部有6个
修改后如下:
function keepUser()
{
if($this->userID != '' && $this->userType != '')
PutCookie('DedeLoginTime', time(), 3600 * 24, '/');
$this->ReWriteAdminChannel();
return 1;
}else{
return -1;
}
}
$_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);
{
global $admincachefile,$adminstyle;
if(empty($adminstyle)) $adminstyle = 'dedecms';
//------------修改开始----------------------
if (!isset($_SESSION[$this->keepUserIDTag]))
$_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_register($this->keepUserIDTag);
$_SESSION[$this->keepUserIDTag] = $this->userID;
if (!isset($_SESSION[$this->keepUserTypeTag]))
//@session_register($this->keepUserTypeTag);