function graphique_heure(){ $users=new usersMenus(); $highcharts=new highcharts(); $highcharts->container=$_GET["container"]; $cacheFile="/usr/share/artica-postfix/ressources/logs/web/squid.stats.size.hour.db"; if(!is_file($cacheFile)){ echo $highcharts->NoreturnedValue(array()); return; } $t=time(); $page=CurrentPageName(); $tpl=new templates(); $currenttime=date("YmdH"); $table="squidhour_$currenttime"; $q=new mysql_squid_builder(); $array=unserialize(@file_get_contents($cacheFile)); if(!is_array($array)){echo $highcharts->NoreturnedValue(array());return;} $highcharts->xAxis=$array[0]; $highcharts->Title="{downloaded_flow_this_hour}"; $highcharts->yAxisTtitle="{bandwith} KB"; $highcharts->xAxisTtitle="{minutes}"; $highcharts->datas=array("{bandwith}"=>$array[1]); echo $highcharts->BuildChart(); }