| dedecms不允许管理员账户前台登陆的解决方法,找到文件 ./include/memeberlogin.class.PHP
找到函数CheckUser()
修改
[javascript] view plain copy 在CODE上查看代码片派生到我的代码片
if(is_array($row))
{
if($this->GetShortPwd($row['pwd']) != $this->GetEncodePwd($loginpwd))
{
return -1;
}
else
{
//管理员帐号不允许从前台登录
if($row['matt']==10) {
#return -2;
//修改 允许管理账户前台登陆
$this->PutLoginInfo($row['mid'], $row['logintime']);
return 1;
}
else {
$this->PutLoginInfo($row['mid'], $row['logintime']);
return 1;
}
}
}
这样管理员账户就能从前台登陆
(责任编辑:最模板) |

免费ecshop仿京东商城2014整
人气:11568
仿buychina多语言淘宝代购系
人气:1588
电子数码工业化工用品程
人气:979
2011版兰亭(lightinthebox.com
人气:11278
凡客成品ecshop模板普通版
人气:652
家居用品商城系统|ecshop家
人气:898