Location: PHPKode > projects > WeBBind Web Gui to Bind > webbind_0.98/index.php
<?

require("global.php");
require("htmlcommon.php");
require("clrzonesess.php");

ClrZoneSess($zonelock);

HTMLHeader();

HelpWin();
ChkVal();


/*
	SearchDomainPage($REMOTE_USER);
*/

Banner("| View | Modify | Delete | &nbsp; &nbsp; Zones ",$REMOTE_USER,$server);
	print("<FONT FACE=\"Verdana\" SIZE=2>\n");
        print("<FORM ACTION=resultdomain.php METHOD=post>\n");
        print("Domain Name:&nbsp; &nbsp;<INPUT TYPE=\"text\" NAME=\"domainname\">&nbsp; &nbsp;\n");
	print("Server:&nbsp; &nbsp;<SELECT size=1 cols=3 NAME=\"serverchoose\">\n");
	print("<OPTION selected VALUE=\"1\">$servername[1]\n");
	$n=2;
	while ($servername[$n]) :
		print("<OPTION VALUE=\"$n\">$servername[$n]\n");
		$n++;
	endwhile;
	
	print("</SELECT><BR><BR>\n");
        print("<INPUT TYPE=\"HIDDEN\" NAME=\"username\" VALUE=\"$REMOTE_USER\">\n");
        print("<INPUT TYPE=\"submit\" VALUE=\"Search\">\n");
        print("</FORM>\n");
HelpLink("view");
        print("<BR>\n");
        print("<BR>\n");

        print("</FONT>\n");

        print("<BR>\n");
        print("<HR>\n");
        
/*
	ShowLog("View Named Logs");
*/

Banner("View Named Logs",0,$server);
        print("<FONT FACE=\"Verdana\" SIZE=2>\n");
        print("<FORM ACTION=showlog.php METHOD=post >\n");
        print("Server:&nbsp; &nbsp;<SELECT size=1 cols=3 NAME=\"idserver\">\n");
        print("<OPTION selected VALUE=\"1\">$servername[1]\n");
        	$n=2;
	while ($servername[$n]) :
		print("<OPTION VALUE=\"$n\">$servername[$n]\n");
		$n++;
	endwhile;
        
        print("</SELECT><BR><BR>\n");
        print("Log Type: &nbsp; <BR><BR>\n");
	print("<TABLE border=\"1\" width=\"100%\">");
	
	print("<TR>");
        print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"default\" checked> default<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"config\"> config<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"db\"> db<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"eventlib\"> eventlib<TD>\n");
	print("</TR>");
	print("<TR>");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"cname\"> cname<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"lame-servers\"> lame-servers<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"load\"> load<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"maintenance\"> maintenance<TD>\n");
	print("</TR>");
	print("<TR>");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"ncache\"> ncache<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"notify\"> notify<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"os\"> os<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"panic\"> panic<TD>\n");
	print("</TR>");
	print("<TR>");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"parser\"> parser<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"queries\"> queries<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"response-checks\"> response-checks<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"security\"> security<TD>\n");
	print("</TR>");
	print("<TR>");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"statistics\"> statistics<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"update\"> update<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"xfer-in\"> xfer-in<TD>\n");
	print("<TD width=\"25%\"><FONT FACE=\"Verdana\" SIZE=2 ><B><INPUT TYPE=\"radio\" name=\"logtype\" value=\"xfer-out\"> xfer-out<TD>\n");
	print("</TR>");
		
	print("</TABLE>\n");
	print("<BR><BR>\n");
	print("<INPUT TYPE=\"hidden\" NAME=\"username\" VALUE=\"$REMOTE_USER\">\n");
        print("<INPUT TYPE=\"submit\" VALUE=\"Submit\" >\n");
        print("</FORM>\n");
        print("<BR>\n");
        print("<BR>\n");
        print("</FONT>\n");
HelpLink("log");
        print("<BR>\n");
        print("<BR>\n");

        print("<HR>\n");
        
        
/*
	CreateDomainPage("Create New Zone",$REMOTE_USER);
*/

Banner("Create New Zone",0,$server);
        print("<FONT FACE=\"Verdana\" SIZE=2 >\n");
        print("<FORM NAME=\"cnzone\" ACTION=createnewzone.php METHOD=post onSubmit=chkval() >\n");
        print("New Domain Name: <PRE> &nbsp; &nbsp;<INPUT TYPE=\"text\" NAME=\"newzonechoose\" VALUE=\".dns\"> &nbsp; &nbsp; </PRE><BR> \n");
        print("Master Server: <PRE> &nbsp; &nbsp;<SELECT size=1 cols=3 NAME=\"newserverchoose\">\n");
        print("<OPTION selected VALUE=\"1\">$servername[1]\n");
	$n=2;
	while ($servername[$n]) :
		print("<OPTION VALUE=\"$n\">$servername[$n]\n");
		$n++;
	endwhile;
        print("</SELECT></PRE><BR><BR>\n");
        
        
        print(" Slave  Managed: <PRE> &nbsp; &nbsp;<SELECT size=1 cols=3 NAME=\"newslavechoose\">\n");
        print("<OPTION selected VALUE=\"\">\n");
        	$n=1;
	//while ($slavename[$n]) :
	//	print("<OPTION VALUE=\"$n\">$slavename[$n]\n");
	while ($servername[$n]) :
		print("<OPTION VALUE=\"$n\">$servername[$n]\n");
		$n++;
	endwhile;
	print("</SELECT></PRE><BR><BR>\n");
	
	print("Slave External FQDN: <PRE> &nbsp; &nbsp; <INPUT TYPE=\"text\" NAME=\"extslavefqdn\" VALUE=\"\"> </PRE>  &nbsp; &nbsp; \n");
	print("Slave External   IP:&nbsp; &nbsp;<INPUT TYPE=\"text\" NAME=\"extslaveip\" VALUE=\"\">&nbsp; &nbsp;<BR><BR>\n");
	
        print("<INPUT type=\"HIDDEN\" name=\"username\" value=\"$REMOTE_USER\">\n");
	print("<INPUT TYPE=\"submit\" value=\"Submit\">\n");
	print("</FORM>\n");
HelpLink("create");
        print("<BR>\n");
        print("<BR>\n");

        print("</FONT>\n");

        print("<BR>\n");
        print("<HR>\n");
        
HTMLFooter();

?>
Return current item: WeBBind Web Gui to Bind