Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2013
2,376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.08 KB | None | 0 0
  1.     <html>
  2.             <head>
  3.             <!-- please insert site name -->
  4.             <title>F63.net - Status</title>
  5.             <meta http-equiv="refresh" content="30" >
  6.             <link rel="stylesheet" type="text/css" href="style.css" media="screen" />
  7.             <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  8.             <link rel="icon" href="favicon.ico" type="image/x-icon">
  9.             </head>
  10.  
  11.  
  12.             <body>
  13.             <!-- please insert site name -->
  14.             <center>
  15.             <h2>F63.net - Status</h2>
  16.  
  17.             <!-- you have to insert SERVER IP!!!! and !!!!PORT!!! -->
  18.             <table width="800" border="1" cellpadding="10">
  19.                     <tr>
  20.                             <td>F63.net</td>
  21.                             <td>RamNode AtlantA 128MB</td>
  22.                                                         <td>Webserver, Stream, IRC</td>
  23.                             <td>
  24.                             <?php
  25.                             if (!$socket = @fsockopen("f63.net", 22, $errno, $errstr, 5))
  26.                             {
  27.                             echo "<font color='red'><strong>Offline!</strong></font>";
  28.                             }
  29.                             else
  30.                             {
  31.                             echo "<font color='green'><strong>Online!</strong></font>";
  32.  
  33.  
  34.                             fclose($socket);
  35.                             }
  36.                             ?>
  37.                             </td>
  38.                     </tr>
  39.                     <tr>
  40.                             <td>Skype.f63.net</td>
  41.                             <td>Ipxcore Buffalo 256MB</td>
  42.                                                         <td>Skypebot</td>
  43.                             <td>
  44.                             <?php
  45.                             if (!$socket = @fsockopen("skype.f63.net", 22, $errno, $errstr, 5))
  46.                             {
  47.                             echo "<font color='red'><strong>Offline!</strong></font>";
  48.                             }
  49.                             else
  50.                             {
  51.                             echo "<font color='green'><strong>Online!</strong></font>";
  52.  
  53.  
  54.                             fclose($socket);
  55.                             }
  56.                             ?>
  57.                             </td>
  58.                     </tr>
  59.                                                             <tr>
  60.                             <td>ping.f63.net</td>
  61.                             <td>LowEndSpirit 64MB Amsterdam</td>
  62.                                                         <td>Monitoring</td>
  63.                             <td>
  64.                             <?php
  65.                             if (!$socket = @fsockopen("localhost", 3601, $errno, $errstr, 5))
  66.                             {
  67.                             echo "<font color='red'><strong>Offline!</strong></font>";
  68.                             }
  69.                             else
  70.                             {
  71.                             echo "<font color='green'><strong>Online!</strong></font>";
  72.  
  73.  
  74.                             fclose($socket);
  75.                             }
  76.                             ?>
  77.                             </td>
  78.                     </tr>
  79.                                                             <tr>
  80.                             <td>down2.F63.net</td>
  81.                             <td>RamNode Atlanta 256MB</td>
  82.                                                         <td>Torrents, media server</td>
  83.                             <td>
  84.                             <?php
  85.                             if (!$socket = @fsockopen("down2.f63.net", 22, $errno, $errstr, 5))
  86.                             {
  87.                             echo "<font color='red'><strong>Offline!</strong></font>";
  88.                             }
  89.                             else
  90.                             {
  91.                             echo "<font color='green'><strong>Online!</strong></font>";
  92.  
  93.  
  94.                             fclose($socket);
  95.                             }
  96.                             ?>
  97.                             </td>
  98.                     </tr>
  99.                                                             <tr>
  100.                             <td>vpn.f63.net</td>
  101.                             <td>Ipxcore Buffalo 32MB</td>
  102.                                                         <td>VPN</td>
  103.                             <td>
  104.                             <?php
  105.                             if (!$socket = @fsockopen("vpn.f63.net", 22, $errno, $errstr, 5))
  106.                             {
  107.                             echo "<font color='red'><strong>Offline!</strong></font>";
  108.                             }
  109.                             else
  110.                             {
  111.                             echo "<font color='green'><strong>Online!</strong></font>";
  112.  
  113.  
  114.                             fclose($socket);
  115.                             }
  116.                             ?>
  117.                             </td>
  118.                     </tr>
  119.  
  120.             </table>
  121.             </center>
  122.             </body>
  123.  
  124.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement