<?PHP
################################
#     By Minimo Detalhe        #
#   www.minimodetalhe.com.br   #
# Gabriel Galiaso (WebMaster)  #
# gabriel@minimodetalhe.com.br #
#  podem alterar a vontade s�  #
#   deixar os direitos ok!!!   #
################################
?>
<html>
<head>
<title>Verifica Online</title>
</head>
<body>
<table border=1 cellspacing=1 bordercolor="#F0F0F0" width = "100%">
<?
 $servidores = array (
   "Minimo Detalhe" => "minimodetalhe.com.br",
   "Off-Line" => "asdadas.com"
 );


while (list($nome,$site) = each($servidores)) {
  $comando = "ping -n 1 ".$site;
  $retorno = shell_exec($comando);

  echo "<tr><td><font color=#FF6600 face=Verdana size=2><b>".$nome."</b></font><font color=#000000 face=Verdana size=1><br>".$site."<br>"."Status:";
  if (ereg("(0% de perda)",$retorno)) {
    echo "<b> ON-LINE</b></td></tr>";
  } else {
    echo "<font color=red><b> N�O RESPONDE</b></font></td></font>";
  }
}

?>
</table>
</body>
</html>