織夢dedecms v5.7安裝完成後登入後台出現空白,經過分析**,發現登入驗證的時候用到了這個函式session_register() 原來我的php版本是5.4版本的,經過一系列的搜尋,發現這個函式在php5.4版本中已經被棄用了,已經被刪除了。
在include/userlogin.class.php中查詢function keepuser(),大概在281行把keepuser()函式下的@session_register();整段改為:
//@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;
此外, /data/tplcache/ 這兩個資料夾必須設定成讀取並能寫入。設定成777,這樣後台才能正常使用。 織夢5 7DEDECMS標籤大全
1.關鍵描述呼叫標籤 2.路徑呼叫標籤 dede global name cfg webname 4.欄目導航呼叫標籤 首頁 field pubdate runphp yes a strftime m d me b strftime m d me ntime time day3 3600 24 if...
織夢dedecms漏洞修復大全 5 7起
很多人說dedecms不好,因為用的人多了,找漏洞的人也多了,那麼如果我們能修復的話,這些都不是問題.一 include dialog select soft post.php檔案,搜尋 大概在72行的樣子 fullfilename cfg basedir.activepath.filename 修...
織夢dedecms漏洞修復大全 5 7起
很多人說dedecms不好,因為用的人多了,找漏洞的人也多了,那麼如果我們能修復的話,這些都不是問題.任意檔案上傳漏洞修復 一 include dialog select soft post.php檔案,搜尋 大概在72行的樣子 fullfilename cfg basedir.activepath...