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
// if (get_pref($link, "SYNC_COUNTERS") || ($mode == "prefetch" && $csync)) {
- if (time() - $_SESSION["view:counters_stamp"] > 5 && $mode == "prefetch") {
+ if (time() - $_SESSION["view:counters_stamp"] > 3 && $mode == "prefetch") {
print "<counters>";
getAllCounters($link, $omode);
print "</counters>";
/* 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);
}