上网IP随时变动的进来,解决6.0版后台登录验证问题
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");
}
本站资源均来自互联网或会员发布,如果不小心侵犯了您的权益请与我们联系。我们将立即删除!谢谢!