<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<TITLE>Visits</TITLE>
</HEAD>
<BODY>
<?PHP
require_once('visits.php');
$visits = new Visits();
$visits->Count();
echo '<B>Visits</B><BR/>'."\n";
echo 'Total '.$visits->GetAll().'<BR/>'."\n";
echo 'Today '.$visits->GetToday().'<BR/>'."\n";
echo 'Yesterday '.$visits->GetLastDay(1).'<BR/>'."\n";
echo 'The day before yesterday '.$visits->GetLastDay(2).'<BR/>'."\n";
echo 'Sum of 2 days ago '.$visits->GetLastDays(2).'<BR/>'."\n";
echo 'Last week '.$visits->GetLastDays(7).'<BR/>'."\n";
echo 'Last month '.$visits->GetLastDays(30).'<BR/>'."\n";
echo 'Last year '.$visits->GetLastDays(365).'<BR/>'."\n";
?>
</BODY>
</HTML>
|