validate_session: hotfix for SINGLE_USER_MODE

master
Andrew Dolgov 17 years ago
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…
Cancel
Save