<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

关于dede后台登陆后一片空白

时间:2020-12-14

今天家里的电脑上新装DEDE5.7后台登陆后竟然一片空白,装PHPCMS却没有问题。百度了好久,也没找到一个像样的答案,晕死!

  看了源码后发现在源码里的类库中很多都是PHP4的语法,var这个函数在PHP5中已经不用了,可是在类库中的文件还是使用这个函数,而且很多的类都是2007年写的了,而我的配置是win7+PHP/5.4.7+Apache/2.2.22+mysql5.7.27。

 

现在由于官方还没有更新,我就自己解决了方法,现在已经可以完全登录了!主要原因是由于为了版本兼容的时候将类中的语句中没有进行判断引起的,采用PHP4的语句,只是屏蔽了提示,由于PHP5.4中已经不再使用这样的语句,并且出现了提示,所以会白屏。

解决方法是:

找到include文件夹中的userlogin.class.php文件中

@session_register下的所有语句屏蔽掉。 

 


          

/ * @session_register($this->keepUserIDTag);* /
            $_SESSION[$this->keepUserIDTag] = $this->userID;

          

/ *  @session_register($this->keepUserTypeTag);* /
            $_SESSION[$this->keepUserTypeTag] = $this->userType;

           

/ * @session_register($this->keepUserChannelTag); * /
             $_SESSION[$this->keepUserChannelTag] = $this->userChannel;

            

/ * @session_register($this->keepUserNameTag);* /
            $_SESSION[$this->keepUserNameTag] = $this->userName;

           

/ * @session_register($this->keepUserPurviewTag);* /
            $_SESSION[$this->keepUserPurviewTag] = $this->userPurview;

           

/ * @session_register($this->keepAdminStyleTag);* /
            $_SESSION[$this->keepAdminStyleTag] = $adminstyle;

这样可以正常登陆了!

    0
    首页
    案例
    关于
    联系