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>
- <td width="144"><span class="content">
- <?php
- $arrayL = fopen("templates/beez_20/ping/srv01.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?>
- </span></td>
- <td width="144"><?php
- $arrayL = fopen("templates/beez_20/ping/srv02.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- <td width="144"><?php
- $arrayL = fopen("templates/beez_20/ping/srv03.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- <td width="144"><?php
- $arrayL = fopen("templates/beez_20/ping/srv04.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- <td width="144"><?php
- $arrayL = fopen("templates/beez_20/ping/srv05.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- <td width="144"><?php
- $arrayL = fopen("templates/beez_20/ping/srv06.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- </tr>
- <tr>
- <td><?php
- $arrayL = fopen("templates/beez_20/ping/srv07.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- <td><?php
- $arrayL = fopen("templates/beez_20/ping/srv08.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- <td><?php
- $arrayL = fopen("templates/beez_20/ping/srv09.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- <td><?php
- $arrayL = fopen("templates/beez_20/ping/srv10.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- <td><?php
- $arrayL = fopen("templates/beez_20/ping/srv11.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?></td>
- <td><?php
- $arrayL = fopen("templates/beez_20/ping/srv12.txt","r");
- while(!feof($arrayL)){
- $linha =fgets($arrayL, 999);
- $nome = strtok($linha, ":");
- $pingando = " ";
- $numeroip = strtr(strrchr($linha,":"), ":", " ");
- if(empty($numeroip)){
- echo "Final, sem ip";
- exit;
- }else{
- $pingando = shell_exec("ping -c 1 $numeroip");
- if(!preg_match("/bytes from/",$pingando)){
- 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>";
- }
- }
- }
- ?>
- </td>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement