<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<? require("counterstrike.php");?>
<HTML>
<HEAD>
<TITLE>Serverrules on <?=$_GET["serveradr"]?></TITLE>
</HEAD>
<BODY BGCOLOR="#C0C0C0">
<?
  $csinfo
=new CounterStrike;
  
$status=$csinfo->getServerRules($_GET["serveradr"],$_GET["serverport"],1000);
  if (
$status) { 
?>
<TABLE>
<TR>
    <TD ALIGN="CENTER" VALIGN="TOP">
    <TABLE>
    <TR>
        <TD COLSPAN="4" ALIGN="CENTER">Serverrules</TD>
    </TR>
    <TR>
        <TD COLSPAN="4"><HR></TD>
    </TR>
    <? $counter=0?>
    <TR>
    <? while (list($name,$value) = each ($csinfo->m_serverrules)) { ?>
        <TD><?=$name?></TD><TD>=&nbsp;<?=$value?>&nbsp;</TD>
        <? $counter++; ?>
        <? if (($counter 2)==0) echo "</TR><TR>"?>
    <? ?>    
    <? if (($counter 2)!=0) echo "<TD>&nbsp;</TD></TR>"?>
    <TR>
        <TD COLSPAN="4"><HR></TD>
    </TR>
    <TR>
        <TD COLSPAN="4">&nbsp;</TD>
    </TR>
    <TR>
        <TD COLSPAN="4" ALIGN="CENTER"><FONT SIZE="1"><A HREF="javascript:window.close()">Close window</A></FONT></TD>
    </TR>

    </TABLE>
    </TD>
</TR>
</TABLE>
<? } else { ?>
<DIV ALIGN="CENTER">Error communicating with server</DIV>
<BR>
<DIV ALIGN="CENTER"><FONT SIZE="1"><A HREF="javascript:window.close()">Close window</A></FONT></DIV>
<? ?>    
</BODY>
</HTML>