removing IP stability check in the panel: it's unenforceable as of 2017 :/ Fixes #173
This commit is contained in:
parent
57b0402875
commit
71980d06a8
|
@ -58,13 +58,6 @@ if ( empty($id) && isset($_COOKIE["oldid"]) && !empty($_COOKIE["oldid"])) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($r['lastip'] != get_remote_ip() ) {
|
|
||||||
$error=_("Your IP is incorrect.");
|
|
||||||
include("index.php");
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
// FIXME we should add a peremption date on the cookie
|
|
||||||
|
|
||||||
// Ok, so we remove the cookie :
|
// Ok, so we remove the cookie :
|
||||||
setcookie('oldid','',0,'/');
|
setcookie('oldid','',0,'/');
|
||||||
unset($_COOKIE['oldid']);
|
unset($_COOKIE['oldid']);
|
||||||
|
|
|
@ -285,13 +285,6 @@ class m_mem {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$db->next_record();
|
$db->next_record();
|
||||||
if (variable_get('single_ip_desktop', '0', "Set this to 1 to enable the IP address check and unicity for an account. Prevents multiple connections to the same account and disable IP address roaming.")
|
|
||||||
&& $db->f("ip")) {
|
|
||||||
if ($db->f("me") != $db->f("ip")) {
|
|
||||||
$err->raise("mem", _("IP address incorrect, please contact the administrator"));
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$cuid = $db->f("uid");
|
$cuid = $db->f("uid");
|
||||||
|
|
||||||
if (panel_islocked() && $cuid != 2000) {
|
if (panel_islocked() && $cuid != 2000) {
|
||||||
|
|
Loading…
Reference in New Issue