<? include ("functions.php"); ?>
<html>
 <head>
  <link rel="stylesheet" type="text/css" href="style.css">
 </head>
 <body>
  $LI<br><br>
  <center>
<? if (!$s) { ?>
   <title>Server Statistics for $NW</title>
   <table id="table" cellpadding="0" cellspacing="0">
    <tr><td colspan="6"><b>Server Statistics - Last Updated $LU - $EN listed</b><br><br></td></tr>
    <tr>
     <td width="1" height="15" background="imgs/bar-b.png"></td>
     <td width="200" background="imgs/bar-f.png" id="title">&nbsp;Name&nbsp;</td>
     <td width="200" background="imgs/bar-f.png" id="title">&nbsp;Server Version&nbsp;</td>
     <td width="75" background="imgs/bar-f.png" id="title">&nbsp;Max Users&nbsp;</td>
     <td width="75" background="imgs/bar-f.png" id="title">&nbsp;Splits&nbsp;</td>
     <td width="1" background="imgs/bar-b.png"></td>
    </tr>
    <tr><td colspan="2"><a href="serverstats.php?s=$NA">&nbsp;$NA&nbsp;</td><td>&nbsp;$DE $FL&nbsp;</td><td>&nbsp;$MC&nbsp;</td><td colspan="2">&nbsp;$SP&nbsp;</td></tr>
   </table>
<? } ?>
<? if ($s == "$NA") { ?><title>Server statistics for $NA</title><table width="80%" id="table"><tr><td colspan="2"><b>Statistics for $NA - Last Updated $LU</b><br><br></td></tr><tr><td><b>Statistics Since</b></td><td>$SS</td></tr><tr><td><b>Last Split</b></td><td>$LS</td></tr><tr><td><b>Splits</b></td><td>$SP</td></tr><tr><td><b>Last Quit Message</b></td><td>$LQ</td></tr><tr><td><b>Current Clients</b></td><td>$CC</td></tr><tr><td><b>Max Clients</b></td><td>$MC</td></tr><tr><td><b>Max Clients Time</b></td><td>$MT</td></tr><tr><td><b>Current Lag</b></td><td>$CL</td></tr><tr><td><b>Peak Lag</b></td><td>$PL</td></tr><tr><td><b>Total Downtime</b></td><td>$TD</td></tr><tr><td><b>Last Downtime</b></td><td>$LD</td></tr><tr><td><b>Current Uptime</b></td><td><? echo duration($CU); ?></td></tr><tr><td><b>Highest Uptime</b></td><td><? echo duration($HU); ?></td></tr></table><? } ?>
  </center>
<? if ($s) { ?>
  <br><br><a href="serverstats.php"><b>Back</b></a>
<? } ?>
 </body>
</html>
