home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / admin / serverstatus.php < prev    next >
Encoding:
PHP Script  |  2004-04-04  |  1.7 KB  |  43 lines

  1. <html> 
  2. <head>
  3. <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
  4. <title></title>
  5. <style type="text/css">
  6. <!--
  7. body   { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #444477; background-image: url(../gfx/body_bgr.gif); background-repeat: no-repeat; background-position: center 15px; background-attachment: fixed; }
  8. h1     { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; text-transform: uppercase; color: #000000; }
  9. strong { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-transform: uppercase; color: #000000; }
  10. tt     { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #444477; }
  11. pre    { font-family: Lucidia COnsole, Courier; font-size: 9px; color: #444477;}
  12. dt     { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444477; }
  13. hr     { height: 3px; border: 1px #444477 solid; filter: Alpha(Opacity=100,FinishOpacity=10,Style=2); width: 100%; }
  14. th     { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; text-transform: uppercase; color: #444477; }
  15. td     { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #444477; }
  16. -->
  17. </style>
  18. </head>
  19.  
  20.  
  21. <?PHP
  22.   
  23.   include("../inc/config.inc.php"); 
  24.   include("../lang/".$lang."/global.php");
  25.   
  26.   // In this case 'localhost' can be left, cause this should never
  27.   // be accessible from other sources than localhost
  28.   $fd=@fopen("http://localhost/server-status","r");
  29.   if ($fd) {
  30.     while ($line=fgets($fd,1000))
  31.   {
  32.      $alltext.=$line;
  33.   }
  34.   fclose ($fd);
  35.  
  36.     echo $alltext;
  37.     }
  38. else {
  39.     echo "<b>$cont_srv_down</b>";
  40.     }
  41. ?> 
  42.  
  43. </html>