"Fossies" - the Fresh Open Source Software Archive

Member "webbind_0.98/nslookup.php" (5 Jan 2002, 1778 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 $nsresult="/tmp/".time()."nsresult.txt";
    6 
    7 exec ("nslookup -q=$querytype $zonename $nsqueryserver > $nsresult");
    8 
    9 
   10 HTMLHeader();
   11 Banner("NSLookup Query Results",$username,$server);
   12 
   13         print("<center><table BORDER COLS=1 WIDTH=\"100%\" >");
   14 
   15         
   16  $fp=fopen("$nsresult", "r");
   17  while (!feof ($fp)) {
   18         $buffer = fgets($fp, 4096);
   19             print("<tr BGCOLOR=\"#090B55\">");
   20             print("<td>");
   21             print("<font face=\"Verdana\" size=1 font color=\"#FFFFFF\"><B>$buffer</B></font>");
   22             print("</td>");
   23             print("</tr>");
   24   }
   25     print("</table></center>");
   26 
   27 print("<center><table BORDER COLS=4 WIDTH=\"100%\" >");
   28 print("<TR>");
   29     print("<TD width=\"25%\"><CENTER><FONT FACE=\"Verdana\" SIZE=2 ><B><A HREF=\"nslookup.php?username=$username&zonename=$zonename&querytype=any\">ANY</A><TD>\n");
   30     print("<TD width=\"25%\"><CENTER><FONT FACE=\"Verdana\" SIZE=2 ><B><A HREF=\"nslookup.php?username=$username&zonename=$zonename&querytype=soa\">SOA</A><TD>\n");
   31     print("<TD width=\"25%\"><CENTER><FONT FACE=\"Verdana\" SIZE=2 ><B><A HREF=\"nslookup.php?username=$username&zonename=$zonename&querytype=mx\">MX</A><TD>\n");
   32     print("<TD width=\"25%\"><CENTER><FONT FACE=\"Verdana\" SIZE=2 ><B><A HREF=\"nslookup.php?username=$username&zonename=$zonename&querytype=ns\">NS</A><TD>\n");
   33 print("</TR>");
   34 print("</table></center>");
   35 
   36         print("<center><table BORDER COLS=1 WIDTH=\"100%\" >");
   37             print("<tr BGCOLOR=\"#C0C0C0\">");
   38         print("<td>");
   39             print("<font face=\"Verdana\" size=2 font color=\"#FFFFFF\"><center><A HREF=\"$phpbindurl\">Return to Search Page</A>");
   40             print("</td>");
   41             print("</tr>");
   42             print("</table></center>");
   43 
   44  fclose($fp);
   45 
   46 unlink($nsresult);
   47 ?>