A lot of friends like beginning something new will touch the server installed php5.4 version after the dedecms5.7 login after a white ah, like snow, the following we look at the dedecms background login blank problem method.
linux,php5.4, weaving dream dedecms background login blank, Reason:
Include/userlogin.class.php, which has a keepuser () function, is to register a session variable with Session_register, but this function has been removed from the php5.4.
| The code is as follows |
Copy Code |
|
Put @session_register ($this->keepuseridtag); Comment out, and then change to
if (!isset ($_session[$this->keepuseridtag]))
As follows:
if (!isset ($_session[$this->keepuseridtag]))
@session_register ($this->keepuseridtag); |
My pre-modification and modified code
Workaround: Find the include/userlogin.class.php file and look for the following:
| The code is as follows |
Copy Code |
|
@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;
Putcookie (' Dedeuserid ', $this->userid, 3600 * 24, '/');
Putcookie (' Dedelogintime ', Time (), 3600 * 24, '/');
Replaced by
Global $admincachefile, $adminstyle;
if (empty ($adminstyle)) $adminstyle = ' dedecms ';
@session_register ($this->keepuseridtag);
$_session[$this->keepuseridtag] = $this->keepuseridtag;
$_session[$this->keepuseridtag] = $this->userid;
@session_register ($this->keepusertypetag);
$_session[$this->keepusertypetag] = $this->keepusertypetag;
$_session[$this->keepusertypetag] = $this->usertype;
@session_register ($this->keepuserchanneltag);
$_session[$this->keepuserchanneltag] = $this->keepuserchanneltag;
$_session[$this->keepuserchanneltag] = $this->userchannel;
@session_register ($this->keepusernametag);
$_session[$this->keepusernametag] = $this->keepusernametag;
$_session[$this->keepusernametag] = $this->username;
@session_register ($this->keepuserpurviewtag);
$_session[$this->keepuserpurviewtag] = $this->keepuserpurviewtag;
$_session[$this->keepuserpurviewtag] = $this->userpurview;
@session_register ($this->keepadminstyletag);
$_session[$this->keepadminstyletag] = $this->keepadminstyletag;
$_session[$this->keepadminstyletag] = $adminstyle;
Putcookie (' Dedeuserid ', $this->userid, 3600 * 24, '/');
Putcookie (' Dedelogintime ', Time (), 3600 * 24, '/'); |
http://www.bkjia.com/PHPjc/633170.html www.bkjia.com true http://www.bkjia.com/PHPjc/633170.html techarticle a lot of friends like beginning something new will touch the server installed php5.4 version after the dedecms5.7 login after a white ah, like snow, oh, the following we look at Dedecms background login blank question ...