validate_session: hotfix for SINGLE_USER_MODE
This commit is contained in:
parent
92952e25dc
commit
741edab27a
|
@ -1534,6 +1534,10 @@
|
|||
}
|
||||
|
||||
function validate_session($link) {
|
||||
if (SINGLE_USER_MODE) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (SESSION_CHECK_ADDRESS && $_SESSION["uid"]) {
|
||||
if ($_SESSION["ip_address"]) {
|
||||
if ($_SESSION["ip_address"] != $_SERVER["REMOTE_ADDR"]) {
|
||||
|
|
Loading…
Reference in New Issue