<?
    include ("stats.php");

    /* The functions in this file are REQUIRED. */
    include ("functions.php");
?>
<html>
 <head>
  <title>OperStats stats.php example</title>
  <link rel="stylesheet" type="text/css" href="style.css">
 </head>
 <body>
  <img src="imgs/ologo.png"><br><br>
  <table id="table">
   <tr><td><b>Current Users:</b></td><td><? echo $userstat; ?></td></tr>
   <tr><td><b>Current Channels:</b></td><td><? echo $chanstat; ?></td></tr>
   <tr><td><b>Current Servers:</b></td><td><? echo $servstat; ?></td></tr>
   <tr><td><b>Highest Users:</b></td><td><? echo $maxusers; ?></td></tr>
   <tr><td><b>Highest Channels:</b></td><td><? echo $maxchans; ?></td></tr>
   <tr><td><b>Highest Servers:</b></td><td><? echo $maxservs; ?></td></tr>
   <tr><td><b>Network Speed:</b></td><td><? echo $netspeed; ?></td></tr>
   <tr><td><b>Hits Today:</b></td><td><? echo $hitcount; ?></td></tr>
<?
    $servcnt = 0;

    while ($servcnt < $st)
    {
	$servcnt++;
?>
   <tr><td width="200"><b>
<?
	$tmp = "sn$servcnt";

	if ($$tmp == $sn0)
	    echo $$tmp . "\n";
	else
	    echo "<a href=\"serverstats.php?s=" . $$tmp . "\">" . $$tmp . "</a>\n";
?>
   </b></td><td>
<?
	$tmp = "su$servcnt";
	echo duration ($$tmp) . "\n";
?>
   </td></tr>
<?
    }
?>
  </table>
 </body>
</html>
