"Fossies" - the Fresh Open Source Software Archive

Member "webbind_0.98/showlog.php" (5 Jan 2002, 2969 Bytes) of package /linux/misc/dns/old/WeBBind_0.98.tar:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?
    2 require("htmlcommon.php");
    3 require("global.php");
    4 
    5 $server=$servername[$idserver];
    6 
    7 
    8 
    9 switch ($logtype) {
   10     case "default":
   11         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep default:", $result);
   12         break;
   13     case "config":
   14         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep config:", $result);
   15         break;
   16     case "db":
   17         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep db:", $result);
   18         break;
   19     case "eventlib":
   20         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep eventlib:", $result);
   21         break;
   22     case "cname":
   23         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep cname:", $result);
   24         break;
   25     case "lame-servers":
   26         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep lame-servers:", $result);
   27         break;
   28     case "load":
   29         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep load:", $result);
   30         break;
   31     case "maintenance":
   32         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep maintenance:", $result);
   33         break;
   34     case "ncache":
   35         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep ncache:", $result);
   36         break;
   37     case "notify":
   38         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep notify:", $result);
   39         break;
   40     case "os":
   41         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep os:", $result);
   42         break;
   43     case "panic":
   44         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep panic:", $result);
   45         break;
   46     case "parser":
   47         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep parser:", $result);
   48         break;
   49     case "queries":
   50         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep queries:", $result);
   51         break;
   52     case "response-checks":
   53         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep response-checks:", $result);
   54         break;
   55     case "security":
   56         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep security:", $result);
   57         break;
   58     case "statistics":
   59         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep statistics:", $result);
   60         break;
   61     case "update":
   62         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep update:", $result);
   63         break;
   64     case "xfer-in":
   65         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep xfer-in:", $result);
   66         break;
   67     case "xfer-out":
   68         exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep xfer-out:", $result);
   69         break;
   70     }
   71 
   72 HTMLHeader();
   73 Banner("View Log of type [$logtype]",$username,$server);
   74 
   75         print("<center><table BORDER COLS=1 WIDTH=\"100%\" >");
   76 
   77         
   78   for ($i=0; $i < count($result); $i++) {
   79     print("<tr BGCOLOR=\"#090B55\">");
   80     print("<td>");
   81     print("<font face=\"Verdana\" size=1 font color=\"#FFFFFF\"><B>$result[$i]</B></font>");
   82         print("</td>");
   83     print("</tr>");
   84   }
   85     print("<tr BGCOLOR=\"#C0C0C0\">");
   86         print("<td>");
   87         print("<center><font face=\"Verdana\" size=2 font color=\"#FFFFFF\"><A HREF=\"$phpbindurl\">Return to Search Page</A></center>");
   88         print("</td>");
   89         print("</tr>");
   90     print("</table></center>");
   91 
   92 
   93 ?>