Esempio n. 1
0
function getAllCounters()
{
    $data = getGlobalCounters();
    $data = array_merge($data, getVirtCounters());
    $data = array_merge($data, getLabelCounters());
    $data = array_merge($data, getFeedCounters());
    $data = array_merge($data, getCategoryCounters());
    return $data;
}
Esempio n. 2
0
 function getAllCounters()
 {
     $last_article_id = (int) $_REQUEST["last_article_id"];
     $reply = array();
     if ($seq) {
         $reply['seq'] = $seq;
     }
     if ($last_article_id != getLastArticleId($this->link)) {
         $omode = $_REQUEST["omode"];
         if ($omode != "T") {
             $reply['counters'] = getAllCounters($this->link, $omode);
         } else {
             $reply['counters'] = getGlobalCounters($this->link);
         }
     }
     $reply['runtime-info'] = make_runtime_info($this->link);
     print json_encode($reply);
 }
Esempio n. 3
0
function getAllCounters($link, $omode = "flc", $active_feed = false)
{
    if (!$omode) {
        $omode = "flc";
    }
    getGlobalCounters($link);
    getVirtCounters($link);
    if (strchr($omode, "l")) {
        getLabelCounters($link);
    }
    if (strchr($omode, "f")) {
        getFeedCounters($link, $active_feed);
    }
    if (strchr($omode, "t")) {
        getTagCounters($link);
    }
    if (strchr($omode, "c")) {
        if (get_pref($link, 'ENABLE_FEED_CATS')) {
            getCategoryCounters($link);
        }
    }
}
Esempio n. 4
0
function getAllCounters($link)
{
    $data = getGlobalCounters($link);
    $data = array_merge($data, getVirtCounters($link));
    $data = array_merge($data, getLabelCounters($link));
    $data = array_merge($data, getFeedCounters($link, $active_feed));
    $data = array_merge($data, getCategoryCounters($link));
    return $data;
}
Esempio n. 5
0
function getAllCounters($link, $omode = "flc", $active_feed = false)
{
    if (!$omode) {
        $omode = "flc";
    }
    $data = getGlobalCounters($link);
    $data = array_merge($data, getVirtCounters($link));
    if (strchr($omode, "l")) {
        $data = array_merge($data, getLabelCounters($link));
    }
    if (strchr($omode, "f")) {
        $data = array_merge($data, getFeedCounters($link, $active_feed));
    }
    if (strchr($omode, "t")) {
        $data = array_merge($data, getTagCounters($link));
    }
    if (strchr($omode, "c")) {
        $data = array_merge($data, getCategoryCounters($link));
    }
    return $data;
}