Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html" charset="" />
- <META HTTP-EQUIV="Refresh" CONTENT="20">
- <title>Servidor de Ping UAM</title>
- <link rel="stylesheet" href="3col_rightNav.css" type="text/css">
- <style type="text/css">
- body {
- background-color:#000;
- }
- td {
- background-color:#000;
- font-size:small;
- color:#FFF;
- font-family:"Courier New", Courier, monospace;
- }
- </style>
- </head>
- <body><div id="masthead">
- <h1 align="center" id="siteName"><font color="#00FF33" face="Courier New, Courier, monospace">..::Monitoramento de servidores::..</font></h1>
- </div>
- <table width="800" align="center">
- <tr>
- <td width="107"><font color="#FFFFFF" face="Courier New, Courier, monospace">Srv - Servidor</font></td>
- <td width="125"><font color="#FFFFFF" face="Courier New, Courier, monospace">T - Torniquete</font></td>
- <td width="125"><font color="#FFFFFF" face="Courier New, Courier, monospace">Sw - Switch</font></td>
- <td width="125">C - Catraca</td>
- </tr>
- <tr>
- <td><font color="#FFFFFF" face="Courier New, Courier, monospace">Vm - Virtual Machine</font></td>
- <td><font color="#FFFFFF" face="Courier New, Courier, monospace">R - Relogio de ponto</font></td>
- <td>Det - Detector de metal</td>
- <td>Imp - Impressora</td>
- </tr>
- </table>
- <table width="892" height="445" align="center">
- <tr>
- <?php
- $arquivos = range(1, 12);
- foreach($arquivos as $arquivo) {
- echo '<td width="144"><span class="content">';
- $arquivo = sprintf("%02d", $arquivo);
- $arrayL = explode(file_get_contents("templates/beez_20/ping/srv{$arquivo}.txt"), "\n");
- foreach($arrayL as $servers) {
- list($nome, $numeroip) = explode($servers, ":");
- if($numeroip !== null)
- echo "Final, sem ip";
- else
- if(!fsockopen($numeroip, 80, $errono, $errstr, 3))
- echo "<font color=#FF0000>$nome</font>"."<img src=templates/beez_20/ping/imgs/offline.png align=right>"."<br>";
- else
- echo "<font color=#00CC00>$nome</font>"."<img src=templates/beez_20/ping/imgs/online.png align=right>"."<br>";
- }
- echo '</span></td>';
- }
- ?>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement