All pastes #896719 Raw Edit

Mine

public diff v1 · immutable
#896719 ·published 2008-02-08 22:15 UTC
rendered paste body
--- language/lang-english.php	Thu Aug 14 00:19:00 2003+++ language/lang-english.php	Fri Jan 25 08:13:26 2008@@ -1,46 +1,38 @@ <? -/***************************************************************************/-/* Public DNS Administator (English Language File)                         */-/* Translator: PublicDNSAdmin Team <http://publicdnsadmin.sourceforge.net> */-/*                                                                         */-/* Distributed under the GPL license, see LICENSE for                      */-/* more information                                                        */-/*                                                                         */-/* ======================================================================= */-/*                                                                         */-/* If you made a translation, please send it to sirvulcan@sirvulcan.org    */-/*                                                                         */-/* You need to change the second quoted phrase, not the capital one!       */-/*                                                                         */-/* If you need to use double quotes (") remember to add a backslash (\),   */-/* so your entry will look like: This is \"double quoted\" text.           */-/* And, if you use HTML code, please double check it.                      */-/*                                                                         */-/***************************************************************************/--+define("_ADDM","Add new master"); define("_OCCURANCES","Any occurences of \$DOMAIN in the fields below will be replaced with the actual domain name when the template is used on a new domain");+define ("_MXBLA","Note: The use of Fallback MX requires a paid subscription to this service in order to function properly. Testing this service may be done freely, without any charge, for a one week period. After this period these domains will be set as disabled untill a subscription has been orders and paid for. You may order this through our website at <a href=http://www.warp3.com>WARP3.COM</a>.");+define("_NSBLA","Note: The use of the Secondary DNS service requires a paid subscription to this service in order to function properly. Testing this service may be done freely, without any charge, for a one week period. After this period these domains will be set as disabled untill a subscription has been orders and paid for. You may order this through our website at <a href=http://www.warp3.com>WARP3.COM</a>.");+define("_ADDBLA","Note: Do not enter domains here where you want DNSmanager to act as an secondary DNS server. These domains will be automaticly added by the system when your own master DNS sends its first notify.");+define("_DONOTADD","Note: Do not manually add domains here for wich you want DNSmanager to act as a secondary DNS server for. These domains will be added automaticly to the 'Secondary DNS` section if your master DNS server is setup properly."); define("_REGGEDAS","You are now registered as");-define("_EMAILDETAILS","a email has been sent containing your details");-define("_REGGEDWITH","You are now registered with PublicDNSAdmin");+define("_EMAILDETAILS","You may login now with the credentials as you have given.");+define("_REGGEDWITH","You are now registered with DNSmanager"); define("_BRUSERNAME","<br><br>Username:"); define("_BRPASSWORD","<Br>Password:"); define("_PASSWORDFOR","Your password for"); define("_IS","is"); define("_LOGINANDCHANGE","Please login and change it ASAP.<br><br>DNS Administrator"); define("_EACHDOMAIN","NOTE: Each Domain must use "); define("_AND","and");-define("_FORITSNS","its nameservers, signup will be denied if the domains dont match to");-define("_MYDOMAINS","My domains");+define("_FORITSNS","for its nameservers.<br>Signup will be denied if the domains dont match to");+define("_W3","You may also use NS01.WARP3.COM and NS02.WARP3.COM");+define("_MYDOMAINS","My Domains");+define("_MYMASTERS","My DNS Masters");+define("_MYACCOUNT","My account");+define("_MKNEW","Create new");+define("_ADVANCED","Advanced");+define("_SECDOMAINS","Secondary DNS");+define("_MX","Fallback MX"); define("_CRITERIA","Criteria"); define("_SEARCH","Search"); define("_UNKNOWN","Unknown"); define("_DELZONE","Delete zone"); define("_WHOISDOM","WHOIS Domain"); define("_NOZONES","No zones available"); define("_INVLOGINGFX","Login failed: invalid username/password/gfx code"); define("_INVLOGIN","Login failed: invalid username/password"); define("_LOGGEDOUT","You have been logged out"); define("_USERNAME","Username"); define("_PASSWORD","Password");@@ -125,45 +117,45 @@ define("_SIGNUPSDISABLED","New user signups are disabled, see an Administrator for further info"); define("_DIDNTAGREETERMS","You Didnt Agree To The Terms and Conditions"); define("_PASSWORDSDONTMATCH","The Passwords Entered Dont Match"); define("_INVPASSWORD","Invalid password. May only contain characters a to z, dash, and numbers"); define("_INVUSERNAME","Invalid username. Can only contain characters a to z and dash"); define("_INVEMAILADDY","Invalid Email Address"); define("_INVGFXCODE","Invalid GFX Code"); define("_USERNAMEXISTS","Username Already Exists"); define("_NAMESERVERSDONTPOINT","Nameservers Do Not Point To"); define("_OR","or"); define("_DOMAINEXISTS","The following domains already exists");-define("_NEWACCOUNTCREATED","New PublicDNSAdmin Account Created");+define("_NEWACCOUNTCREATED","New DNS Account Created"); define("_DOMAINSADDEDIN","The following domains have been added in your account"); define("_SOMEDOMAINSINVALID","One or more of the domains were invalid");-define("_REQUESTEDPASS","Requested PublicDNSAdmin Password");+define("_REQUESTEDPASS","Requested DNS Service Password"); define("_CONFIRM","Confirm"); define("_CONFIRMPASSWORD","Confirm password"); define("_REALNAME","Real Name"); define("_COMPANY","Company"); define("_DOMAINS","Domains"); define("_DOMAIN","Domain"); define("_TEMPLATE","Template"); define("_CREATE","Create"); define("_PERMISSIONS","Permissions"); define("_SUPERUSER","Superuser"); define("_NEWDOMAINS","New domains"); define("_NEWTEMPLATES","New templates"); define("_EDITOWNDOMS","Edit own domains"); define("_EDITOTHERDOMS","Edit other domains"); define("_EDITTEMPS","Edit templates"); define("_DELOWNDOMS","Delete own domains"); define("_DELOTHERDOMS","Delete other domains"); define("_DELTEMPS","Delete templates");-define("_SIGNUPCOMPLETE","PublicDNSAdmin Signup Complete");+define("_SIGNUPCOMPLETE","DNS Service Signup Complete"); define("_SUCESSSIGNEDUP","has successfully signed up for DNS hosting"); define("_DOYOUAGREE","Do You Agree To The"); define("_TERMSANDCOND","Terms And Conditions"); define("_DELETEUSER","Delete User"); define("_NOUSERSFND","No users found"); define("_GRANTZONEACCESS","Grant zone access"); define("_THEUSER","The user"); define("_GRANTEDACCESS","was granted access to the domain"); define("_USERNOTFND","User not found"); define("_NOTEMPNAMEDEFINED","No template name defined"); define("_TEMPLATEEXISTS","Another template with the same name already exists");@@ -223,22 +215,24 @@ define("_DBUNAVAIL","Unable to connect to database"); define("_ACCESSDENIED","Access denied"); define("_NOPERMSFORTASK","You don't have permission to perform the chosen task"); define("_MYDOMAINS","My domains"); define("_MYTEMPLATES","My templates"); define("_NEWDOMAIN","New domain"); define("_NEWTEMPLATE","New template"); define("_DBBACKUP","DB backup"); define("_SETTINGS","Settings"); define("_NS1STATS","NS1 stats"); define("_NS2STATS","NS2 stats");+define("_NS3STATS","NS3 stats");+define("_NS4STATS","NS4 stats"); define("_LOGOUT","Log out"); define("_LOGIN","Login"); define("_SIGNUP","Signup"); define("_FORGOTPASS","Forgotten Pass"); define("_STATISTICS","Statistics"); define("_TERMS","Terms"); define("_CONTACT","Contact"); define("_CONFIGTERMSAVAIL","config.php and/or terms.php cannot be accessed, please make sure they exist and are readable by the webserver"); define("_LANGUAGE","Language"); define("_ADD","Add"); define("_RECWASADDED","The record was added");--- lib/footer.php	Thu Aug 14 00:19:00 2003+++ lib/footer.php	Fri Jan 25 08:11:56 2008@@ -1,30 +1,54 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>+$hostedtotal=0;+$recordstotal=0;+$userstotal=0;+$dbh = db_connect(); -   Distributed under the GPL license, see LICENSE for-   more information+$recordscount = $dbh->query("SELECT * FROM records");+if (!$dbh->isError($recordscount)) {+        $recordstotal=$recordscount->numRows();+} -   $Id: footer.php,v 1.9 2003/08/13 23:19:00 sirvulcan Exp $-*/ ?>-</td>-<td width="20%" valign="top">-<div style="LEFT: 82%; position: absolute; TOP: 77%; bottom: 10%; z-index:-1">-<img src="images/server.jpg" width="141" height="111">-</td>-</tr> </table> -<table border="0" cellspacing="1" cellpadding="5" width="100%" height="5%">-<tr>-  <td valign="top" class="menu" nowrap style="border-top: 1px solid #000000; border-left: 1px solid #000000;border-right: 1px solid #000000; border-bottom: 1px solid #000000;">-  <? echo _POWEREDBY; ?> <a href="http://www.sirvulcan.org/" target="_new">Public DNS Administrator</a>, <? echo _LICENSEDUNDER; ?> <a href="http://www.gnu.org" target="_new">GNU/GPL.</a> <? echo _REPORTBUGS; ?>:-  <a href="http://sourceforge.net/tracker/?func=add&group_id=78804&atid=554506" target="_new">PublicDNSAdmin Bug Tracker</a>.-  </td>-</tr>+    <table id="bottombar">+    <tr>+      <td background="cp/bottombar_tile.jpg"><img src="cp/bottombar_sub.jpg"></td>+    </tr>+  </table>+    </td>+  </tr>+  <tr>++    <td>+      <table id="footer">+        <tr>+          <td style="padding: 6px;" id="login_footer">DNSmanager is serving <? echo $recordstotal; ?> domains. | +<!--/* WARP3 Admanager (v3) Javascript Tag v2.3.39-beta */-->++<script type='text/javascript'><!--//<![CDATA[+   var m3_u = (location.protocol=='https:'?'https://ads.warp3.com/v3/www/delivery/ajs.php':'http://ads.warp3.com/v3/www/delivery/ajs.php');+   var m3_r = Math.floor(Math.random()*99999999999);+   if (!document.MAX_used) document.MAX_used = ',';+   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);+   document.write ("?zoneid=61&amp;target=_blank");+   document.write ('&amp;cb=' + m3_r);+   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);+   document.write ("&amp;loc=" + escape(window.location));+   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));+   if (document.context) document.write ("&context=" + escape(document.context));+   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");+   document.write ("'><\/scr"+"ipt>");+//]]>--></script> +          </td>+        </tr>+      </table>+    </td>+  </tr> </table>+</div>+</body>+ </body> </html>--- lib/header.php	Wed Aug 13 13:14:14 2003+++ lib/header.php	Sun Jan 13 11:30:12 2008@@ -1,117 +1,192 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id: header.php,v 1.19 2003/08/13 12:14:14 sirvulcan Exp $-*/ ?>- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head>-<title>[ Public DNS Administrator ]</title>-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +<title>.:: Free DNS Zone Administration ::.</title>+  <meta name="copyright" content="WARP3.COM Hosting" />+  <meta http-equiv="expires" content="-1" />+  <meta http-equiv="pragma" content="no-cache" />+  <meta http-equiv="Content-Language" content="en-us" />+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />+  <meta name="robots" content="all" />+  <meta name="keywords" content="dns,zone,administration,domain names,domains,domain,zoneedit, bind,secondary, secondary dns, fallback mx, fallback, smtp, named,free,public,free dns service,public dns,service,freedns,free dns,servers,mail forwarding,url redirection,frame forward,stealth url forward,url cloaking">+ <meta name="description" content="Free DNS hosting service, Secondary DNS service and Fallback MX services ."> <? if (strstr(getenv('HTTP_USER_AGENT'), 'MSIE')) {-  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"styleie.css\">";+  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"interworxie.css\">"; } else {-  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"styleother.css\">";+  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"interworx.css\">"; } ?>+ <script language="javascript" src="functions.jss"></script>+  <script language="javascript"+          type="text/javascript"+          src="interworx.js">+  </script>+  <script language="javascript"+          type="text/javascript"+          src="lib.js">+  </script>+  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">+  </script>+  <script type="text/javascript">+	_uacct = "UA-328070-2";+	urchinTracker();+  </script>+ </head>-<body>+<body <body +      topmargin="0"+      leftmargin="0"+      marginheight="0"+      marginwidth="0">+  <? $language = $_SESSION[_LANGUAGE]; if ($language == NULL) {   $language = $default_lang; }  $curpath = realpath("."); require("$curpath/lib/config.php");+//echo "$curpath/language/lang-" . $language . ".php"; if ((file_exists("$curpath/language/lang-" . $language . ".php")) && (is_readable("$curpath/language/lang-" . $language . ".php"))) {   require("$curpath/language/lang-" . $language . ".php"); } else {   /* Default to the default lang if the choosen lang doesnt exist */   $language = $default_lang;   if ((file_exists("$curpath/language/lang-" . $language . ".php")) && (is_readable("$curpath/language/lang-" . $language . ".php"))) {     require("$curpath/language/lang-" . $default_lang . ".php");   } else {     die("Default Language File Choosen Doesnt Exist Or Is Unreadable By The Webserver");   } }  ?> -<table border="0" cellspacing="1" cellpadding="5" width="100%" height="95%">-<tr>-  <td valign="top" class="menu" nowrap style="border-top: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-bottom: 1px solid #000000;">-    <div align="center" class="menu"><b><? echo _MENU; ?></b></div><br>-    <?php if ($_SESSION["_UID"]) { ?>-    &middot; <a href="index.php" class="menu"><? echo _MYDOMAINS; ?></a><br>-    <?php if (userHasAccess($_SESSION["_UID"], "edit_template")) { ?>&middot; <a href="templates.php" class="menu"><? echo _MYTEMPLATES; ?></a><br><?php } ?><br>--    <?php if (userHasAccess($_SESSION["_UID"], "new")) { ?>&middot; <a href="new_zone.php" class="menu"><? echo _NEWDOMAINS; ?></a><br><?php } ?>-    <?php if (userHasAccess($_SESSION["_UID"], "new_template")) { ?>&middot; <a href="new_template.php" class="menu"><? echo _NEWTEMPLATE; ?></a><br><?php } ?>--    <?php if (userHasAccess($_SESSION["_UID"], "users")) { ?><br>&middot; <a href="users.php" class="menu"><? echo _USERADMIN; ?></a><br><?php } ?>--    <?php if (userHasAccess($_SESSION["_UID"], "users")) { ?><br>&middot; <a href="dbbackup.php" class="menu"><? echo _DBBACKUP; ?></a><br><?php } ?>--    <?php if ($_SESSION["_UID"]) { ?><br>&middot; <a href="edit_self.php" class="menu"><? echo _SETTINGS; ?></a><br><?php } ?>+<div id="content">+<table id="content">+ <tr>+  <td background="cp/menu_bg.gif">+  	<table id="logo">+   	 <tr>+	  <td rowspan="2"><a href=http://www.warp3.com><img src="/images/logo_iworx.jpg"></a></td>+	  <td><img src="/images/btns_top.gif"></td>+	  <td rowspan="2"><img style="float: right;" src="/images/logo_siteworx.gif"></a></td>+          <td rowspan="2" background="cp/menu_bg.gif"></td>+          <td background="cp/menu_bg.gif"></td>+          <td rowspan="2" background="cp/menu_bg.gif"></td>+   	 </tr>+   	 <tr>+		         <td><a href="index.php"><img src="/images/home.jpg"></a><a href="info.php"><img src="/images/help.jpg"></a><img src="/images/btn_right.gif"></td>+ +	 </tr>+	 <tr>+          <td colspan="3" background="/images/colorbar_green_tile.jpg"><img src="/images/colorbar_left.jpg"><img src="/images/colorbar_green.jpg"></td>+   +   	 </tr>+  	</table>++	<table id="colorbar">+   	 <tr>+          <td width="234"><img src="cp/header_control2.JPG"></td>+          <td background="/images/bg_managing.jpg" id="managing"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </td>+   	 </tr>+  	</table>+  </td>+ </tr>+ <tr>+ <td background="cp/menu_bg.gif">+	<table >+	 <tr>+	  <td style="vertical-align: top;" background="cp/menu_bg.gif">+    <div id="menu"> -    <?php if (userHasAccess($_SESSION["_UID"], "users")) { ?><br>&middot; <a href="ns1stats.php" class="menu"><? echo _NS1STATS; ?></a><br><?php } ?>-    <?php if (userHasAccess($_SESSION["_UID"], "users")) { ?>&middot; <a href="ns2stats.php" class="menu"><? echo _NS2STATS; ?></a><br><?php } ?>+    <?php if ($_SESSION["_UID"]) { ?>+  <a id="menuitem" href="" onclick="return( toggleMenu( 'sub3' ) );"><? echo _MYACCOUNT; ?></a>+  <span class="submenu" id="sub3"> <ul>+      <li><a href="index.php"><? echo _MYDOMAINS; ?></a></li>+      <li><a href="dns.php"><? echo _MYMASTERS; ?></a></li>+      <li><a href="dnsset.php"><? echo _SECDOMAINS; ?></a></li>+      <li><a href="mx.php"><? echo _MX; ?></a></li>+      <li><a href="templates.php"><? echo _MYTEMPLATES; ?></a></li>+    </ul>+  </span>++  <a id="menuitem" href="" onclick="return( toggleMenu( 'sub1' ) );"><? echo _MKNEW; ?></a>+  <span class="submenu" id="sub1"> <ul>+      <li><a href="new_zone.php"><? echo _NEWDOMAINS; ?></a></li>+      <li><a href="new_template.php"><? echo _NEWTEMPLATE; ?></a></li>+    </ul>+  </span>++  <a href="edit_self.php">Settings</a>++    <?php if (userHasAccess($_SESSION["_UID"], "users")) { ?>+    <a id="menuitem" href="" onclick="return( toggleMenu( 'sub5' ) );"><? echo _ADVANCED; ?></a>+	<span class="submenu" id="sub5"> <ul>+	<li><a href="users.php"><? echo _USERADMIN; ?></a></li>+	<li><a href="dbbackup.php"><? echo _DBBACKUP; ?></a></li>+	<li><a href="ns1stats.php"><? echo _NS1STATS; ?></a></li>+	<li><a href="ns2stats.php"><? echo _NS2STATS; ?></a></li>+	<li><a href="ns3stats.php"><? echo _NS3STATS; ?></a></li>+    		</ul>+  	</span>+  <?php } ?>++  <a href="info.php" >Help</a>+  <a href="terms.php" ><? echo _TERMS; ?></a>+  <a href="logout.php"><? echo _LOGOUT; ?></a><p> -    <br>&middot; <a href="logout.php" class="menu"><? echo _LOGOUT; ?></a><br>-    <?php } else { ?>-    &middot; <a href="index.php" class="menu"><? echo _LOGIN; ?></a><br><br>+  <?php } else { ?>+    <a href="index.php"><? echo _LOGIN; ?></a>     <?     if ($allow_newusers != 0) {     ?>-      &middot; <a href="signup.php" class="menu"><? echo _SIGNUP; ?></a><br>+      <a href="signup.php"><? echo _SIGNUP; ?></a>     <?     }     ?>-    &middot; <a href="forgotten_pass.php" class="menu"><? echo _FORGOTTENPASS; ?></a><br>-    &middot; <a href="stats.php" class="menu"><? echo _STATISTICS; ?></a><br>-    &middot; <a href="terms.php" class="menu"><? echo _TERMS; ?></a><br><br>+    <a href="forgotten_pass.php" ><? echo _FORGOTTENPASS; ?></a>+    <a href="terms.php" ><? echo _TERMS; ?></a>+    <a href="info.php" >Help</a>     <?php-    echo "&middot; <a href=\"mailto:";+    echo "<a href=\"mailto:";     echo $contact_addy;     echo "\" class=\"menu\">"._CONTACT."</a><br>";-  }-  echo "<br><br><center>";-  echo "<a href=\"http://httpd.apache.org\" target=\"_new\"><img src=\"images/apache.gif\" border=0></a><br><br>";-  echo "<a href=\"http://www.php.net\" target=\"_new\"><img src=\"images/php.gif\" border=0></a><br><br>";-  if (db_type() == "mysql") {-    echo "<a href=\"http://www.mysql.com\" target=\"_new\"><img src=\"images/mysql.gif\" border=0></a><br>";-  } else {-    echo "<a href=\"http://www.postgresql.org\" target=\"_new\"><img src=\"images/pgsql.gif\" border=0></a><br>";+   }   echo "</center>";   ?>-  </td>-  <td>&nbsp;&nbsp;&nbsp;</td>-  <td valign="top" width="80%">-  <table><tr><td>-  <img src="images/logo.gif"><br>+  </div> </td>+      <td style="vertical-align: top;" background="cp/menuside_bg.gif">+        <img src="cp/left_curvenb.gif">+      </td>+      <td style="vertical-align: top;">+        <img src="cp/title_bg2.jpg">+      </td>+        <td id="usercontentframe">+           <div id="r2_header"><h2>Free DNS zone administrator</h2></div>++  <table id="datatable"+         width="100%">+    <tr class=row1 ruler>+      <td colspan=1 width=500 style="vertical-align: top;">++  <img src="images/logodns.gif"><br>   </td></tr><tr><td align="right">-  <font face="verdana" size=1>Public DNS Administrator v1.3</font>+  <font face="verdana" size=1>A free DNS service provided by <a href=http://www.warp3.com><b>W</b>ARP3.COM</a></font>   </td></tr></table>    <?    $config_check = 1;   $terms_check = 1;   $path = realpath(".");    if (file_exists("$path/lib/config.php")) {     if (!is_readable("$path/lib/config.php")) {       $config_check = 0;--- create_record.php	Wed Aug 13 13:14:14 2003+++ create_record.php	Fri Jan 25 07:09:46 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $zoneid = trim(addslashes($_GET["zone"]));  ?> <h3><? echo _EDITDOMAIN; ?> &raquo; <? echo _NEWRECORD; ?></h3> <?php@@ -29,23 +19,23 @@     if ($perms["edit_other"] or userHasZoneAccess($_SESSION["_UID"], $zoneid) or ($perms["edit_own"] and $row["user_id"] == $_SESSION["_UID"])) {        global $default_ttl;       $record = trim(addslashes($_POST["record"]));       $type = trim(addslashes($_POST["type"]));       $prio = trim(addslashes($_POST["prio"]));       $content = trim(addslashes($_POST["content"]));       $ttl = trim(addslashes($_POST["ttl"]));       $domain = addslashes($row["name"]);       $record = preg_replace("/\.+$/", "", $record); /* Remove trailing .'s */ -      if ($type != "NS" and $type != "MX" and $type != "A" and $type != "AAAA" and $type != "PTR" and $type != "CNAME" and $type != "TXT" and $type != "A6" and $type != "NS6" and $type != "MBOXFW" and $type != "URL" and $type != "RP" and $type != "HWINFO") {+      if ($type != "NS" and $type != "MX" and $type != "A" and $type != "AAAA" and $type != "PTR" and $type != "CNAME" and $type != "TXT" and $type != "A6" and $type != "NS6" and $type != "MBOXFW" and $type != "URL" and $type != "CURL" and $type != "RP" and $type != "HWINFO" and $type != "SRV") {         echo "<p class=\"error\">&middot; ". _INVALIDPOINTTYPE .": \"$type\"</p>\n";       } else {          if ($type == "MX") {           if (!$prio or !is_numeric($prio)) {             $prio = 10;           }         } elseif ($prio or !$prio or !is_numeric($prio)) {           $prio = 0;         } --- create_template.php	Wed Aug 13 13:14:14 2003+++ create_template.php	Fri Jan 25 07:09:54 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "new_template")) {    echo "<h3>"._NEWTEMPLATE."</h3>";   $name = trim(addslashes($_POST["name"]));      if ($name) {     $dbh = db_connect();     $result = $dbh->query("SELECT * FROM templates WHERE name = '$name'");--- create_template_record.php	Wed Aug 13 13:14:14 2003+++ create_template_record.php	Fri Jan 25 07:10:02 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit_template")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $zoneid = trim(addslashes($_GET["zone"]));  ?> <h3><? echo _EDITTEMPLATE; ?> &raquo; <? echo _NEWRECORD; ?></h3> <?php--- create_user.php	Wed Aug 13 13:14:14 2003+++ create_user.php	Fri Jan 25 07:10:10 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "users")) {  ?> <h3><? echo _USERADMIN; ?> &raquo; <? echo _NEWUSER; ?></h3> <?php    $dbh = db_connect();   $username = trim(addslashes($_POST["username"]));--- create_zone.php	Wed Aug 13 13:14:14 2003+++ create_zone.php	Fri Jan 25 07:10:16 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "new")) {    echo "<h3>"._NEWDOMAIN."</h3>";    if ($_GET["bulk"]) {      $domains = trim($_POST["domain_bulk"]);     $template = trim(addslashes($_POST["template"]));@@ -99,37 +89,34 @@     } else {        echo "<p>"._NODOMAINS."</p>\n";      }        } else {          $domain = trim(addslashes($_POST["domain"]));     $template = trim(addslashes($_POST["template"])); -    if (!$domain or (!preg_match("/^[a-zA-Z0-9-_]+\.[a-zA-Z0-9-_\.]{2,6}$/", $domain) and !preg_match("/^[0-9\.]+\.in-addr\.arpa$/", $domain) and !preg_match("/^[0-9\.]+\.ip6\.arpa$/", $domain) and !preg_match("/^[0-9\.]+\.ip6\.int$/", $domain))) {-      echo "<p class=\"error\">"._MISSINGINVDOM."</p>\n";-    } else {       $dbh = db_connect();       $result = $dbh->query("SELECT * FROM templates WHERE id = '$template'");       if (!$dbh->isError($result) && $result->numRows()) {          $result = $dbh->query("SELECT * FROM domains WHERE name = '$domain'");         if (!$dbh->isError($result) && $result->numRows()) {           echo "<p class=\"error\">&middot; ".DOMAINOWNEREXIST."</p>\n";         } else {           $zoneid = createZone($domain, $template, $_SESSION["_UID"]);           echo "<p>"._ZONECREATED." <a href=\"edit_zone.php?id=$zoneid\">"._HERE."</a> "._TOEDIT.".</p>\n";         }       } else {         echo "<p class=\"error\">"._TEMPLATEUNAVAIL."</p>\n";       }-    }+            } } else {   displayNoAccess(); }  require("lib/footer.php"); ?>--- dbbackup.php	Wed Aug 13 13:14:14 2003+++ dbbackup.php	Fri Jan 25 07:10:44 2008@@ -1,22 +1,12 @@ <?-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); include("lib/header.php"); if (userHasAccess($_SESSION["_UID"], "users")) {    $date = date("mdy-hia");   $path = realpath(".");   $filename = "$path/data/lbdns-".$date.".sql";   $filesmall = "lbdns-".$date.".sql.gz";    if (db_type() == "mysql") {     passthru("mysqldump --opt -h".$database_host." -u".$database_user." -r".$filename." ".$database_name);--- delete_multi_records.php	Wed Aug 13 13:14:14 2003+++ delete_multi_records.php	Fri Jan 25 07:11:42 2008@@ -1,44 +1,36 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/  require("lib/prepend.php"); require("lib/header.php");  $perms = getUserPermissions($_SESSION["_UID"]);  if (userHasAccess($_SESSION["_UID"], "edit")) {  ?> <h3><? echo _EDITDOMAIN; ?> &raquo; <? echo _DELMULTIRECORDS; ?></h3> <?php    if ($recdel) {     $del_count_max = count($recdel);      $dbh = db_connect();     foreach($recdel as $rcount=>$recordid) {+	//$result = getRecordForDelete($recdel);       $result = $dbh->query("SELECT domain_owners.user_id, domains.name AS domain_name, records.* FROM domains, domain_owners, records WHERE records.id = '$recordid' AND domain_owners.domain_id = records.domain_id AND domains.id = domain_owners.domain_id AND records.type <> 'SOA'");       if (!$dbh->isError($result) && $result->numRows()) {         $row = $result->fetchRow();         if ($perms["edit_other"] or ($perms["edit_own"] and $row["user_id"] == $_SESSION["_UID"])) {-          $dbh->query("DELETE FROM records WHERE id = '$recordid'");+	   deleteRecord($recordid);+          //$dbh->query("DELETE FROM records WHERE id = '$recordid'");           updateZoneSerial($row["domain_id"]);         } else {           echo "<p class=\"error\">&middot; "._NOPERMSDELREC."- ($recordid)</p>\n";           $error_occur = 1;         }         // Technically the above and below errors shouldnt happen, if they do it will be a very rare occasion. -sirvulcan       } else {         echo "<p class=\"error\">&middot; "._ZONERECNOTFND." ($recordid)</p>\n";         $error_occur = 1;       }     }--- delete_multi_t_records.php	Wed Aug 13 13:14:14 2003+++ delete_multi_t_records.php	Fri Jan 25 07:11:50 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/  require("lib/prepend.php"); require("lib/header.php");  $perms = getUserPermissions($_SESSION["_UID"]);  if (userHasAccess($_SESSION["_UID"], "edit_template")) {  ?> <h3><? echo _EDITTEMPLATE; ?> &raquo; <? echo _DELMULTIRECORDS; ?></h3> <?php--- delete_record.php	Wed Aug 13 13:14:14 2003+++ delete_record.php	Fri Jan 25 07:11:58 2008@@ -1,33 +1,24 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $recordid = trim(addslashes($_GET["id"]));  ?> <h3><? echo _EDITDOMAIN; ?> &raquo; <? echo _DELRECORD; ?></h3>-<?php+<? echo $perms; ?>+<?    $dbh = db_connect();   $result = $dbh->query("SELECT domain_owners.user_id, domains.name AS domain_name, records.* FROM domains, domain_owners, records WHERE records.id = '$recordid' AND domain_owners.domain_id = records.domain_id AND domains.id = domain_owners.domain_id AND records.type <> 'SOA'");   if (!$dbh->isError($result) && $result->numRows()) {      $row = $result->fetchRow();     if ($perms["edit_other"] or ($perms["edit_own"] and $row["user_id"] == $_SESSION["_UID"])) {        if ($_GET["confirm"]) {          $dbh->query("DELETE FROM records WHERE id = '$recordid'");--- delete_template.php	Wed Aug 13 13:14:14 2003+++ delete_template.php	Fri Jan 25 07:12:06 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "delete_template")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $zoneid = trim(addslashes($_GET["id"]));    echo "<h3>". _DELTEMPLATE ."</h3>";    $dbh = db_connect();--- delete_template_record.php	Wed Aug 13 13:14:14 2003+++ delete_template_record.php	Fri Jan 25 07:12:14 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit_template")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $recordid = trim(addslashes($_GET["id"]));  ?> <h3><? echo _EDITTEMPLATE; ?> &raquo; <? echo _DELRECORD; ?></h3> <?php--- delete_user.php	Wed Aug 13 13:14:14 2003+++ delete_user.php	Fri Jan 25 07:12:18 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/  require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "users") && ($_GET["id"] != 1)) {    $perms = getUserPermissions($_SESSION["_UID"]);   $userid = trim(addslashes($_GET["id"]));   $dbh = db_connect();   $getuser =  $dbh->query("SELECT username FROM users where id='$userid'");   if (!$dbh->isError($getuser) && $getuser->numRows()) {--- delete_zone.php	Wed Aug 13 13:14:14 2003+++ delete_zone.php	Fri Jan 25 07:12:26 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "delete")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $zoneid = trim(addslashes($_GET["id"]));    echo "<h3>"._DELDOMAIN."</h3>";    $dbh = db_connect();--- edit_record.php	Wed Aug 13 13:14:14 2003+++ edit_record.php	Fri Jan 25 07:13:52 2008@@ -1,89 +1,82 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $recordid = trim(addslashes($_GET["id"]));   $zoneid = getZoneFromRecord($recordid);  ?> <h3><? echo _EDITDOMAIN; ?> &raquo; <? echo _EDITRECORD; ?></h3> <?php    $dbh = db_connect();-  $result = $dbh->query("SELECT records.*, domain_owners.user_id, domains.name AS domain_name FROM domains, domain_owners, records WHERE records.id = '$recordid' AND domain_owners.domain_id = records.domain_id AND domains.id = domain_owners.domain_id AND records.type <> 'SOA'");+  $result = $dbh->query("SELECT records.*, domain_owners.user_id, domains.name AS domain_name FROM domains, domain_owners, records WHERE records.id = '$recordid' AND domain_owners.domain_id = records.domain_id AND domains.id = domain_owners.domain_id AND records.type <> 'SOAL'");   if (!$dbh->isError($result) && $result->numRows()) {     $row = $result->fetchRow();     if ($perms["edit_other"] or userHasZoneAccess($_SESSION["_UID"], $zoneid) or ($perms["edit_own"] and $row["user_id"] == $_SESSION["_UID"])) {        $preg_dom = preg_quote($row["domain_name"], "/");       $record_name = preg_replace("/^(.*)$preg_dom$/", '\1', $row["name"]);       $record_name = preg_replace("/^\.+/", "", $record_name);       $record_name = preg_replace("/\.+$/", "", $record_name);       if ($row["type"] == "MBOXFW") {         $record_split = split("@", $record_name);         $record_name = $record_split[0];       }  ?> <form action="update_record.php?id=<?php echo $recordid; ?>" method="post" name="recform">-<table border="0" cellspacing="0" cellpadding="2">-<tr>+<table width=400 border="0" cellspacing="0" cellpadding="5">+<tr width=400>   <? echo "<td><b>"._RECORD.":</b></td>"; ?> <?   if ($row["type"] != "PTR") {     if ($row["type"] == "MBOXFW") {-          echo "<td><input type=\"text\" name=\"record\" size=\"15\" maxlength=\"200\" value=\"" .  htmlentities($record_name) . "\"><DIV ID=\"seperator\"><div class=\"seperator\">@</font></div></DIV><div class=\"domain\">" . htmlentities($row["domain_name"]) . "</div></td>";+          echo "<td><input type=\"text\" name=\"record\" size=\"15\" maxlength=\"200\" value=\"" .  htmlentities($record_name) . "\">@</font></div><div class=\"domain\">" . htmlentities($row["domain_name"]) . "</div></td>";     } else { ?> 	  <td><input type="text" name="record" size="15" maxlength="200" value="<?php echo htmlentities($record_name); ?>"><DIV ID="seperator"><div class="seperator">.</div></DIV><div class="domain"><?php echo htmlentities($row["domain_name"]); ?></div></td> <?     }   } else {           $expaddy = explode(".", htmlentities($record_name));           $dispaddy = $expaddy[3].".".$expaddy[2].".".$expaddy[1].".".$expaddy[0]; ?> 	  <td><input type="text" name="record" size="15" maxlength="200" value="<?php echo $dispaddy; ?>">.<?php echo htmlentities($row["domain_name"]); ?></td> <?   } ?> </tr> <tr>   <? echo "<td><b>"._TYPE.":</b></td>"; ?>   <td><select name="type" onChange="changeText(this.form.type)">-    <option value="NS"<?php if ($row["type"] == "NS") { ?> selected<?php } ?>>NS</option>-    <option value="NS6"<?php if ($row["type"] == "NS6") { ?> selected<?php } ?>>NS6</option>-    <option value="MX"<?php if ($row["type"] == "MX") { ?> selected<?php } ?>>MX</option>-    <option value="A"<?php if ($row["type"] == "A") { ?> selected<?php } ?>>A</option>-    <option value="A6"<?php if ($row["type"] == "A6") { ?> selected<?php } ?>>A6</option>+    <option value="A"<?php if ($row["type"] == "A") { ?> selected<?php } ?>>Address</option>+    <option value="NS"<?php if ($row["type"] == "NS") { ?> selected<?php } ?>>Name Server</option>+    <option value="NS6"<?php if ($row["type"] == "NS6") { ?> selected<?php } ?>>Name Server (IPv6)</option>+    <option value="MX"<?php if ($row["type"] == "MX") { ?> selected<?php } ?>>Mail Server</option>+    <option value="A6"<?php if ($row["type"] == "A6") { ?> selected<?php } ?>>Address (IPv6)</option>     <option value="AAAA"<?php if ($row["type"] == "AAAA") { ?> selected<?php } ?>>AAAA</option>-    <option value="PTR"<?php if ($row["type"] == "PTR") { ?> selected<?php } ?>>PTR</option>-    <option value="CNAME"<?php if ($row["type"] == "CNAME") { ?> selected<?php } ?>>CNAME</option>-    <option value="TXT"<?php if ($row["type"] == "TXT") { ?> selected<?php } ?>>TXT</option>-    <option value="MBOXFW"<?php if ($row["type"] == "MBOXFW") { ?> selected<?php } ?>>MBOXFW</option>-    <option value="URL"<?php if ($row["type"] == "URL") { ?> selected<?php } ?>>URL</option>+    <option value="PTR"<?php if ($row["type"] == "PTR") { ?> selected<?php } ?>>Pointer</option>+    <option value="CNAME"<?php if ($row["type"] == "CNAME") { ?> selected<?php } ?>>Alias Address (CNAME)</option>+    <option value="TXT"<?php if ($row["type"] == "TXT") { ?> selected<?php } ?>>Text Record</option>+    <option value="URL"<?php if ($row["type"] == "URL") { ?> selected<?php } ?>>URL Redirect</option>+    <option value="CURL"<?php if ($row["type"] == "CURL") { ?> selected<?php } ?>>URL Frame Redirect</option>+    <option value="MBOXFW"<?php if ($row["type"] == "MBOXFW") { ?> selected<?php } ?>>Mail Forwarding</option>+    <option value="SRV"<?php if ($row["type"] == "SRV") { ?> selected<?php } ?>>SeRVer record</option>     <option value="RP"<?php if ($row["type"] == "RP") { ?> selected<?php } ?>>RP</option>-    <option value="HWINFO"<?php if ($row["type"] == "HWINFO") { ?> selected<?php } ?>>HWINFO</option>+    <option value="HWINFO"<?php if ($row["type"] == "HWINFO") { ?> selected<?php } ?>>Hardware Info</option>+    <option value="SOA"<?php if ($row["type"] == "SOA") { ?> selected<?php } ?>>SOA (Zone)</option>   </select></td> </tr> <tr>   <? echo "<td><b>"._PRIO.":</b></td>"; ?>   <? if ($row["type"] != "MX") { ?>   <td><input type="text" name="prio" disabled="true" size="5" maxlength="11" value="<?php if ($row["prio"]) { echo htmlentities($row["prio"]); } ?>"></td>   <? } else { ?>   <td><input type="text" name="prio" size="5" maxlength="11" value="<?php if ($row["prio"]) { echo htmlentities($row["prio"]); } ?>"></td>   <? } ?> </tr> <tr>--- edit_self.php	Wed Aug 13 13:14:14 2003+++ edit_self.php	Fri Jan 25 07:14:00 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");     echo "<h3>"._EDITSETTINGS."</h3>";    $dbh = db_connect();   $userid = trim(addslashes($_SESSION["_UID"]));   $result = $dbh->query("SELECT * FROM users WHERE id = '$userid'");   if (!$dbh->isError($result) && $result->numRows()) {     $row = $result->fetchRow();--- edit_template.php	Wed Aug 13 13:14:14 2003+++ edit_template.php	Fri Jan 25 07:14:06 2008@@ -1,51 +1,47 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit_template")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $zoneid = trim(addslashes($_GET["id"]));-+  $userid = $_SESSION["_UID"];   echo "<h3>"._EDITTEMPLATE."</h3>";    $dbh = db_connect();-  $result = $dbh->query("SELECT * FROM templates WHERE id = '$zoneid'");+  $result = $dbh->query("SELECT * FROM templates WHERE id = '$zoneid' AND created_by = '$userid'");   if (!$dbh->isError($result) && $result->numRows()) {      $row = $result->fetchRow();+?>+  <table border=0 id="datatable"+         width="100%">+    <tr class=row1 ruler>+      <td colspan=1 width=500 style="vertical-align: top;">+<?php     echo "<form action=\"update_template.php?id=$zoneid\" method=\"post\">\n";     echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n";     echo "<tr>\n";     echo "<td><b>"._TEMPLATENAME.":</b></td>\n";     echo "<td><input type=\"text\" name=\"name\" size=\"15\" maxlength=\"255\" value=\"".htmlentities($row["name"])."\"></td>\n";     echo "</tr>\n";     echo "<tr>\n";     echo "<td colspan=\"2\" align=\"right\"><input type=\"submit\" value=\""._UPDATE."\"></td>\n";     echo "</tr>\n";     echo "</table>\n";     echo "</form>\n";     echo "<p>&middot; <a href=\"new_template_record.php?zone=$zoneid\">"._NEWRECORDUP."</a></p>\n";     echo "<form action=\"delete_multi_t_records.php\" name=\"recdelform\" method=\"post\">\n";-    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"background: #000000;\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><th><input type=\"submit\" value=\""._DEL."\" disabled=\"true\" name=\"delbut\"></th><th>"._RECORD."</th><th>"._TYPE."</th><th>"._CONTENT."</th><th>"._PRIORITY."</th><th>"._TTL."</th><th>&nbsp;</th></tr>\n";+    echo "<table id=\"datauable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td ><table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><th><input type=\"submit\" value=\""._DEL."\" disabled=\"true\" name=\"delbut\"></th><th>"._RECORD."</th><th>"._TYPE."</th><th>"._CONTENT."</th><th>"._PRIORITY."</th><th>"._TTL."</th><th>&nbsp;</th></tr>\n";      $row_id = 0;     $row_c = -1;     $rec_res = $dbh->query("SELECT * FROM template_records WHERE template_id = '$zoneid'");      if (!$dbh->isError($rec_res) && $rec_res->numRows()) {       while ($rec_row = $rec_res->fetchRow()) {                  $row_id++; 	$row_c++; @@ -53,44 +49,38 @@ 		$bgcolor=$row1; 	} else { 		$bgcolor=$row2; 	}          if ($rec_row["prio"]) {           $priority = htmlentities($rec_row["prio"]);         } else {           $priority = "&nbsp;";         } -	if ($row_id == 1) {-	        echo "<tr onmouseover=\"setPointer(this, $row_c, 'over', '$row1', '#CCFFCC', '#FFCC99');\" onmouseout=\"setPointer(this, $row_c, 'out', '$row1', '#CCFFCC', '#FFCC99');\" onmousedown=\"setPointer(this, $row_c, 'click', '$row1', '#CCFFCC', '#FFCC99');\">";-	} else {-	        echo "<tr onmouseover=\"setPointer(this, $row_c, 'over', '$row2', '#CCFFCC', '#FFCC99');\" onmouseout=\"setPointer(this, $row_c, 'out', '$row2', '#CCFFCC', '#FFCC99');\" onmousedown=\"setPointer(this, $row_c, 'click', '$row2', '#CCFFCC', '#FFCC99');\">";-	}--        echo "<td bgcolor=\"$bgcolor\"><input type=\"checkbox\" name=\"recdel[]\" onClick=\"checkCount()\" value=\"". $rec_row["id"] ."\"></td>\n";-        echo "<td bgcolor=\"$bgcolor\"><a href=\"edit_template_record.php?id=".$rec_row["id"]."\">".htmlentities($rec_row["name"])."</a></td>\n";-        echo "<td bgcolor=\"$bgcolor\" align=\"center\">".htmlentities($rec_row["type"])."</td>\n";-        echo "<td bgcolor=\"$bgcolor\">".htmlentities($rec_row["content"])."</td>\n";-        echo "<td bgcolor=\"$bgcolor\" align=\"right\">$priority</td>\n";-        echo "<td bgcolor=\"$bgcolor\" align=\"right\">".htmlentities($rec_row["ttl"])."</td>\n";+        echo "<td ><input type=\"checkbox\" name=\"recdel[]\" onClick=\"checkCount()\" value=\"". $rec_row["id"] ."\"></td>\n";+        echo "<td ><div id=\"nodeworx_content_header\"><a href=\"edit_template_record.php?id=".$rec_row["id"]."\">".htmlentities($rec_row["name"])."</a></td>\n";+        echo "<td align=\"center\"><div id=\"nodeworx_content_header\">".htmlentities($rec_row["type"])."</td>\n";+        echo "<td ><div id=\"nodeworx_content_header\">".htmlentities($rec_row["content"])."</td>\n";+        echo "<td align=\"right\"><div id=\"nodeworx_content_header\">$priority</td>\n";+        echo "<td align=\"right\"<div id=\"nodeworx_content_header\">".htmlentities($rec_row["ttl"])."</td>\n"; -        echo "<td bgcolor=\"$bgcolor\"><a href=\"edit_template_record.php?id=".$rec_row["id"]."\"><img src=\"images/edit.png\" alt=\""._EDITRECORD."\" border=\"0\"></a>&nbsp;<a href=\"delete_template_record.php?id=".$rec_row["id"]."\"><img src=\"images/trash.png\" alt=\""._DELRECORD."\" border=\"0\"></a></td>\n";+        echo "<td ><a href=\"edit_template_record.php?id=".$rec_row["id"]."\"><img src=\"images/edit.png\" alt=\""._EDITRECORD."\" border=\"0\"></a>&nbsp;<a href=\"delete_template_record.php?id=".$rec_row["id"]."\"><img src=\"images/delete.gif\" alt=\""._DELRECORD."\" border=\"0\"></a></td>\n";         echo "</tr>\n";                  if ($row_id == 2) { $row_id = 0; }        }     } -    echo "</table></td></tr></table></form>\n";+    echo "</table></td></tr></table></form></td></tr></table>\n";    } else {     echo "<p class=\"error\">&middot; "._TEMPLATENOTFND."</p>\n";   }    $dbh->disconnect();    } else {   displayNoAccess(); } --- edit_template_record.php	Wed Aug 13 13:14:14 2003+++ edit_template_record.php	Fri Jan 25 07:14:12 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit_template")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $recordid = trim(addslashes($_GET["id"]));  ?> <h3><? echo _EDITTEMPLATE; ?> &raquo; <? echo _EDITRECORD; ?></h3> <?php--- edit_user.php	Thu Aug 14 00:19:00 2003+++ edit_user.php	Fri Jan 25 07:14:18 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "users")) {  ?> <h3><? echo _USERADMIN; ?> &raquo; <? echo _EDITUSER; ?></h3> <?php    $dbh = db_connect();   $userid = trim(addslashes($_GET["id"]));--- edit_zone.php	Wed Aug 13 13:14:14 2003+++ edit_zone.php	Fri Jan 25 07:14:26 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $zoneid = trim(addslashes($_GET["id"]));  echo "<h3>"._EDITDOMAIN."</h3>";   if ($perms["raw"] == 2) { ?>@@ -24,95 +14,98 @@ <?php   }    $dbh = db_connect();   $result = $dbh->query("SELECT domain_owners.user_id, domains.name FROM domains, domain_owners WHERE domain_owners.domain_id = '$zoneid' AND domains.id = domain_owners.domain_id");   if (!$dbh->isError($result) && $result->numRows()) {      $row = $result->fetchRow();     if ($perms["edit_other"] or userHasZoneAccess($_SESSION["_UID"], $zoneid) or ($perms["edit_own"] and $row["user_id"] == $_SESSION["_UID"])) {        $records = getRecords($zoneid);-      echo "<p>&middot; <a href=\"new_record.php?zone=$zoneid\">"._NEWRECORDUP."</a></p>\n";-+      echo "<p> <a href=\"new_record.php?zone=$zoneid\">"._NEWRECORDUP."</a></p>\n";+      ?>+  <table id="datatable"+         width="100%">+    <tr class=row1 ruler>+      <td colspan=1 width=500 style="vertical-align: top;">+<?php       echo "<form action=\"delete_multi_records.php\" name=\"recdelform\" method=\"post\">\n";-      echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"background: #000000;\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><th><input type=\"submit\" name=\"delbut\" disabled=\"true\" value=\""._DEL."\"></th><th>"._RECORD."</th><th>"._TYPE."</th><th>"._CONTENT."</th><th>"._PRIORITY."</th><th>"._TTL."</th><th>&nbsp;</th></tr>\n";+      echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"vertical-align: top;\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><th><input type=\"submit\" name=\"delbut\" disabled=\"true\" value=\""._DEL."\"></th><th>"._RECORD."</th><th>"._TYPE."</th><th>"._CONTENT."</th><th>"._PRIORITY."</th><th>"._TTL."</th><th>&nbsp;</th></tr>\n";        $row_id = 0;       $row_c = -1;       foreach ($records as $record) {                  $row_id++;         $row_c++;          if ($row_id == 1) { 		$bgcolor=$row1; 	} else { 		$bgcolor=$row2; 	}          if ($record["prio"]) {           $priority = htmlentities($record["prio"]);         } else {           $priority = "&nbsp;";         }  	if ($row_id == 1) {-	        echo "<tr onmouseover=\"setPointer(this, $row_c, 'over', '$row1', '#CCFFCC', '#FFCC99');\" onmouseout=\"setPointer(this, $row_c, 'out', '$row1', '#CCFFCC', '#FFCC99');\" onmousedown=\"setPointer(this, $row_c, 'click', '$row1', '#CCFFCC', '#FFCC99');\">";-	        echo "<td bgcolor=\"#e6ebef\">";+	        echo "<td >"; 	} else {-	        echo "<tr onmouseover=\"setPointer(this, $row_c, 'over', '$row2', '#CCFFCC', '#FFCC99');\" onmouseout=\"setPointer(this, $row_c, 'out', '$row2', '#CCFFCC', '#FFCC99');\" onmousedown=\"setPointer(this, $row_c, 'click', '$row2', '#CCFFCC', '#FFCC99');\">";-	        echo "<td bgcolor=\"#efeae6\">";+	        echo "<td >"; 	} 	if ($record["type"] != "SOA") { 		echo "<input type=\"checkbox\" name=\"recdel[]\" onClick=\"checkCount()\" value=\"". $record["id"] ."\">"; 	} 	echo "</td>";  	if (htmlentities($record["type"]) != "PTR") {-		if ($record["type"] != "SOA") {+		if ($record["type"] != "SOAL") {                 	if ($record["type"] == "MBOXFW") {-				echo "<td bgcolor=\"$bgcolor\"><a href=\"edit_record.php?id=".$record["id"]."\">". $record["name"] ."</a></td>\n";+				echo "<td ><div id=\"nodeworx_content_header\"><a href=\"edit_record.php?id=".$record["id"]."\">". $record["name"] ."</a></td>\n"; 			} else {-			        echo "<td bgcolor=\"$bgcolor\"><a href=\"edit_record.php?id=".$record["id"]."\">".htmlentities($record["name"])."</a></td>\n";+			        echo "<td ><div id=\"nodeworx_content_header\"><a href=\"edit_record.php?id=".$record["id"]."\">".htmlentities($record["name"])."</a></td>\n"; 			} 		} else {-		        echo "<td bgcolor=\"$bgcolor\">".htmlentities($record["name"])."</td>\n";+		        echo "<td ><div id=\"nodeworx_content_header\">".htmlentities($record["name"])."</td>\n"; 		} 	} else { 		$dispaddy = $expaddy[3].".".$expaddy[2].".".$expaddy[1].".".$expaddy[0];    	     	$expaddy = explode(".", htmlentities($record["name"])); 		if ($record["type"] != "SOA") {-			echo "<td bgcolor=\"$bgcolor\"><a href=\"edit_record.php?id=".$record["id"]."\">".$dispaddy."</a></td>\n";+			echo "<td ><div id=\"nodeworx_content_header\"><a href=\"edit_record.php?id=".$record["id"]."\">".$dispaddy."</a></td>\n"; 		} else {-			echo "<td bgcolor=\"$bgcolor\">".$dispaddy."</td>\n";+			echo "<td ><div id=\"nodeworx_content_header\">".$dispaddy."</td>\n"; 		} 	}-       	echo "<td bgcolor=\"$bgcolor\" align=\"center\">".htmlentities($record["type"])."</td>\n";-        echo "<td bgcolor=\"$bgcolor\">".htmlentities($record["content"])."</td>\n";-        echo "<td bgcolor=\"$bgcolor\" align=\"center\">$priority</td>\n";-        echo "<td bgcolor=\"$bgcolor\" align=\"right\">".htmlentities($record["ttl"])."</td>\n";+       	echo "<td align=\"center\"><div id=\"nodeworx_content_header\">".htmlentities($record["type"])."</td>\n";+        echo "<td width=auto nowrap><div id=\"nodeworx_content_header\">".htmlentities($record["content"])."</td>\n";+        echo "<td align=\"center\"><div id=\"nodeworx_content_header\">$priority</td>\n";+        echo "<td align=\"right\"><div id=\"nodeworx_content_header\">".htmlentities($record["ttl"])."</td>\n"; -        echo "<td bgcolor=\"$bgcolor\" height=\"20\">";+        echo "<td height=\"20\">";         if ($record["type"] != "SOA") {-          echo "<a href=\"edit_record.php?id=".$record["id"]."\"><img src=\"images/edit.png\" alt=\"Edit record\" border=\"0\"></a>&nbsp;<a href=\"delete_record.php?id=".$record["id"]."\"><img src=\"images/trash.png\" alt=\""._DELRECORD."\" border=\"0\"></a>";+          echo "<a href=\"edit_record.php?id=".$record["id"]."\"><img src=\"images/edit.png\" alt=\"Edit record\" border=\"0\"></a>&nbsp;<a href=\"delete_record.php?id=".$record["id"]."\"><img src=\"images/delete.gif\" alt=\""._DELRECORD."\" border=\"0\"></a>";         } else {           echo "&nbsp;";         }         echo "</td>\n";         echo "</tr>\n";                  if ($row_id == 2) { $row_id = 0; }        }-      echo "</table></td></tr></table></form>\n";+      echo "</table></td></tr></table></form></td></tr></table>\n";      } else {       echo "<p class=\"error\">&middot; "._NOPERMSEDITDOM."</p>\n";     }        } else {     echo "<p class=\"error\">&middot; "._ZONENOTFND."</p>\n";   }   $dbh->disconnect();    } else {--- forgotten_pass.php	Wed Aug 13 13:14:14 2003+++ forgotten_pass.php	Fri Jan 25 07:17:00 2008@@ -1,49 +1,45 @@ <?-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php"); +$fetchpass = trim(addslashes($_POST["fetchpass"]));+$emailaddy = trim(addslashes($_POST["emailaddy"]));+$username = trim(addslashes($_POST["username"]));+ echo "<h3>". _FORGOTTENPASS ."</h3>";  if ($fetchpass == "1") { 	$dbh = db_connect(); 	$usercheck = $dbh->query("SELECT username,email FROM users WHERE username='".$username."' AND email='".$emailaddy."'");         if (!$dbh->isError($usercheck) && $usercheck->numRows()) { 		$userrow = $usercheck->fetchRow(); 		$dbuser = htmlentities($userrow["username"]); 		$dbemail = htmlentities($userrow["email"]);  		$newpass = time() * rand(0,100); 		$md5_pass = md5($newpass);  		$fromaddy = $contact_addy; 		$subject = _REQUESTEDPASS; 		$content = "". _PASSWORDFOR ." $site_address ". _IS .": $newpass. ". _LOGINANDCHANGE .""; -		$headers .= "MIME-Version: 1.0\r\n"; -		$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";  		$headers .= "From: ".$fromaddy." <".$fromaddy.">\r\n";  		$headers .= "Reply-To: ".$fromaddy." <".$fromaddy.">\r\n"; -		$headers .= "X-Priority: 1\r\n"; -		$headers .= "X-MSMail-Priority: High\r\n";-		$headers .= "X-Mailer: PublicDNSAdmin Mailer v1.0"; +		$headers .= "X-Priority: 1\r"; +		$headers .= "X-MSMail-Priority: High\r";+		$headers .= "X-Mailer: WARP3.COM DNS  Mailer v1.0"; +                $headers .= "Return-Path: ".$fromaddy." <".$fromaddy.">\r";+                $headers .= "MIME-Version: 1.0\r";+                $headers .= "Content-type: text/html; charset=iso-8859-1";+  		mail($dbemail, $subject, $content, $headers); 		$dbh->query("UPDATE users SET password = '$md5_pass' WHERE username='$dbuser'"); 		echo "Email Has Been Sent";         } else { 		echo "<p class=\"error\">". _INVUSEROREMAIL ."."; 	} 	$dbh->disconnect(); } else { ?> <table>--- gfx_code.php	Wed Aug 13 13:14:14 2003+++ gfx_code.php	Fri Jan 25 07:17:48 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/  require("lib/prepend.php");  global $ALLOWED_EXT,$DEFAULT_BG_COLOR,$DEFAULT_FG_COLOR,$DEFAULT_FONT_SIZE,$FONT_PATH,$GFX_SECURE_MODE; global $ENABLE_ANGLE_VARIATION,$DEFAULT_LINES_COLOR,$DEFAULT_DOTS_COLOR,$DEFAULT_NUM_LINES,$DEFAULT_NUM_DOTS; global $ENABLE_H_LINES,$ENABLE_V_LINES,$ENABLE_DOTS,$SPECIFIC_FONT2,$TILE_UP,$TILE_DW,$RANDOM_UP_DW,$NEWUSERS_GFXCHECK; global $JPEG_OUT_QUALITY,$SPECIFIC_FONT;  if (!extension_loaded("gd")) { // checking if LibGD is present in apache/php     $SHOW_GFXUSRCHK = 0;   } else {--- grant_access.php	Wed Aug 13 13:14:14 2003+++ grant_access.php	Fri Jan 25 07:18:24 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  $perms = getUserPermissions($_SESSION["_UID"]); $zoneid = trim(addslashes($_GET["id"]));  if ($perms["raw"] == 2) {    echo "<h3>". _GRANTUSERACC ."</h3>";    $dbh = db_connect();--- index.php	Wed Aug 13 13:14:14 2003+++ index.php	Fri Jan 25 07:19:02 2008@@ -1,102 +1,92 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org> -   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (!extension_loaded("gd")) { // checking if LibGD is present in apache/php     $SHOW_GFXUSRCHK = 0;   } else {     $SHOW_GFXUSRCHK = 1; }  if ($_SESSION["_UID"]) {  echo "<h3>"._MYDOMAINS."</h3>"; ?>+  <table id="datatable"+         width="100%">+    <tr class=row1 ruler>+      <td colspan=1 width=500 style="vertical-align: top;">+ <p style="margin-bottom: 0px;"><b><? echo _SEARCH; ?>:</b></p> <form action="search.php" method="post" style="margin-top: 0px;"> <table border="0" cellspacing="0" cellpadding="6" class="row1" style="border: 1px solid #000000;"> <tr>-  <td align="right"><b><? echo _CRITERIA; ?>:</b>&nbsp;&nbsp;<input type="text" name="query" size="10" value=""><br><input type="submit" value=<? echo _SEARCH; ?>></td>+  <td style="vertical-align: top;" ><b><? echo _CRITERIA; ?>:</b>&nbsp;&nbsp;<input type="text" name="query" size="10" value="">&nbsp;<input type="submit" value=<? echo _SEARCH; ?>></td> </tr> </table> </form>    <?php+if ($_SESSION["_UID"] != 1) {   $zones = getUserZones($_SESSION["_UID"]);   if (count($zones)) {     $dbh = db_connect();      $row_id = 0;     $row_count = 0;     $offsetmin = $offset;     $offsetmax = $offset + $domains_per_page; -    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"background: #000000;\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><th>"._DOMAIN."</th><th>"._CURRENTSERIAL."</th><th>"._OWNER."</th><th>"._RECORDS."</th><th>&nbsp;</th></tr>\n";+    echo "<table id=\"datauable\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr class=row1 ruler><td colspan=1 width=500 style=\"vertical-align: top;\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td>"._DOMAIN."</td><td >"._CURRENTSERIAL."</td><td >"._OWNER."</td><td >"._RECORDS."</td><td>&nbsp;</td></tr>\n";     foreach ($zones as $zone) {        $row_id++;       $row_count++;       $row_c = $row_count - 1; -      if ($row_id == 1) {-		$bgcolor=$row1;-      } else {-		$bgcolor=$row2;-      }-       $serial = getZoneSerial($zone["id"]);       $records = 0;       $tmpres = $dbh->query("SELECT COUNT(id) AS rec_count FROM records WHERE domain_id = ".$zone["id"]);       if (!$dbh->isError($tmpres) && $tmpres->numRows()) {         $tmprow = $tmpres->fetchRow();-        $records = $tmprow["rec_count"];+        $records = getNumberOfRecords($zone["id"]);+      } else {+	$records = getNumberOfRecords($zone["id"]);       } -      $owner = "Unknown";+      $owner = "NA";       $tmpres = $dbh->query("SELECT users.username FROM users, domain_owners WHERE domain_owners.domain_id = ".$zone["id"]." AND users.id = domain_owners.user_id");       if (!$dbh->isError($tmpres) && $tmpres->numRows()) {         $tmprow = $tmpres->fetchRow();         $owner = htmlentities($tmprow["username"]);+      } else {+	$owner = getOnwerID($zone["id"]);       }        if (($row_count >= $offsetmin) && ($row_count <= $offsetmax)) {-	if ($row_id == 1) {-	        echo "<tr onmouseover=\"setPointer(this, $row_c, 'over', '$row1', '#CCFFCC', '#FFCC99');\" onmouseout=\"setPointer(this, $row_c, 'out', '$row1', '#CCFFCC', '#FFCC99');\" onmousedown=\"setPointer(this, $row_c, 'click', '$row1', '#CCFFCC', '#FFCC99');\">";-	} else {-	        echo "<tr onmouseover=\"setPointer(this, $row_c, 'over', '$row2', '#CCFFCC', '#FFCC99');\" onmouseout=\"setPointer(this, $row_c, 'out', '$row2', '#CCFFCC', '#FFCC99');\" onmousedown=\"setPointer(this, $row_c, 'click', '$row2', '#CCFFCC', '#FFCC99');\">";-	}--        echo "<td bgcolor=\"$bgcolor\"><a href=\"edit_zone.php?id=".$zone["id"]."\">".htmlentities($zone["name"])."</a></td>\n";-        echo "<td bgcolor=\"$bgcolor\" align=\"right\">$serial</td>\n";-        echo "<td bgcolor=\"$bgcolor\" align=\"right\">$owner</td>\n";-        echo "<td bgcolor=\"$bgcolor\" align=\"right\">$records</td>\n";-        echo "<td bgcolor=\"$bgcolor\" align=\"center\">";++        echo "<td><div id=\"nodeworx_content_header\"><a href=\"edit_zone.php?id=".$zone["id"]."\">".htmlentities($zone["name"])."</a></td>\n";+        echo "<td align=\"right\"><div id=\"nodeworx_content_header\">$serial</td>\n";+        echo "<td align=\"right\"><div id=\"nodeworx_content_header\">$owner</td>\n";+        echo "<td align=\"right\"><div id=\"nodeworx_content_header\">$records</td>\n";+        echo "<td align=\"center\">";          if ($zone["delete"]) {-          echo "&nbsp;<a href=\"delete_zone.php?id=".$zone["id"]."\"><img src=\"images/trash.png\" alt=\""._DELZONE."\" border=\"0\"></a>&nbsp;";+          echo "&nbsp;<a href=\"delete_zone.php?id=".$zone["id"]."\"><img src=\"images/delete.gif\" alt=\""._DELZONE."\" border=\"0\"></a>&nbsp;";           echo "&nbsp;<a href=\"whois.php?id=".$zone["id"]."\"><img src=\"images/whois.gif\" height=20 width=20 alt=\""._WHOISDOM."\" border=\"0\"></a>&nbsp;";         } else {           echo "&nbsp;<a href=\"whois.php?id=".$zone["id"]."\"><img src=\"images/whois.gif\" height=20 width=20 alt=\""._WHOISDOM."\" border=\"0\"></a>&nbsp;";         }-+	echo "<br>";         echo "</td>\n";         echo "</tr>\n";       }       if ($row_id == 2) { $row_id = 0; }      }     if ($row_count > $domains_per_page) {       $offsettop = $row_count - $domains_per_page;       $nums = round($row_count / $domains_per_page);       $num_count = 0;       echo "<tr><td class=\"rowsearch\" colspan=5><center>";@@ -119,49 +109,69 @@       } else {         echo "| <a href=\"index.php?offset=$next\">&#62</a> | ";       }       echo "<a href=\"index.php?offset=$offsettop\">&#62&#62</a>";       echo "</center></th></tr>";     }     echo "</table></td></tr></table>\n";     $dbh->disconnect();   } else {     echo "<p>"._NOZONES."</p>\n";   }-  +}+ ?>+      </td>+    </tr>++  </table>+<?php  } else {  echo "<h3>"._LOGIN."</h3>"; if ($_GET["error"] == 1) {   if ($LOGIN_GFXCHECK) {     echo "<p class=\"error\">"._INVLOGINGFX."</p>";   } else {     echo "<p class=\"error\">"._INVLOGIN."</p>";   } } elseif ($_GET["logout"] == 1) {    echo "<p>"._LOGGEDOUT."</p>"; } ?>+  <table id="datatable"+         width="100%">+    <tr class=row1 ruler>+      <td colspan=1 width=300 style="vertical-align: top;">++<STRONG>Free DNS administration</STRONG><p>+Do you have one or more domains but are you unable or difficult to manage them? Then we have the right tool for you. Here at Public Servers we offer you a full DNS administration service, including unlimited URL/WEB redirects for free.<p>+<b>Secondary DNS Service</b>: As of December 2007 we also offer a paid Secondary DNS service for ISP's, webhosts or any other that requires an automated and distributed DNS setup.<p>+<b>Fallback MX Service</b>: A full blown automated fallback/secondary MX service. No more lost mails because your mailserver is down. Our mailservers can be used as a backup mailserver, and it will be delivered at your regular primary mailserver when its up again.+</td>+<td colspan=1 style="vertical-align: top;"><p>+<b>Managed DNS Service</b>:  Full and unlimited access to all DNS record types through our easy to use Web based Interface. Our easy to use DNS gives you full control without any hassle.<p>+<b>URL Redirection</b>: Use your own domain like <i>http://www.example.com</i> to point to <i>http://www.myprovider.com/users/johndoe/index.htm</i>. You can even use URL cloaking (AKA Stealth Forwarding) to keep your own domain name in the browser address bar!<p>+<b>Mail Forwarding</b>: We will forward your email address, such as <i>user@example.com</i> to your real email address while its beeing filtered through our extensive Virus and Spam detection service.<p>  <form action="login.php" method="post"> <table border="0" cellspacing="0" cellpadding="2"> <tr>   <? echo "<td><b>"._USERNAME.":</b></td>"; ?>-  <td><input type="text" name="username" size="25" maxlength="15" value=""></td>+  <td><input type="text" name="username" size="35" maxlength="15" value="" id="el07"></td> </tr> <tr>   <? echo "<td><b>"._PASSWORD.":</b></td>"; ?>-  <td><input type="password" name="password" size="25" maxlength="15" value=""></td>+  <td><input type="password" name="password" size="35" maxlength="15" value="" id="el07"></td> </tr> <tr><td> <?-echo "<b>"._LANGUAGE.":</b></td><td><select name='language'>";+echo "<b>"._LANGUAGE.":</b></td><td><select id='el07' name='language'>"; $handle=opendir('language'); while ($file = readdir($handle)) {     if (ereg("^lang\-(.+)\.php", $file, $matches)) {          $langFound = $matches[1];          if ($langFound != $language) {            $languageslist .= "$langFound ";          }     } } closedir($handle); $languageslist = explode(" ", $languageslist);@@ -197,17 +207,23 @@ ?> </tr> <? } ?> </tr> <tr>   <td colspan="2" align="right"><input type="reset" value="<? echo _RESET; ?>"> <input type="submit" value="<? echo _LOGIN; ?>"></td> </tr> </table> </form>++      </td>+    </tr>++  </table>+ <?php    }  require("lib/footer.php"); ?>--- login.php	Wed Aug 13 03:47:14 2003+++ login.php	Fri Jan 25 07:21:42 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php");  $username = trim(addslashes($_POST["username"])); $password = addslashes(md5($_POST["password"])); $gfxcode_ts = $_POST["gfxcode_ts"]; $gfxcode_crc = $_POST["gfxcode_crc"]; $gfxcode_val = $_POST["gfxcode_val"];  $dbh = db_connect();  $login_ok = 0;--- logout.php	Wed Apr 16 08:19:06 2003+++ logout.php	Fri Jan 25 07:21:58 2008@@ -1,17 +1,7 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php");  $_SESSION["_UID"] = ""; header("Location: index.php?logout=1");  ?>--- new_record.php	Wed Aug 13 13:14:14 2003+++ new_record.php	Fri Jan 25 07:27:04 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $zoneid = trim(addslashes($_GET["zone"]));  ?> <h3><? echo _EDITDOMAIN; ?> &raquo; <? echo _NEWRECORD; ?></h3> <?php@@ -24,43 +14,45 @@   $dbh = db_connect();   $result = $dbh->query("SELECT domain_owners.user_id, domains.name FROM domains, domain_owners WHERE domain_owners.domain_id = '$zoneid' AND domains.id = domain_owners.domain_id");   if (!$dbh->isError($result) && $result->numRows()) {      $row = $result->fetchRow();     if ($perms["edit_other"] or userHasZoneAccess($_SESSION["_UID"], $zoneid) or ($perms["edit_own"] and $row["user_id"] == $_SESSION["_UID"])) {        global $default_ttl;  ?> <form action="create_record.php?zone=<?php echo $zoneid; ?>" method="post" name="recform">-<table border="0" cellspacing="0" cellpadding="2">+<table width=auto border="0" cellspacing="0" cellpadding="2"> <tr>   <? echo "<td><b>" . _RECORD . ":</b></td>"; ?>   <td><input type="text" name="record" size="15" maxlength="200" value=""><DIV ID="seperator"><div class="seperator">.</div></DIV><div class="domain"><?php echo htmlentities($row["name"]); ?></div></td> </tr> <tr>   <? echo "<td><b>" . _TYPE . ":</b></td>"; ?>   <td><select name="type" onChange="changeText(this.form.type)">-    <option value="NS">NS</option>-    <option value="NS6">NS6</option>-    <option value="MX">MX</option>-    <option value="A">A</option>-    <option value="A6">A6</option>+    <option value="NS">Name Server</option>+    <option value="NS6">Name Server (IPv6)</option>+    <option value="MX">Mail Server</option>+    <option value="A">Address</option>+    <option value="A6">Address (IPv6)</option>     <option value="AAAA">AAAA</option>-    <option value="PTR">PTR</option>-    <option value="CNAME">CNAME</option>-    <option value="TXT">TXT</option>-    <option value="MBOXFW">MBOXFW</option>-    <option value="URL">URL</option>+    <option value="PTR">Pointer</option>+    <option value="CNAME">Alias Address (CNAME)</option>+    <option value="TXT">Text</option>+    <option value="MBOXFW">Mail Forwarding</option>+    <option value="URL">URL Redirection</option>+    <option value="CURL">URL Frame Redirection</option>+    <option value="SRV">SeRVer record</option>     <option value="RP">RP</option>-    <option value="HWINFO">HWINFO</option>+    <option value="HWINFO">Hardware Info</option>   </select></td> </tr> <tr>   <? echo "<td><b>" . _PRIO . ":</b></td>"; ?>   <? if ($row["type"] != "MX") { ?>   <td><input type="text" name="prio" disabled="true" size="5" maxlength="11" value=""></td>   <? } else { ?>   <td><input type="text" name="prio" size="5" maxlength="11" value=""></td>   <? } ?>   </tr> <tr>--- new_template.php	Wed Aug 13 13:14:14 2003+++ new_template.php	Fri Jan 25 07:27:16 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "new_template")) {  ?> <h3><? echo _NEWTEMPLATE; ?></h3>  <form action="create_template.php" method="post"> <table border="0" cellspacing="0" cellpadding="2"> <tr>--- new_template_record.php	Wed Aug 13 13:14:14 2003+++ new_template_record.php	Fri Jan 25 07:27:22 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit_template")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $zoneid = trim(addslashes($_GET["zone"]));  ?> <h3><? echo "" . _EDITTEMPLATE . " &raquo; " . _NEWRECORD . ""; ?> </h3> <?php--- new_user.php	Wed Aug 13 13:14:14 2003+++ new_user.php	Fri Jan 25 07:48:22 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "users")) {    $dbh = db_connect();   $result = $dbh->query("SELECT permission FROM users WHERE id = '".$_SESSION["_UID"]."'");   $row = $result->fetchRow();   $dbh->disconnect();  ?>--- new_zone.php	Wed Aug 13 13:14:14 2003+++ new_zone.php	Fri Jan 25 07:48:16 2008@@ -1,30 +1,22 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "new")) {    $templates = getUserTemplates($_SESSION["_UID"]);    echo "<h3>". _NEWDOMAIN ."</h3>";+  echo _ADDBLA;+  if (count($templates)) { ?> <form action="create_zone.php" method="post"> <table border="0" cellspacing="0" cellpadding="2"> <tr>   <? echo "<td><b>". _DOMAIN .":</b></td>"; ?>   <td><input type="text" name="domain" size="30" maxlength="255"></td> </tr> <tr>   <? echo "<td><b>". _TEMPLATE .":</b></td>"; ?>   <td><select name="template">--- revoke_user.php	Wed Aug 13 13:14:14 2003+++ revoke_user.php	Fri Jan 25 07:49:08 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  $perms = getUserPermissions($_SESSION["_UID"]); $zoneid = trim(addslashes($_GET["zone"])); $userid = trim(addslashes($_GET["user"]));  if ($perms["raw"] == 2) {    echo "<h3>"._REVOKEZONEACC."</h3>"; --- search.php	Wed Aug 13 13:14:14 2003+++ search.php	Fri Jan 25 07:49:22 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if ($_SESSION["_UID"]) {  $query = trim(addslashes($_POST["query"]));  echo "<h3>"._DOMAINSEARCH."</h3>"; ?> <p><? echo _QUERY; ?>: "<?php echo stripslashes($query); ?>"</p> <?php@@ -45,23 +35,23 @@         $owner = htmlentities($tmprow["username"]);       }        echo "<tr>\n";       echo "<td class=\"row$row_id\"><a href=\"edit_zone.php?id=".$zone["id"]."\">".htmlentities($zone["name"])."</a></td>\n";       echo "<td class=\"row$row_id\" align=\"right\">$serial</td>\n";       echo "<td class=\"row$row_id\" align=\"right\">$owner</td>\n";       echo "<td class=\"row$row_id\" align=\"right\">$records</td>\n";       echo "<td class=\"row$row_id\" align=\"center\">";        if ($zone["delete"]) {-        echo "&nbsp;<a href=\"delete_zone.php?id=".$zone["id"]."\"><img src=\"images/trash.png\" alt=\""._DELZONE."\" border=\"0\"></a>&nbsp;";+        echo "&nbsp;<a href=\"delete_zone.php?id=".$zone["id"]."\"><img src=\"images/delete.gif\" alt=\""._DELZONE."\" border=\"0\"></a>&nbsp;";       } else {         echo "&nbsp;";       }        echo "</td>\n";       echo "</tr>\n";        if ($row_id == 2) { $row_id = 0; }      }     echo "</table></td></tr></table>\n";--- set_access.php	Wed Aug 13 13:14:14 2003+++ set_access.php	Fri Jan 25 08:08:10 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  $perms = getUserPermissions($_SESSION["_UID"]); $zoneid = trim(addslashes($_GET["id"])); $userid = trim(addslashes($_POST["user"]));  if ($perms["raw"] == 2) {  echo "<h3>"._GRANTZONEACCESS."</h3>"; --- signup.php	Wed Aug 13 13:14:14 2003+++ signup.php	Fri Jan 25 07:49:48 2008@@ -1,136 +1,104 @@-<?-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information+<?php -   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  $username = trim(addslashes($_POST["username"])); $name = trim(addslashes($_POST["realname"])); $email = trim(addslashes($_POST["emailaddy"])); $company = trim(addslashes($_POST["company"])); $password =  trim(addslashes($_POST["password"])); $pass_confirm = trim(addslashes($_POST["pass_confirm"]));+$douser = trim(addslashes($_POST["douser"])); $gfxcode_ts = $_POST["gfxcode_ts"]; $gfxcode_crc = $_POST["gfxcode_crc"]; $gfxcode_val = $_POST["gfxcode_val"]; + $dbh = db_connect();  if (!extension_loaded("gd")) { // checking if LibGD is present in apache/php     $SHOW_GFXUSRCHK = 0;   } else {     $SHOW_GFXUSRCHK = 1; }  echo "<h3>"._SIGNUP."</h3>"; if ($_SESSION["_UID"]) { 	echo "<p class=\"error\">"._ALREADYHASUSERNAME.".</p>";         require("lib/footer.php");         die(); }  if ($allow_newusers == 0) { 	echo "<p class=\"error\">"._SIGNUPSDISABLED.".</p>"; 	require("lib/footer.php"); 	die(); } -if ($douser == 1) {+if ($douser) { 	// terms and agreement check 	if ($terms == 1) {                 echo "<p class=\"error\">"._DIDNTAGREETERMS.".</p>";                 require("lib/footer.php");                 die(); 	}  	// pass checks 1 	if (strcmp($password, $pass_confirm)) {                 echo "<p class=\"error\">"._PASSWORDSDONTMATCH.".</p>";                 require("lib/footer.php");                 die(); 	}  	// pass checks 2 	if (!preg_match("/^[a-zA-Z0-9\-_]+$/", $password)) { 		echo "<p class=\"error\">&middot; "._INVPASSWORD.".</p>\n";                 require("lib/footer.php");                 die();         }  	// username checks-	if (!preg_match("/^[a-zA-Z\-]+$/", $username)) {+	if (!preg_match("/^[a-zA-Z0-9\-]+$/", $username)) { 		echo "<p class=\"error\">&middot; "._INVUSERNAME.".</p>\n";                 require("lib/footer.php");                 die();         }  	// email checks 	if (!eregi ("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$", $email)) { 		echo "<p class=\"error\">"._INVEMAILADDY.".</p>"; 		require("lib/footer.php"); 		die(); 	} // email checks -	// gfx code checks-	if ($SHOW_GFXUSRCHK && $NEWUSERS_GFXCHECK && $gfxcode_ts && $gfxcode_crc && $gfxcode_val) {-		$gfx_ok = 0;-		$gfx_ok = check_code($gfxcode_ts, $gfxcode_crc, $gfxcode_val);-		if ($gfx_ok == 0) {-			echo "<p class=\"error\">"._INVGFXCODE.".</p>";-			require("lib/footer.php");-			die();-		}-	} // gfx code checks+        // gfx code checks+        if ($SHOW_GFXUSRCHK && $NEWUSERS_GFXCHECK && $gfxcode_ts && $gfxcode_crc && $gfxcode_val) {+                $gfx_ok = 0;+                $gfx_ok = check_code($gfxcode_ts, $gfxcode_crc, $gfxcode_val);+                if ($gfx_ok == 0) {+                        echo "<p class=\"error\">"._INVGFXCODE.".</p>";+                        require("lib/footer.php");+                        die();+                }+        } // gfx code checks+          $usercheck = $dbh->query("SELECT username FROM users WHERE username='".$username."'");         if (!$dbh->isError($usercheck) && ($usercheck->numRows() > 0)) {                 echo "<p class=\"error\">"._USERNAMEXISTS.".</p>"; 		require("lib/footer.php");                 die();         } // username check 1 -	// domain check start-        $domains = trim($_POST["ldomains"]);-        $template = $signup_template;--        $domains = explode("\n", $domains);-        if (is_array($domains) && count($domains)) {-	        $errors = array();-        	foreach ($domains as $domain) {-	  		$domain = preg_replace("/(\r\n|\r|\n)$/", "", $domain);-		        if (!$domain) {-           		     array_push($errors, $domain);-		        }-		}-        }-        reset($domains);-        if (count($errors)) {- 	        echo "<p>"._SOMEDOMAINSINVALID.":<br>\n";-        	foreach ($errors as $error) {-        		echo "&nbsp;&middot; " . htmlspecialchars($error) . "<br>\n";-            	}-            	echo "</p>\n";-                require("lib/footer.php");-                die();-        }-	// domain check end- 	// nameserver checks start         $idomains = trim($_POST["ldomains"]);         $domains = explode("\n", $idomains);          if (is_array($domains) && count($domains)) {                 $errors = array();                 foreach ($domains as $domain) {                 	$domain = preg_replace("/(\r\n|\r|\n)$/", "", $domain); 	                if ($domain) { 				$clip = $_SERVER["REMOTE_ADDR"]; 				$clitime = time();@@ -157,26 +125,22 @@ 							} 						} 					} 					$u++; 				} while ($u < sizeof($nameservdata)); 				if ($nameservchk == 0) { 					echo "<p class=\"error\">$domain's "._NAMESERVERSDONTPOINT." $ns1addy "._OR." $ns2addy</p>"; 				} 			} 		}         }-	if ($nameservchk == 0) {-                require("lib/footer.php");-                die();-	}         reset($domains); 	// nameserver checks end  	// domain existant checks start         $result = $dbh->query("SELECT * FROM templates WHERE name = '$template'");         if (!$dbh->isError($result) && $result->numRows()) {         	$errors = array();               	foreach ($domains as $domain) { 	                $domain = preg_replace("/(\r\n|\r|\n)$/", "", $domain);         	        $domain = addslashes($domain);                 	$result = $dbh->query("SELECT * FROM domains WHERE name = '$domain'");@@ -194,23 +158,23 @@                 } 		echo "</p>";                 require("lib/footer.php");                 die(); 	} 	// domain existant checks end   	// adduser start         $perm_superuser = 0;         $perm_users = 0;-        $perm_new = 0;+        $perm_new = 1;         $perm_new_template = 0;         $perm_edit_own = 1;         $perm_edit_other = 0;         $perm_edit_template = 0;         $perm_delete_own = 1;         $perm_delete_other = 0;         $perm_delete_template = 0;  	$md5_pass = md5($password);  	$permission_string = "$perm_new$perm_new_template$perm_edit_own$perm_edit_other$perm_edit_template$perm_delete_own$perm_delete_other$perm_delete_template$perm_users";@@ -218,64 +182,61 @@ 	// adduser end  	// get new user's id 	$userid = $dbh->query("SELECT id,email,username FROM users WHERE username='".$username."' AND email='".$email."'");         if (!$dbh->isError($userid) && ($userid->numRows() > 0)) { 	        $idrow = $userid->fetchRow();         	$id = $idrow["id"]; 	}  	// add domain         echo "<p><br><br>"._REGGEDAS." $username ($email), "._EMAILDETAILS.".<br>\n";-	echo ""._DOMAINSADDEDIN.":<br>\n";-        foreach ($domains as $domain) {-	        $domain = preg_replace("/(\r\n|\r|\n)$/", "", $domain);-                $domain = addslashes($domain);-                echo "&nbsp;&middot;" . htmlspecialchars($domain) . "<br>\n";-                createZone($domain, $template, $id);-        }+	         echo "</p>\n";  	// send email  	$accsubject = _NEWACCOUNTCREATED; 	$acccontent = ""._REGGEDWITH." ($site_address)<br><br>"._USERNAME.": $username<Br>"._PASSWORD.": $password";  	$secondaddy = $contact_addy; 	$secondsubject = "$username "._SIGNUPCOMPLETE.""; 	$secondcontent = "$username ($name) - ($company) "._SUCESSSIGNEDUP."."; -        $headers .= "MIME-Version: 1.0\r\n";-        $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";-        $headers .= "From: ".$fromaddy." <".$fromaddy.">\r\n";-        $headers .= "Reply-To: ".$fromaddy." <".$fromaddy.">\r\n";-        $headers .= "X-Priority: 1\r\n";-        $headers .= "X-MSMail-Priority: High\r\n";-        $headers .= "X-Mailer: PublicDNSAdmin Mailer v1.0";+        $headers .= "MIME-Version: 1.0\r";+        $headers .= "Content-type: text/html; charset=iso-8859-1\r";+        $headers .= "From: ".$fromaddy."\r";+        $headers .= "Reply-To: ".$fromaddy."\r";+        $headers .= "X-Priority: 1\r";+        $headers .= "X-MSMail-Priority: High\r";+        $headers .= "X-Mailer: WARP3 Mailer v1.0\r";          mail($dbemail, $accsubject, $acccontent, $headers); 	mail($secondaddy, $secondsubject, $secondcontent, $headers);  } else {+echo $douser; ?>-<table>-<form name="signup" method="post">+  <table id="datauable"+         width="100%">+    <tr class=row1 ruler>+      <td colspan=2 width=500 style="vertical-align: top;">++<form name="signup" method="post" > 	<input type="hidden" name="douser" value="1"> 	<tr><td><? echo _USERNAME; ?>:</td><td><input type="text" name="username" size="20" maxlength="15"></td><td>15 <? echo _CHARSMAX; ?></td></tr> 	<tr><td><? echo _PASSWORD; ?>:</td><td><input type="password" name="password" size="20 maxlength="20"></td><td>20 <? echo _CHARSMAX; ?></td></tr> 	<tr><td><? echo _CONFIRMPASSWORD; ?>:</td><td><input type="password" name="pass_confirm" size="20 maxlength="20"></td><td>20 <? echo _CHARSMAX; ?></td></tr> 	<tr><td><? echo _EMAIL; ?>:</td><td><input type="text" name="emailaddy" size="40" maxlength="40"></td><td>40 <? echo _CHARSMAX; ?></td></tr> 	<tr><td><? echo _REALNAME; ?>:</td><td><input type="text" name="realname" size="40" maxlength="40"></td><td>40 <? echo _CHARSMAX; ?></td></tr> 	<tr><td><? echo _COMPANY; ?>:</td><td><input type="text" name="company" size="40" maxlength="40"></td><td>40 <? echo _CHARSMAX; ?></td></tr>-	<tr><td><? echo _DOMAINS; ?>:</td><Td><textarea rows="5" cols="40" name="ldomains"></textarea></td><td>1 <? echo _DOMAINPERLINE; ?></td></tr>-	<? echo "<tr><td></td><td colspan=\"2\">"._EACHDOMAIN." $ns1addy "._AND." $ns2addy "._FORITSNS." $ns1addy "._AND." $ns2addy</td></tr>"; ?>  <?   if ($SHOW_GFXUSRCHK && $NEWUSERS_GFXCHECK) {     $code_length = 10; // generated code number of chars     $code_base = md5( CRC_SALT_0001 . time() . microtime() . CRC_SALT_0009 . uniqid(1) ); // base of code ( with strlen(this)>$code_length ! ).     $code = strtoupper(substr(str_replace("1","",str_replace("i","",str_replace("I","",str_replace("o","",str_replace("O","",str_replace("l","",str_replace("L","",str_replace("0","",$code_base)))))))),0,$code_length));     $ts = time()+1800; // expires 30 mins after page load.     $crckey = md5( $ts . $_SERVER["HTTP_USER_AGENT"] . CRC_SALT_0010 . $code . CRC_SALT_0008 );     echo "<input type=hidden name=gfxcode_crc value=\"" . $crckey . "\">\n";     echo "<input type=hidden name=gfxcode_ts value=\"" . $ts . "\">\n";     $ENABLE_COOKIE_TABLE = 1;@@ -286,16 +247,16 @@     echo "</td><td>";     echo "<img src=\"gfx_code.php?crc=" . $crckey . "\" border=0 alt=\"Type Code in Box\">";     echo "</td></tr>";  } ?>  	<tr><td></td><td width="250"><input type="checkbox" name="terms"> <? echo _DOYOUAGREE; ?> <a href="terms.php" target="new"><? echo _TERMSANDCOND; ?></a></td><td></td></tr> 	<tr><td></td><td></td><td align="right"><input type="reset" value="<? echo _RESET; ?>"><input type="submit" value="<? echo _SIGNUP; ?>"></td><td></td></tr>  </form>-</table>+</td></tr></table><br> <? } require("lib/footer.php"); ?>--- stats.php	Wed Aug 13 13:14:14 2003+++ stats.php	Fri Jan 25 08:03:30 2008@@ -1,22 +1,12 @@ <?-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  $hostedtotal=0; $recordstotal=0; $userstotal=0; $dbh = db_connect(); $hostcount = $dbh->query("SELECT * FROM domains"); if (!$dbh->isError($hostcount)) { 	$hostedtotal=$hostcount->numRows(); }--- styleie.css	Sat Jul 19 14:46:32 2003+++ styleie.css	Fri Jan 25 07:50:10 2008@@ -275,11 +275,16 @@ }  .row1 {   background: #e6ebef; }  .row2 {   background: #efeae6; }+#el07 {+font-family:"Courier New", Courier;+margin:0; text-align:right;+}+--- styleother.css	Sat Jul 19 14:46:32 2003+++ styleother.css	Fri Jan 25 07:50:10 2008@@ -275,11 +275,17 @@  .row1 {   background: #e6ebef; }  .row2 {   background: #efeae6; } +#el07 {+font-family:"Courier New", Courier;+margin:0; text-align:right;+}++--- templates.php	Wed Aug 13 13:14:14 2003+++ templates.php	Fri Jan 25 08:03:04 2008@@ -1,63 +1,47 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit_template")) {  echo "<h3>". _MYTEMPLATES ."</h3>";    $templates = getUserTemplates($_SESSION["_UID"]);   if (count($templates)) {     $dbh = db_connect(); -    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"background: #000000;\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><th>". _NAME."</th><th>". _RECORDS. "</th><th>&nbsp;</th></tr>\n";+    echo "<table id=\"datauable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td  colspan=1 width=500 style=\"vertical-align: top;\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><th>". _NAME."</th><th>". _RECORDS. "</th><th>&nbsp;</th></tr>\n";     $row_id = 0;     $row_c = -1;     foreach ($templates as $template) {        $row_id++;       $row_c++;        if ($row_id == 1) {         $bgcolor=$row1;       } else {         $bgcolor=$row2;       }        $records = 0;       $tmpres = $dbh->query("SELECT COUNT(id) AS rec_count FROM template_records WHERE template_id = ".$template["id"]);       if (!$dbh->isError($tmpres) && $tmpres->numRows()) {         $tmprow = $tmpres->fetchRow();         $records = $tmprow["rec_count"];       } -      if ($row_id == 1) {-	        echo "<tr onmouseover=\"setPointer(this, $row_c, 'over', '$row1', '#CCFFCC', '#FFCC99');\" onmouseout=\"setPointer(this, $row_c, 'out', '$row1', '#CCFFCC', '#FFCC99');\" onmousedown=\"setPointer(this, $row_c, 'click', '$row1', '#CCFFCC', '#FFCC99');\">";-      } else {-	        echo "<tr onmouseover=\"setPointer(this, $row_c, 'over', '$row2', '#CCFFCC', '#FFCC99');\" onmouseout=\"setPointer(this, $row_c, 'out', '$row2', '#CCFFCC', '#FFCC99');\" onmousedown=\"setPointer(this, $row_c, 'click', '$row2', '#CCFFCC', '#FFCC99');\">";-      }--      echo "<td bgcolor=\"$bgcolor\"><a href=\"edit_template.php?id=".$template["id"]."\">".htmlentities($template["name"])."</a></td>\n";-      echo "<td bgcolor=\"$bgcolor\" align=\"right\">$records</td>\n";-      echo "<td bgcolor=\"$bgcolor\" align=\"center\">&nbsp;<a href=\"delete_template.php?id=".$template["id"]."\"><img src=\"images/trash.png\" alt=\"". _DELTEMPLATE ."\" border=\"0\"></a>&nbsp;</td>\n";+      echo "<td align=\"right\"><div id=\"nodeworx_content_header\"><a href=\"edit_template.php?id=".$template["id"]."\">".htmlentities($template["name"])."</a></td>\n";+      echo "<td align=\"right\"><div id=\"nodeworx_content_header\">$records</td>\n";+      echo "<td align=\"center\">&nbsp;<a href=\"delete_template.php?id=".$template["id"]."\"><img src=\"images/igrm.gif\" alt=\"". _DELTEMPLATE ."\" border=\"0\"></a>&nbsp;</td>\n";       echo "</tr>\n";        if ($row_id == 2) { $row_id = 0; }      }     echo "</table></td></tr></table>\n";      $dbh->disconnect();   } else {     echo "<p>". _NOTEMPLATESAVAL ."</p>\n";   }--- terms.php	Wed Aug 13 13:14:14 2003+++ terms.php	Fri Jan 25 08:02:50 2008@@ -1,22 +1,12 @@ <?-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  echo "<h3>". _TERMSANDCOND ."</h3><br>"; include("lib/terms.php"); ?>  <br><br> <? require("lib/footer.php"); ?>--- update_record.php	Wed Aug 13 13:14:14 2003+++ update_record.php	Fri Jan 25 08:02:02 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $recordid = trim(addslashes($_GET["id"]));   $zoneid = getZoneFromRecord($recordid);  ?> <h3><? echo _EDITDOMAIN; ?> &raquo; <? echo _EDITRECORD; ?></h3>@@ -30,48 +20,49 @@     if ($perms["edit_other"] or userHasZoneAccess($_SESSION["_UID"], $zoneid) or ($perms["edit_own"] and $row["user_id"] == $_SESSION["_UID"])) {        global $default_ttl;       $record = trim(addslashes($_POST["record"]));       $type = trim(addslashes($_POST["type"]));       $prio = trim(addslashes($_POST["prio"]));       $content = trim(addslashes($_POST["content"]));       $ttl = trim(addslashes($_POST["ttl"]));       $domain = addslashes($row["name"]);       $record = preg_replace("/\.+$/", "", $record); /* Remove trailing .'s */ -      if ($type != "NS" and $type != "MX" and $type != "A" and $type != "AAAA" and $type != "PTR" and $type != "CNAME" and $type != "TXT" and $type != "A6" and $type != "NS6" and $type != "MBOXFW" and $type != "URL" and $type != "RP" and $type != "HWINFO") {+      if ($type != "NS" and $type != "MX" and $type != "A" and $type != "AAAA" and $type != "PTR" and $type != "CNAME" and $type != "TXT" and $type != "A6" and $type != "NS6" and $type != "MBOXFW" and $type != "SOA" and $type != "URL" and $type != "RP" and $type != "HWINFO" and $type != "CURL" and $type != "SRV") {         echo "<p class=\"error\">&middot; "._INVALIDPOINTTYPE.": \"$type\"</p>\n";       } else {          if ($type == "MX") {           if (!$prio or !is_numeric($prio)) {             $prio = 10;           }         } elseif ($prio or !$prio or !is_numeric($prio)) {           $prio = 0;         }          if (!$ttl or !is_numeric($ttl)) {           $ttl = $default_ttl;         }          if ($type == "PTR") {           $result = $dbh->query("SELECT name, content from records where name='".$content."' and content='".$record."'");-          if (!$dbh->isError($result) && ($result->numRows() > 0)) {+          // if (!$dbh->isError($result) && ($result->numRows() > 0)) {             $expaddy = explode(".", $record);             $record = $expaddy[3].".".$expaddy[2].".".$expaddy[1].".".$expaddy[0].".in-addr.arpa";-          } else {-            echo "<p class=\"error\">&middot; $content "._DOESNOTRESOLVE." $record</p>\n";-            $dbh->disconnect();-            die();-          }+          // } else {+            // echo "<p class=\"error\">&middot; $content "._DOESNOTRESOLVE." $record</p>\n";+            // $dbh->disconnect();+	    // require("lib/footer.php");+            // die();+          // }         }          if (!validateRecordContent($type, $content)) {           echo "<p class=\"error\">&middot; "._INVALIDPOINTCONT."</p>\n";         } elseif (!validateRecordData($type, $record)) {           echo "<p class=\"error\">&middot; "._INVALIDPOINTREC."</p>\n";         } else {            if ($type == "PTR") {             $record_name = preg_replace("/^\.+/", "", "$record");           } else {--- update_self.php	Wed Aug 13 13:14:14 2003+++ update_self.php	Fri Jan 25 08:02:08 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  echo "<h3>"._EDITSETTINGS."</h3>";  $dbh = db_connect(); $userid = trim(addslashes($_GET["id"])); $sysuserid = trim(addslashes($_SESSION["_UID"]));  if ($userid == $sysuserid) {  	$name = trim(addslashes($_POST["name"]));--- update_template.php	Wed Aug 13 13:14:14 2003+++ update_template.php	Fri Jan 25 08:02:14 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit_template")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $zoneid = trim(addslashes($_GET["id"]));    echo "<h3>". _EDITTEMPLATE ."</h3>";    $dbh = db_connect();--- update_template_record.php	Wed Aug 13 13:14:14 2003+++ update_template_record.php	Fri Jan 25 08:02:22 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "edit")) {    $perms = getUserPermissions($_SESSION["_UID"]);   $recordid = trim(addslashes($_GET["id"]));  ?> <h3><? echo _EDITDOMAIN; ?> &raquo; <? echo _EDITRECORD; ?></h3> <?php--- update_user.php	Wed Aug 13 13:14:14 2003+++ update_user.php	Fri Jan 25 08:02:28 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "users")) {  ?> <h3><? echo _USERADMIN; ?> &raquo; <? echo _EDITUSER ?></h3> <?php    $dbh = db_connect();   $userid = trim(addslashes($_GET["id"]));--- users.php	Thu Aug 14 00:19:00 2003+++ users.php	Fri Jan 25 08:03:14 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  if (userHasAccess($_SESSION["_UID"], "users")) {  ?> <h3><? echo _USERADMIN; ?> &raquo; <? echo _USERLIST; ?></h3> <p>&middot; <a href="new_user.php"><? echo ucfirst(_NEWUSER); ?></a></p> <?php    $dbh = db_connect();@@ -36,23 +26,23 @@         $tmprow = $tmpres->fetchRow();         $domain_count = $tmprow["domain_count"];       }        echo "<tr>\n";       echo "<td class=\"row$row_id\"><a href=\"edit_user.php?id=".$row["id"]."\">".htmlentities($row["username"])."</a></td>\n";       echo "<td class=\"row$row_id\">".htmlentities($row["name"])."</td>\n";       echo "<td class=\"row$row_id\"><a href=\"mailto:".htmlentities($row["email"])."\">".htmlentities($row["email"])."</a></td>\n";       echo "<td class=\"row$row_id\">".htmlentities($row["company"])."</td>\n";       echo "<td class=\"row$row_id\" align=\"center\">$domain_count</td>\n";       if ($row["id"] != 1) {-        echo "<td class=\"row$row_id\" align=\"center\"><a href=\"delete_user.php?id=".$row["id"]."\"><img src=\"images/trash.png\" alt=\"". _DELETEUSER ."\" border=0></a></td>\n";+        echo "<td class=\"row$row_id\" align=\"center\"><a href=\"delete_user.php?id=".$row["id"]."\"><img src=\"images/delete.gif\" alt=\"". _DELETEUSER ."\" border=0></a></td>\n";       } else {         echo "<td class=\"row$row_id\" align=\"center\"></td>\n";       }       echo "</tr>\n";          if ($row_id == 2) { $row_id = 0; }      }       echo "</table></td></tr></table>\n";--- whois.php	Wed Aug 13 13:14:14 2003+++ whois.php	Fri Jan 25 07:51:02 2008@@ -1,22 +1,12 @@ <?-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); include("lib/header.php");  function wwwhois($target){   global $ntarget;    $dbh = db_connect();   $tld = end(explode(".", $target));   $result = $dbh->query("SELECT server FROM whoisservers WHERE tld = '$tld'");         if (!$dbh->isError($result) && $result->numRows()) {--- zone_access.php	Wed Aug 13 13:14:14 2003+++ zone_access.php	Fri Jan 25 07:50:50 2008@@ -1,22 +1,12 @@ <?php-/*-   Public DNS Administator-   Originally Written by Trond Arve Nordheim <trond@nordheim.no>-   Modified By Neil Spierling <sirvulcan@sirvulcan.org>--   Distributed under the GPL license, see LICENSE for-   more information--   $Id:-*/ require("lib/prepend.php"); require("lib/header.php");  $perms = getUserPermissions($_SESSION["_UID"]); $zoneid = trim(addslashes($_GET["id"]));  if ($perms["raw"] == 2) {    echo "<h3>". _ZONEUSERS ."</h3>";    $dbh = db_connect();@@ -31,23 +21,23 @@       echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"background: #000000;\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><th>". _USERNAME ."</th><th>". _NAME ."</th><th>". _COMPANY."</th><th>&nbsp;</th></tr>\n";        $row_id = 0;       while ($row = $result->fetchRow()) {          $row_id++;          echo "<tr>\n";         echo "<td class=\"row$row_id\">".htmlentities($row["username"])."</td>\n";         echo "<td class=\"row$row_id\">".htmlentities($row["name"])."</td>\n";         echo "<td class=\"row$row_id\">".htmlentities($row["company"])."</td>\n";-        echo "<td class=\"row$row_id\"><a href=\"revoke_user.php?zone=$zoneid&user=".$row["id"]."\"><img src=\"images/trash.png\" alt=\"". _REVOKEUSER ."\" border=\"0\"></a></td>\n";+        echo "<td class=\"row$row_id\"><a href=\"revoke_user.php?zone=$zoneid&user=".$row["id"]."\"><img src=\"images/delete.gif\" alt=\"". _REVOKEUSER ."\" border=\"0\"></a></td>\n";         echo "</tr>\n";          if ($row_id == 2) {            $row_id = 0;         }       }        echo "</table></td></tr></table>\n";      } else {       echo "<p class=\"error\">&middot; ". _NOUSERSACCDOM ."</p>\n";--- data/index.html	Tue Aug 12 13:27:14 2003+++ data/index.html	Fri Jan 25 07:13:04 2008--- images/CVS/Entries	Sat Aug 23 16:24:52 2003+++ images/CVS/Entries	Fri Nov 16 15:51:12 2007--- images/CVS/Repository	Sat Aug 23 16:24:48 2003+++ images/CVS/Repository	Fri Nov 16 15:51:12 2007--- images/CVS/Root	Sat Aug 23 16:24:48 2003+++ images/CVS/Root	Fri Nov 16 15:51:12 2007--- images/CVS/Template	Sat Aug 23 16:24:48 2003+++ images/CVS/Template	Fri Nov 16 15:51:12 2007--- images/index.html	Tue Aug 12 13:27:14 2003+++ images/index.html	Fri Nov 16 15:51:12 2007--- images/index.php	Tue Aug 12 13:27:14 2003+++ images/index.php	Fri Nov 16 15:51:12 2007--- language/index.html	Wed Aug 13 03:47:14 2003+++ language/index.html	Fri Nov 16 15:51:14 2007--- language/index.php	Wed Aug 13 03:47:14 2003+++ language/index.php	Fri Nov 16 15:51:14 2007--- lib/index.html	Tue Aug 12 13:27:14 2003+++ lib/index.html	Fri Nov 16 15:51:12 2007--- lib/index.php	Tue Aug 12 13:27:14 2003+++ lib/index.php	Fri Nov 16 15:51:12 2007--- functions.jss	Tue Aug 12 10:06:52 2003+++ functions.jss	Fri Jan 25 07:17:18 2008