Location: PHPKode > projects > WeBBind Web Gui to Bind > webbind_0.98/showlog.php
<?
require("htmlcommon.php");
require("global.php");

$server=$servername[$idserver];



switch ($logtype) {
	case "default":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep default:", $result);
		break;
	case "config":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep config:", $result);
		break;
	case "db":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep db:", $result);
		break;
	case "eventlib":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep eventlib:", $result);
		break;
	case "cname":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep cname:", $result);
		break;
	case "lame-servers":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep lame-servers:", $result);
		break;
	case "load":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep load:", $result);
		break;
	case "maintenance":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep maintenance:", $result);
		break;
	case "ncache":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep ncache:", $result);
		break;
	case "notify":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep notify:", $result);
		break;
	case "os":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep os:", $result);
		break;
	case "panic":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep panic:", $result);
		break;
	case "parser":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep parser:", $result);
		break;
	case "queries":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep queries:", $result);
		break;
	case "response-checks":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep response-checks:", $result);
		break;
	case "security":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep security:", $result);
		break;
	case "statistics":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep statistics:", $result);
		break;
	case "update":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep update:", $result);
		break;
	case "xfer-in":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep xfer-in:", $result);
		break;
	case "xfer-out":
		exec ("$remexec $ipbe[$idserver] cat $msgs[$idserver] | grep xfer-out:", $result);
		break;
	}

HTMLHeader();
Banner("View Log of type [$logtype]",$username,$server);

        print("<center><table BORDER COLS=1 WIDTH=\"100%\" >");

        
  for ($i=0; $i < count($result); $i++) {
	print("<tr BGCOLOR=\"#090B55\">");
	print("<td>");
	print("<font face=\"Verdana\" size=1 font color=\"#FFFFFF\"><B>$result[$i]</B></font>");
        print("</td>");
	print("</tr>");
  }
	print("<tr BGCOLOR=\"#C0C0C0\">");
        print("<td>");
        print("<center><font face=\"Verdana\" size=2 font color=\"#FFFFFF\"><A HREF=\"$phpbindurl\">Return to Search Page</A></center>");
        print("</td>");
        print("</tr>");
	print("</table></center>");


?>
Return current item: WeBBind Web Gui to Bind