summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-10-16 10:03:18 +0100
committerAndrew Dolgov <[email protected]>2005-10-16 10:03:18 +0100
commitab3f3f72f6a346cff97a8c3bb29daada4e59c0bd (patch)
treef5bfe6b5890ee1337c3d609835b45a49f162f30b /backend.php
parent8823cd590f1c72c211ac3a1f58590ef60fa82240 (diff)
support for selective output in forceUpdateAllFeeds
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/backend.php b/backend.php
index 2caa2513d..c1fc6020c 100644
--- a/backend.php
+++ b/backend.php
@@ -72,7 +72,7 @@
$count = db_fetch_result($tmp_result, 0, "count");
- print "<feed id=\"$id\" counter=\"$count\"/>";
+ print "<label id=\"$id\" counter=\"$count\"/>";
error_reporting (E_ERROR | E_WARNING | E_PARSE);
@@ -313,10 +313,14 @@
if ($subop == "forceUpdateAllFeeds" || $subop == "updateAllFeeds") {
update_all_feeds($link, true);
+ $omode = $_GET["omode"];
+
+ if (!$omode) $omode = "tfl";
+
print "<rpc-reply>";
- getLabelCounters($link);
- getFeedCounters($link);
- getTagCounters($link);
+ if (strchr($omode, "l")) getLabelCounters($link);
+ if (strchr($omode, "f")) getFeedCounters($link);
+ if (strchr($omode, "t")) getTagCounters($link);
print "</rpc-reply>";
}