validate_session: hotfix for SINGLE_USER_MODE

This commit is contained in:
Andrew Dolgov 2007-09-20 03:57:53 +01:00
parent 92952e25dc
commit 741edab27a
1 changed files with 4 additions and 0 deletions

View File

@ -1534,6 +1534,10 @@
} }
function validate_session($link) { function validate_session($link) {
if (SINGLE_USER_MODE) {
return true;
}
if (SESSION_CHECK_ADDRESS && $_SESSION["uid"]) { if (SESSION_CHECK_ADDRESS && $_SESSION["uid"]) {
if ($_SESSION["ip_address"]) { if ($_SESSION["ip_address"]) {
if ($_SESSION["ip_address"] != $_SERVER["REMOTE_ADDR"]) { if ($_SESSION["ip_address"] != $_SERVER["REMOTE_ADDR"]) {