function getSiteStatUser()
{
    global $dir;
    global $aStat;
    $aStat = @eval(@file_get_contents(BX_DIRECTORY_PATH_INC . 'db_cached/SiteStat.inc'));
    if (!$aStat) {
        $aStat = array();
    }
    $sCode = $sProfVideo . '<div>';
    foreach ($aStat as $aVal) {
        $sCode .= getSiteStatBody($aVal);
    }
    $sCode .= '</div><div class="clear_both"></div>';
    return $sCode;
}
Exemplo n.º 2
0
function getSiteStatUser()
{
    global $aStat;
    $oCache = $GLOBALS['MySQL']->getDbCacheObject();
    $aStat = $oCache->getData($GLOBALS['MySQL']->genDbCacheKey('sys_stat_site'));
    if (null === $aStat) {
        genSiteStatCache();
        $aStat = $oCache->getData($GLOBALS['MySQL']->genDbCacheKey('sys_stat_site'));
    }
    if (!$aStat) {
        $aStat = array();
    }
    $sCode = '<div class="siteStatMain">';
    foreach ($aStat as $aVal) {
        $sCode .= getSiteStatBody($aVal);
    }
    $sCode .= '<div class="clear_both"></div></div>';
    return $sCode;
}