".$_['dstat_no_data']."
"; } $browserArray = $access['stat']['browser']; $browserListStock = array(); $browserTableStock = array(); arsort($browserArray); foreach($browserArray as $browserName=>$value) { foreach($browser as $browserRef=>$refVal) { if($browserName == $browserRef) { $brName = $browser["$browserRef"]["title"]; if($browserName == "other") {$brName = $_["misc_other"];} $brIcon = dc_app_url. '/ecrire/tools/bbclone/images/browser_'.$browser["$browserRef"]["icon"].'.png'; $robots = GStat::BBCtotalrobots(); $brPourcent = round(100 * ($value / ($access['stat']['totalcount'] - $robots)), 2); $browserListStock[] = '".$_['dstat_no_data']."
"; } $osArray = $access['stat']['os']; $osListStock = array(); $osTableStock = array(); arsort($osArray); foreach($osArray as $osName=>$value) { foreach($os as $osRef=>$refVal) { if($osName == $osRef) { $oName = $os["$osRef"]["title"]; if($osName == "other") {$oName = $_["misc_other"];} $oIcon = dc_app_url. '/ecrire/tools/bbclone/images/os_'.$os["$osRef"]["icon"].'.png'; $robots = GStat::BBCtotalrobots(); $oPourcent = round(100 * ($value / ($access['stat']['totalcount'] - $robots)), 2); $osListStock[] = '".$_['dstat_no_data']."
"; } $robotArray = $access['stat']['robot']; $robotListStock = array(); $robotTableStock = array(); arsort($robotArray); foreach($robotArray as $robotName=>$value) { foreach($robot as $robotRef=>$refVal) { if($robotName == $robotRef) { $robName = $robot["$robotRef"]["title"]; if($robotName == "other") {$robName = $_["misc_other"];} $robIcon = dc_app_url. '/ecrire/tools/bbclone/images/robot_'.$robot["$robotRef"]["icon"].'.png'; $robPourcent = round(100 * ($value / (array_sum($access['stat']['robot']))), 2); $robotListStock[] = '".$_['dstat_no_data']."
"; } $ext = $_; $extArray = $access['stat']['ext']; $extListStock = array(); $extTableStock = array(); arsort($extArray); foreach($extArray as $extName=>$value) { foreach($ext as $extRef=>$refVal) { if($extName == $extRef) { $exName = $ext["$extRef"]; $exIcon = dc_app_url. '/ecrire/tools/bbclone/images/ext_'.$extRef.'.png'; $exPourcent = round(100 * ($value / $access['stat']['totalcount']), 2); $extListStock[] = '".$_['dstat_no_data']."
"; } $pageArray = $access['page']; $pageListStock = array(); $pageTableStock = array(); uasort($pageArray, "pageCount"); foreach($pageArray as $pageName=>$value) { $categorie = $blog->getCat(substr($pageArray["$pageName"]["uri"],1)); if ($showCategories || (($categorie->isEmpty()) && ($pageName != "dc_index"))) { $pageLink = $pageArray["$pageName"]["uri"]; $pageValue = $pageArray["$pageName"]["count"]; $pagePourcent = round(100 * ($pageArray["$pageName"]["count"] / $access['stat']['totalvisits']), 2); if($pageName == "dc_index") { $pageName = dc_blog_name; } $pageListStock[] = '".$_['dstat_no_data']."
"; } $weekArray = $access['time']['wday']; $weekLang = $_; $weekTable = '| '.$weekLang['tstat_Su'].' | '. ''.$weekLang['tstat_Mo'].' | '. ''.$weekLang['tstat_Tu'].' | '. ''.$weekLang['tstat_We'].' | '. ''.$weekLang['tstat_Th'].' | '. ''.$weekLang['tstat_Fr'].' | '. ''.$weekLang['tstat_Sa'].' | '. '
|---|---|---|---|---|---|---|
| '.$access['time']['wday'][0].' | '. ''.$access['time']['wday'][1].' | '. ''.$access['time']['wday'][2].' | '. ''.$access['time']['wday'][3].' | '. ''.$access['time']['wday'][4].' | '. ''.$access['time']['wday'][5].' | '. ''.$access['time']['wday'][6].' | '. '
".$_['dstat_no_data']."
"; } $yearArray = $access['time']['month']; $yearLang = $_; $yearTable = '| '.$yearLang['tstat_Jan'].' | '. ''.$yearLang['tstat_Feb'].' | '. ''.$yearLang['tstat_Mar'].' | '. ''.$yearLang['tstat_Apr'].' | '. ''.$yearLang['tstat_May'].' | '. ''.$yearLang['tstat_Jun'].' | '. ''.$yearLang['tstat_Jul'].' | '. ''.$yearLang['tstat_Aug'].' | '. ''.$yearLang['tstat_Sep'].' | '. ''.$yearLang['tstat_Oct'].' | '. ''.$yearLang['tstat_Nov'].' | '. ''.$yearLang['tstat_Dec'].' | '. '
|---|---|---|---|---|---|---|---|---|---|---|---|
| '.$access['time']['month'][0].' | '. ''.$access['time']['month'][1].' | '. ''.$access['time']['month'][2].' | '. ''.$access['time']['month'][3].' | '. ''.$access['time']['month'][4].' | '. ''.$access['time']['month'][5].' | '. ''.$access['time']['month'][6].' | '. ''.$access['time']['month'][7].' | '. ''.$access['time']['month'][8].' | '. ''.$access['time']['month'][9].' | '. ''.$access['time']['month'][10].' | '. ''.$access['time']['month'][11].' | '. '
".$_['dstat_no_data']."
"; } $extArray = $_; $lastVisitListStock = array(); $lastVisitTableStock = array(); $incrementor = 0; $trafficArray = array_reverse($last['traffic']); foreach($trafficArray as $trafficStat) { if( is_array($trafficStat) ){ $incrementor++; $visitorMonth = date("M", $trafficStat["time"]); $visitorTranslatedMonth = $extArray["tstat_$visitorMonth"]; $visitorDay = date("j", $trafficStat["time"]); $visitorDate = "".$visitorDay." ".$visitorTranslatedMonth.", ".date("H:i", $trafficStat["time"]).""; $visitorLand = $trafficStat["ext"]; $visitorLandIcon = dc_app_url. '/ecrire/tools/bbclone/images/ext_'.$visitorLand.'.png'; $visitorLandName = $extArray["$visitorLand"]; if( isset($trafficStat["browser"]) && $seeRobots != "only" ) { // nous avons affaire à un visiteur humain et ne sommes pas en cas de "see robots only" $visitorBrowser = $trafficStat["browser"]; $visitorBrowserName = $browser["$visitorBrowser"]["title"]; $visitorBrowserAgent = $trafficStat["browser_note"]; $visitorBrowserIcon = dc_app_url. '/ecrire/tools/bbclone/images/browser_'.$browser["$visitorBrowser"]["icon"].'.png'; $visitorOs = $trafficStat["os"]; $visitorOsName = $os["$visitorOs"]["title"]; $visitorOsIcon = dc_app_url. '/ecrire/tools/bbclone/images/os_'.$os["$visitorOs"]["icon"].'.png'; $lastVisitListStock[] = '".$_['dstat_no_data']."
"; } $refererArray = $access['referer']; $refererListStock = array(); $refererTableStock = array(); arsort($refererArray); foreach($refererArray as $refererName=>$value) { $refererLink = "http://".$refererName; $refererValue = $refererArray["$refererName"]; $refererPourcent = round(100 * ($refererArray["$refererName"] / $access['stat']['totalcount']), 2); if($refererName == "not_specified") { $refererListStock[] = '