diff -r 2cd8c1649ba9 -r 58094faf794d index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/index.php Tue Apr 10 22:40:43 2007 +0000 @@ -0,0 +1,251 @@ + trancer nl> | +// | Sjeemz sjeemz nl> | +// +--------------------------------------------------------------------+ + +// +// $Id: index.php,v 1.13 2003/05/10 20:20:05 azurazu Exp $ +// + +require_once("inc/toolkit.inc.php"); + +/* +// Checks if the user migrated his database, can be deprecated in the future +function check_updated() +{ + global $db; + $checkzone = $db->query("select * from zones"); + $zonetables = $checkzone->tableInfo(); + //var_dump($zonetables[1]); + if(strcmp($zonetables[1]["name"], "name") == 0) + { + include_once("inc/header.inc.php"); + error("You have to migrate your database first! + + The reason for this migration is that PowerAdmin wasnt supporting the gmysql backend yet. Now it fully does we have to support it aswell. + The gmysql users another table and other fields though, therefore we had to change the layout of the zones table. In this version thats fully done, but before this we have to migrate it. + + Please be sure you have a working backup of your data! + we assume it all works but cant guarantuee it for 100% because we dont have + too many betatesters.
+ + Do the following to migrate: + - rename the file migrator.php-pa in your webdir to migrator.php. + - Go here to migrate it. + + It is recommended to synchronize your database aswell after the update"); + die(); + } +} + +// Call above function +check_updated(); +*/ + +if ($_POST["submit"]) +{ + $domain = trim($_POST["domain"]); + $owner = $_POST["owner"]; + $webip = $_POST["webip"]; + $mailip = $_POST["mailip"]; + $empty = $_POST["empty"]; + $dom_type = isset($_POST["dom_type"]) ? $_POST["dom_type"] : "NATIVE"; + if(!$empty) + { + $empty = 0; + if(!eregi('in-addr.arpa', $domain) && (!is_valid_ip($webip) || !is_valid_ip($mailip)) ) + { + $error = "Web or Mail ip is invalid!"; + } + } + if (!$error) + { + if (!is_valid_domain($domain)) + { + $error = "Domain name is invalid!"; + } + elseif (domain_exists($domain)) + { + $error = "Domain already exists!"; + } + //elseif (isset($mailip) && is_valid_ip( + else + { + add_domain($domain, $owner, $webip, $mailip, $empty, $dom_type); + clean_page(); + } + } +} + +if($_POST["passchange"]) +{ + if(strlen($_POST["newpass"]) < 4) + { + error('Length of the pass should be at least 4'); + } + else + { + change_user_pass($_POST["currentpass"], $_POST["newpass"], $_POST["newpass2"]); + } +} + +include_once("inc/header.inc.php"); +?> +

DNS Admin

+ + + +
+Welcome, . +
+ +Your userlevel is: () +

+ +

Error:

+ +Current domains in DNS (click to view or edit): +
+ +Number of domains: ".$num_domains."
"; + +if ($num_domains > ROWAMOUNT) { + show_letters(LETTERSTART,$doms); + echo "
"; +} + +$doms = get_domains(0,LETTERSTART); +show_pages(count($doms),ROWAMOUNT); + +?> + +
+ + + +
 NameRecordsOwner
 No domains in this listing, sorry.
+ + ">[ delete zone ] + ">
+ +You only administer some records of domains marked with an (*) + + +

+
+ Create new domain:
+ + + + + + + + + + +
Domain name:">
Web IP:">
Mail IP:">
Owner: + +
Domain type: + +
Create zone without
applying records-template:
 
+
+ + +

+
+Change your password:
+ + + + + +
Current password:
New Password:
New Password:
 
+
+