-
- $omode = $_REQUEST["omode"];
-
- if (!$omode) $omode = "tflc";
-
- getVirtCounters($link);
-
- if (strchr($omode, "l")) getLabelCounters($link);
-
- if (strchr($omode, "c")) {
- if (get_pref($link, 'ENABLE_FEED_CATS')) {
- getCategoryCounters($link);
- }
- }
-
- if (strchr($omode, "f")) getFeedCounters($link);
- if (strchr($omode, "t")) getTagCounters($link);
-
- getGlobalCounters($link, $global_unread);
+ $omode = $_REQUEST["omode"];
+ print json_encode(getAllCounters($link, $omode));