Annonceindlæg fra Deloitte
27. februar 2002 - 19:48
#1
Ups her er koden: <head> <style type="text/css"> <!-- body { font-family: Verdana, Geneva, Arial; color: #000000; text-decoration: none;} td { font-family: Verdana, Geneva, Arial; color: #000000; text-decoration: none} a { font-family: Verdana, Geneva, Arial; color: #2135C0; text-decoration: none; cursor: hand} a:hover { font-family: Verdana, Geneva, Arial; color: #999999; text-decoration: none; cursor: hand} --> </style> </head> <body bgcolor="#B9CADB" topmargin="0" leftmargin="0"> <?php $box = $HTTP_SERVER_VARS["SERVER_NAME"]; $boxip = $HTTP_SERVER_VARS["SERVER_NAME"] . " (" . gethostbyname($HTTP_SERVER_VARS["SERVER_NAME"]) . ")"; ?> <table class="centreboxcontent" width="100%"> <tr> <td width="100%"> <center> <br><br> <p><b>System Uptimes</b></p> <p> <?php echo $box; ?>: <script language="php"> $date = (date("d/m/y - H:i:s")); $uptime = system(uptime); </script> </p> <p><br><b>System information</b><? $noc_http = fsockopen("$box", 80, $errno, $errstr, 30); if(!$noc_http) { $noc_http = "red"; } else { fclose($noc_http); $noc_http = "green"; } $noc_ftp = fsockopen("localhost", 21, $errno, $errstr, 30); if(!$noc_ftp) { $noc_ftp = "red"; } else { fclose($noc_ftp); $noc_ftp = "green"; } $noc_mysql = fsockopen("localhost", 3306, $errno, $errstr, 30); if(!$noc_mysql) { $noc_mysql = "red"; } else { fclose($noc_mysql); $noc_mysql = "green"; } ?> </p> <table class="centreboxcontent" width="400" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> <td> http </td> <td> ftp </td> <td> mysql </td> </tr> <tr> <td> <div align="center"><?php echo $box; ?></div> </td> <td> <div align="center" style="font-size: 20pt; color: <? echo($noc_http); ?>" width="15" height="15">•</div> </td> <td> <div align="center" style="font-size: 20pt; color: <? echo($noc_ftp); ?>" width="15" height="15">•</div> </td> <td> <div align="center" style="font-size: 20pt; color: <? echo($noc_mysql); ?>" width="15" height="15">•</div> </td> </tr> </td> </tr> </table> <p> </p> </center> </td> </tr> </table> <br> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="one_pix_line" height="1"><img src="transparent.gif" width="1" height="1" /></td> </tr> </table> <br> <table class="centreboxcontent" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <div style="FONT-SIZE: 20pt; COLOR: green" align="center" height="15" width="15"> • </div> </td> <td> = Kører </td> </tr> <tr> <td> <div style="FONT-SIZE: 20pt; COLOR: red" align="center" height="15" width="15"> • </div> </td> <td> = Er nede </td> </tr> </table>