include("./../counter.inc.php");
include("./../skin/skin.cfg.php");
$datafile="./../".$datafile;
$cntObj=unserialize(implode("", file($datafile)));
$colorbar=array( "6699CC", "99FF00", "CC00FF", "66CC00", "FF0000", "FFCC00", "9900FF", "FF9900");
?>
流量統計
if($cntObj->count[total]>0){
?>
基本統計 |
|
$tmp1=getdate($cntObj->last_timestamp);
$conv_week=array("日", "一", "二", "三", "四", "五", "六");
?>
最後統計日期:
年
月
日 星期
時
總人數:
本日人數:
昨日人數:
本周人數:
本月人數:
|
|
每日人流統計 |
| |
瀏覽器統計 |
foreach($cntObj->count_browser as $key=>$value){ $arr_browser[]=array("name"=>$key, "hits"=>$value); }
sort_array($arr_browser, "hits");
?>
$colorbar_arr=0;
for($i=0; $icount[total])*240)-4;
$width=($width<=0)?0:$width;
?> if($width>0){?> }?>
if($colorbar_arr>=(count($colorbar)-1)){$colorbar_arr=0;}else{$colorbar_arr++;}
}
?> |
|
|
| |
瀏覽器 |
點擊 |
百分比 |
$colorbar_arr=0;
for($i=0; $icount[total])*100,2);
?>
| �� |
|
|
0.00% |
if($colorbar_arr>=(count($colorbar)-1)){$colorbar_arr=0;}else{$colorbar_arr++;}
}
?>
|
|
|
 |
系統統計 |
foreach($cntObj->count_system as $key=>$value){ $arr_system[]=array("name"=>$key, "hits"=>$value); }
sort_array($arr_system, "hits");
?>
$colorbar_arr=0;
for($i=0; $icount[total])*240)-4;
$width=($width<=0)?0:$width;
?> if($width>0){?> }?>
if($colorbar_arr>=(count($colorbar)-1)){$colorbar_arr=0;}else{$colorbar_arr++;}
}
?> |
|
|
| |
作業系統 |
點擊 |
百分比 |
$colorbar_arr=0;
for($i=0; $icount[total])*100,2);
?>
| �� |
|
|
0.00% |
if($colorbar_arr>=(count($colorbar)-1)){$colorbar_arr=0;}else{$colorbar_arr++;}
}
?>
|
|
|
地區統計 |
| 地區 |
點擊 |
百分比 |
圖示 |
//$dat_region=file($datapath."/region.txt");
//for($i=0; $icount_region as $key=>$value){
$sorted_arr[]=array(key=>$key, value=>$value);
}
sort_array($sorted_arr, "value");
//foreach($sorted_arr as $key=>$val){
for($i=0; $icount[total])*100,2);
$opercent=round(200*$percent/100)-4;
?>
|
|
|
0.00% |
|
if($colorbar_arr>=(count($colorbar)-1)){$colorbar_arr=0;}else{$colorbar_arr++;}
}
?>
|
逆向連結 統計 |
| 點擊 |
百分比 |
圖示 |
網址 |
function cmp($a, $b){
if($a==$b) return 0;
return ($a>$b)?-1:1;
}
while(list($key, $value)=each($cntObj->count_referer)){
$sort_d[$value]=$key;
}
uksort($sort_d, cmp);
$colorbar_arr=0;
while(list($tmp[1], $tmp[0]) = each($sort_d)){
$percent=round(($tmp[1]/$cntObj->count[total])*100,2);
$opercent=round(100*$percent/100)-4;
?>
|
0.00% |
|
40){ echo substr($tmp[0],0,25)." ... ".substr($tmp[0],-15); }else{ echo $tmp[0]; }?> |
if($colorbar_arr==(count($colorbar)-1)){
$colorbar_arr=0;
}else{
$colorbar_arr++;
}
}
?>
|
}else{
?>
}
?>
function sort_array(&$sorted_arr, $compare_field){
for($i=0; $i$sorted_arr[$j][$compare_field]){
$tarr=$sorted_arr[$i];
$sorted_arr[$i]=$sorted_arr[$j];
$sorted_arr[$j]=$tarr;
}
}
}
}
?>