| logged on as '.$username.' |
Statistics for '.$siteid.'
';
// open log file
$log_file = "countdb/".$siteid."-l.db";
$lf = fopen($log_file, "r");
$lfdata = fread($lf, filesize($log_file));
fclose ($lf);
// determine if there are enough stats to form a graph
$lfdata = explode("\n", $lfdata);
$num_lfdata = count($lfdata)-1;
if ($showgraph==1) {
if ($num_lfdata >= 1) {
$nostats = 0;
// show graph
echo '
';
} else {
$nostats = 1;
echo 'Oops... Not enough statistics to graph the last 7 days.
In order for your graph to display properly, check back tomorrow, after someone has accessed your counter.
';
}
}
echo '
Daily Report [Reset]
| |
Unique Hits |
Total Hits |
';
if ($nostats==1) { echo $yesterday; }
// print stats
for ($i = $a; $i >= $u; $i--) {
$temp = explode("!", $lines[$i]);
if ($temp[0]) {
echo ' | '.$temp[1].' | '.$temp[0].' | '.$temp[2].' |
';
echo "\n";
}
}
// if there are no stats, just say no stats
if ($nostats==1) { echo ' | No stats. |
'; }
echo '
[Back to Account Control Panel]
[Help!]
[View Counter in Action]
[Logout]
';
?>