]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
update translations
[tt-rss.git] / backend.php
index a2a87cafd69126d0baa458c80513fb5353faa76a..925f81087bdeab4799658a191110a08f6b5bebe2 100644 (file)
        require_once "modules/pref-filters.php";
        require_once "modules/pref-labels.php";
        require_once "modules/pref-users.php";
-       require_once "modules/pref-feed-browser.php"; 
 
        if (!sanity_check($link)) { return; }
 
 
                        }
 
+                       $_SESSION["viewfeed:counters_stamp"] = time();
+
                        outputFeedList($link, $tags);
                break; // feeds
 
                        /* Updating a label ccache means recalculating all of the caches
                         * so for performance reasons we don't do that here */
 
-                       if (time() - $_SESSION["viewfeed:ccache_update_stamp"] > 120) {
+//                     if (time() - $_SESSION["viewfeed:ccache_update_stamp"] > 120) {
                                if ($feed >= 0) {
                                        ccache_update($link, $feed, $_SESSION["uid"], $cat_view);
                                }
                                $_SESSION["viewfeed:ccache_update_stamp"] = time();
-                       }
+//                     }
 
                        set_pref($link, "_DEFAULT_VIEW_MODE", $view_mode);
                        set_pref($link, "_DEFAULT_VIEW_LIMIT", $limit);
                        $match_on = db_escape_string($_GET["m"]);
                        $search_mode = db_escape_string($_GET["smode"]);
 
+                       if (SINGLE_USER_MODE) {
+                               authenticate_user($link, "admin", null);
+                       }
+
                        if (!$_SESSION["uid"] && $user && $pass) {
                                authenticate_user($link, $user, $pass);
                        }