您现在的位置是:主页 > news > 用ps软件做ppt模板下载网站有哪些内容/百度营销平台
用ps软件做ppt模板下载网站有哪些内容/百度营销平台
admin2025/5/20 0:20:26【news】
简介用ps软件做ppt模板下载网站有哪些内容,百度营销平台,在c盘做网站可以吗,成立一个做网站的公司成本今天把电脑上的phpStudy升级到2013版。在登录本地织梦DEDECMScms5.7时,/dede/login.php居然显示空白。由于周五我装配了windows8,由于是电脑问题,等我关掉防火墙配置好电脑服务后,发现还是不可以。在百度后终于得到高人的日志指点。起因很容易…
今天把电脑上的phpStudy升级到2013版。在登录本地织梦DEDECMScms5.7时,/dede/login.php居然显示空白。由于周五我装配了windows8,由于是电脑问题,等我关掉防火墙配置好电脑服务后,发现还是不可以。在百度后终于得到高人的日志指点。
起因很容易,phpstudy2013版是用的php5.4,而织梦DEDE的login.php中采用了一个被php5.4抛弃不需要的函数(是不是真的抛弃我不知道,反正原文这么写的)
session_register()
意思就是这说个函数不可以用了,想用也用不了。办法很容易,直接注释掉,不需要进行注册就可以声明session。
在织梦DEDE目录include/userlogin.class.php中查找
function keepUser()
大概在281行,把keepUser()函数下的 @session_register(); 整段注释掉(删除也可以),结果如下:
function keepUser()
{
if($this-userID != $this-userType != )
{
global $admincachefile,$adminstyle;
if(emptyempty($adminstyle)) $adminstyle = 织梦DEDE;
//@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, /);
$this-ReWriteAdminChannel();
return 1;
}
else
{
return -1;
}
}
另外的解决办法就是在include/userlogin.class.php 中声明一个函数
function session_register()
{
return true;
}
希望以上内容可以解决您的问题!
如有其他问题欢迎大家一起交流学习!