ISSUE #98, change the rule of checking user's ipaddress for login session from PC

This commit is contained in:
ngleader 2013-11-24 16:41:29 +09:00
parent f5379412a8
commit 12e9448758

View file

@ -188,7 +188,7 @@ class memberModel extends member
}
else
{
if($_SESSION['ipaddress'] == $_SERVER['REMOTE_ADDR'])
if(ip2long($_SESSION['ipaddress']) >> 8 == ip2long($_SERVER['REMOTE_ADDR']) >> 8)
{
return true;
}