mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 07:09:56 +09:00
ISSUE #98, change the rule of checking user's ipaddress for login session from PC
This commit is contained in:
parent
f5379412a8
commit
12e9448758
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ class memberModel extends member
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if($_SESSION['ipaddress'] == $_SERVER['REMOTE_ADDR'])
|
if(ip2long($_SESSION['ipaddress']) >> 8 == ip2long($_SERVER['REMOTE_ADDR']) >> 8)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue