<html>
<head>
<title><?=$titulo_pg;?></title>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><table width="468" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#666666">
  <!--DWLayoutTable-->
  <tr>
    <td width="179" height="22" valign="top" >Status do Servidor</td>
    <td width="59" valign="top" ><?
$fp = @fsockopen("127.0.0.1", 55901, $errno, $errstr, 1);
if($fp >= 1){ 
echo '<font size=2 color=green>ON</font>';}
else{ echo '<font size=2 color=red>OFF</font>'; } 
?>    </td>
    <td width="168" valign="top" >Elfas</td>
    <td width="62" valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='32'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Usuarios OnLine</td>
    <td valign="top" ><strong>
      <?=resultado("SELECT COUNT(*) FROM MEMB_STAT WHERE ConnectStat='1'");?>
    </strong></td>
    <td valign="top" >Muse Elfas</td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='33'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Personagens  Banidos</td>
    <td valign="top" ><strong>
      <?=resultado("SELECT COUNT(*) FROM Character WHERE CtlCode='1'");?>
    </strong></td>
    <td valign="top" >Magic Gladiators</td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='48'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Usuarios Vips</td>
    <td valign="top" ><strong>
      <?=resultado("SELECT COUNT(*) FROM MEMB_INFO WHERE vip>='1'");?>
    </strong></td>
    <td valign="top" >Dark Lords</td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='64'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Total de Contas</td>
    <td valign="top" ><strong>
      <?=resultado("SELECT COUNT(*) FROM MEMB_INFO");?>
    </strong></td>
    <td valign="top" >Blade Masters </td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='18'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Total de Personagens</td>
    <td valign="top" ><strong>
      <?=resultado("SELECT COUNT(*) FROM Character");?>
    </strong></td>
    <td valign="top" >High Elfs </td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='34'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Dark Wizards</td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='0'");?>    </td>
    <td valign="top" >Grand Masters </td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='2'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Soul Masters</td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='1'");?>    </td>
    <td valign="top" >Duel Masters </td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='49'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Dark Knights</td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='16'");?>    </td>
    <td valign="top" >Lord Emperros </td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='65'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Blade Knights</td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE Class='17'");?>    </td>
    <td valign="top" >Total Golds </td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM MEMB_INFO WHERE vip='2'");?></td>
  </tr>
  <tr>
    <td height="22" valign="top" >Total Premiums </td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM MEMB_INFO WHERE vip='3'");?></td>
    <td valign="top" >Total Gms </td>
    <td valign="top" ><?=resultado("SELECT COUNT(*) FROM Character WHERE CtlCode>1");?></td>
  </tr>
  
  
</table>
</html>