6.0版的系統更加安全,登錄驗證增加了登錄IP驗證。如果用戶上網的IP是變動的,一旦IP跟登錄IP不一樣就會出現“提示未登陸”的提示。隨時變動IP的用戶可以按下面方法修改解決:
修改e/class/functions.php文件,搜索“$ip=egetip();”,共有兩處,將它修改為“$ip='127.0.0.1';”即可解決,修改如下:
function DoECookieRnd($userid,$username,$rnd,$dbdata,$groupid,$adminstyle){
global $do_ecookiernd;
$ip='127.0.0.1';
$ecmsckpass=md5(md5($rnd.$do_ecookiernd).'-'.$ip.'-'.$userid.'-'.$username.'-'.$dbdata.$rnd.$groupid.'-'.$adminstyle);
esetcookie("loginecmsckpass",$ecmsckpass,0,1);
}
function DoChECookieRnd($userid,$username,$rnd,$dbdata,$groupid,$adminstyle){
global $do_ecookiernd;
$ip='127.0.0.1';
$ecmsckpass=md5(md5($rnd.$do_ecookiernd).'-'.$ip.'-'.$userid.'-'.$username.'-'.$dbdata.$rnd.$groupid.'-'.$adminstyle);
if($ecmsckpass<>getcvar('loginecmsckpass',1))
{
printerror("NotLogin","index.php");
}
}