Statistiques pour l'ensemble des serveurs virtuels d'agat.net

Période du résumé: 12 derniers mois
Généré


/tmp/dir.tmp"); $fp=file("/tmp/dir.tmp"); $nb=count($fp); $server=0; for($i=0;$i<$nb;$i++){ $fp[$i]=chop($fp[$i]); if (@file_exists("/home/httpd/html/stats/$fp[$i]/fr/index.html")) { $table[$server][0][0]=$fp[$i]; $page=file("/home/httpd/html/stats/$fp[$i]/fr/index.html"); $nb2=count($page); //echo "

Statistiques de $fp[$i]

"; $j=0; while ($j<$nb2) { while (!(strstr($page[$j],"usage_")) && ($j<$nb2)) $j++; if ($j==$nb2) break; $mois=substr($page[$j],strpos($page[$j],"usage")+6,6); $start=$j; for($j=$start+1;$j<$start+11;$j++) { strip_tags($page[$j]); $table[$server][$mois][$j-$start-1]=strip_tags($page[$j]); } //echo "server=$server, mois=$mois,"; //for($l=0;$l<10;$l++) echo "valeur $l =",$table[$server][$mois][$l]; //echo "
"; $mois++; } $server++; } } $datefin2=date("Ym"); $datedebut2=date("Y")."01"; $datefin1=(date("Y")-1)."12"; $datedebut1=$datefin1-12+$datefin2-$datedebut2+2; ?> "; for($j=0;$j<10;$j++){ $total[$i][$j]=0; for($k=0;$k<=$server;$k++){ $total[$i][$j]+=$table[$k][$i][$j]; } echo ""; $toto[$j]+=$total[$i][$j]; } } for($i=$datedebut2;$i<=$datefin2;$i++){ echo ""; for($j=0;$j<10;$j++){ $total[$i][$j]=0; for($k=0;$k<=$server;$k++){ $total[$i][$j]+=$table[$k][$i][$j]; } echo ""; $toto[$j]+=$total[$i][$j]; } } ?> ",$toto[$i],""; } ?>
Résumé par mois
Mois Moy. journ. Totaux mensuels
Hits Fichiers Pages Visits Sites Ko Visits Pages Fichiers Hits
$i",$total[$i][$j],"
$i",$total[$i][$j],"
Totaux


"; $prc=round($total[$i][6]/$toto[6]*10000)/100; $prcwidth=round($total[$i][6]/$maxvisites*10000)/100; if ($prcwidth<1) $prcwidth=1; echo "\n"; } for($i=$datedebut2;$i<=$datefin2;$i++){ echo ""; $prc=round($total[$i][6]/$toto[6]*10000)/100; $prcwidth=round($total[$i][6]/$maxvisites*10000)/100; if ($prcwidth<1) $prcwidth=1; echo "\n"; } ?>
Nombre de Visites par mois
MoisPourcentage de Visites
$i",$prc,"%
$i",$prc,"%


$i\n"; } for($i=$datedebut2;$i<=$datefin2;$i++){ echo "\n"; } ?> "; for($j=$datedebut1;$j<=$datefin1;$j++){ echo "\n"; $toto[$i]+=$table[$i][$j][6]; $titi[$j]+=$table[$i][$j][6]; } for($j=$datedebut2;$j<=$datefin2;$j++){ echo "\n"; $toto[$i]+=$table[$i][$j][6]; $titi[$j]+=$table[$i][$j][6]; } echo "\n"; $titi[$j]+=$toto[$i]; } ?> ",$titi[$i],""; } for($i=$datedebut2;$i<=$datefin2;$i++){ echo ""; } echo ""; ?>
Résumé par serveur (visites)
Serveur $iTotal
",$nom,"",chop($table[$i][$j][6]),"",chop($table[$i][$j][6]),"$toto[$i]
Totaux ",$titi[$i],"",$titi[$i],"

\n"; } ?>
Nombre de Visites par Serveur
ServeurPourcentage de Visites
",$nom,"",$prc,"%


Generated by 'Summary page for webalizer on virtuel hosts' from Jean-Sébastien GOETSCHY