]> git.wh0rd.org Git - tt-rss.git/commitdiff
validate_session: hotfix for SINGLE_USER_MODE
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 20 Sep 2007 02:57:53 +0000 (03:57 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 20 Sep 2007 02:57:53 +0000 (03:57 +0100)
functions.php

index 38b4d5ffecf561b816c8af4a9c8a882a6026f4b6..163b4addaae36dc7488ab5d31d3b6cf608c0bfc3 100644 (file)
        }
 
        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"]) {