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"); } } |
注意事项:UTF-8版必须用Dreamweaver或Editplus软件修改,否则会将文件转成GBK编码
|