logged on as '.$username.'

Statistics for '.$siteid.'

Counter location: '.$url.'
Change site ID
 '; if ($num_lstsiteids > 1) { echo ''; } echo '
Total Hits since '.$created.': '.$count.'
Unique Hits Today: '.$uh.'
Total Hits Today: '.$th.'
'; // 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]
'; if ($nostats==1) { echo $yesterday; } // print stats for ($i = $a; $i >= $u; $i--) { $temp = explode("!", $lines[$i]); if ($temp[0]) { echo ' '; echo "\n"; } } // if there are no stats, just say no stats if ($nostats==1) { echo ' '; } echo '
  Unique Hits Total Hits
'.$temp[1].''.$temp[0].''.$temp[2].'
No stats.

[Back to Account Control Panel] [Help!] [View Counter in Action] [Logout]

'; ?>