"Fossies" - the Fresh Open Source Software Archive

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


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML 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 /*
    3     Get the query from index page for search and display matching zones filename
    4     on the specified dns server.
    5     Exclude from the valid response files with suffixes: .slavezone .removed .backup 
    6 */
    7 
    8 require("global.php");
    9 require("htmlcommon.php");
   10 require("clrzonesess.php");
   11 
   12 ClrZoneSess($zonelock);
   13 
   14 HTMLHeader();
   15 Confirm();
   16 
   17 if ( $domainname != "" ) {
   18 
   19     exec ("ls $basemount/$servername[$serverchoose]/zones/*$domainname*.dns", $result );
   20 
   21     if ((count($result)) < 1) {
   22         Banner("NO MATCH<BR><BR><A HREF=\"$phpbindurl\">Back to Search Page</A>\n",$username,$servername[$serverchoose]);
   23         print ("<BR><BR><BR><BR><HR>\n");
   24         exit();
   25     }
   26 
   27     Banner("Zone Search Results",$username,$servername[$serverchoose]);
   28 
   29     for ($i = 0; $i < (count ($result)); $i++) {
   30 
   31     $zonename = explode("/", $result[$i]);
   32     end($zonename);
   33 
   34         if ( !ereg(".slavezone", (current($zonename))) && !ereg(".removed", (current($zonename))) && !ereg(".backup", (current($zonename)))  ) {
   35 
   36         print("<center><table BORDER COLS=3 WIDTH=\"100%\" >\n");
   37         print("<form method=\"post\" action=\"showzone.php\">\n");
   38         print("<tr BGCOLOR=\"#DCDCDC\">\n");
   39 
   40     print("<td BGCOLOR=\"#990000\">\n");
   41     print("<center><a href=\"nslookup.php?username=$username&zonename=").ereg_replace(".dns","",current($zonename)).("&querytype=SOA\"><img src=\"/icons/index.gif\" alt=\"VERIFICA\" border=\"0\"></a>");
   42     print("</td>\n");
   43 
   44         print("<td BGCOLOR=\"#DCDCDC\" WIDTH=\"80%\" >\n");
   45         print("<center><font face=\"Verdana\" size=2 font color=\"#FFFFFF\"><B><A HREF=\"http://www.").ereg_replace(".dns","",current($zonename)).("\" target=_blank >").current($zonename).("</A></B></font></center>\n");
   46         print("</td>\n");
   47         print("<td BGCOLOR=\"#990000\">\n");
   48         print("<center><INPUT type=\"SUBMIT\" name=\"consulta\" value=\" Read \"></center>\n");
   49         print("</td>\n");
   50 
   51  if ($readonly <> 1) {
   52         print("<td BGCOLOR=\"#990000\">\n");
   53         print("<center><INPUT type=\"SUBMIT\" name=\"modifica\" value=\"  Modify  \"></center>\n");
   54         print("</td>\n");
   55         print("<td BGCOLOR=\"#990000\">\n");
   56         print("<center><a href=\"removezone.php?zonename=").current($zonename).("&zonefile=$result[$i]&idserver=$serverchoose&username=$username\" onClick=\"return conferma()\"><img src=\"/icons/broken.gif\" alt=\"ELIMINA\" border=\"0\"></a>");
   57         print("</td>\n");
   58  }
   59 
   60         print("</tr>\n");
   61         print("<INPUT type=\"HIDDEN\" name=\"zonechoose\" value=\"$result[$i]\" >\n");
   62     print("<INPUT type=\"HIDDEN\" name=\"idserver\" value=\"$serverchoose\" >\n");
   63     print("<INPUT type=\"HIDDEN\" name=\"username\" value=\"$username\" >\n");
   64         print("</form>\n");
   65         print("</table></center>\n");
   66 
   67         }
   68     }
   69    print("<center><table BORDER=0 COLS=1 WIDTH=\"100%\" >\n");
   70    print("<tr BGCOLOR=\"#C0C0C0\">\n");
   71    print("<td>\n");
   72    print("<center><font face=\"Verdana\" size=2 font color=\"#FFFFFF\"><A HREF=\"$phpbindurl\">Return to Search Page</A></center>\n");
   73    print("</td>\n");
   74    print("</tr>\n");
   75    print("</table></center>\n");
   76 
   77    } else {
   78    
   79    Banner("NO VALUES SPECIFIED !<BR><BR><A HREF=\"$phpbindurl\">Back to Search Page</A>\n",$username,$servername[$serverchoose]);
   80    print ("<BR><BR><BR><BR><HR>\n");
   81    }
   82  
   83 
   84 ?>
   85