diff -r c72d6d51f3d3 -r c255196bc447 add_zone_slave.php --- a/add_zone_slave.php Wed Mar 12 20:45:56 2008 +0000 +++ b/add_zone_slave.php Tue Mar 25 22:45:31 2008 +0000 @@ -20,93 +20,73 @@ */ require_once("inc/toolkit.inc.php"); - -if (!level(5)) -{ - error(ERR_LEVEL_5); - -} - -if (isset($_POST["submit"])) -{ - $domain = trim($_POST["domain"]); - $owner = $_POST["owner"]; - $slave_master = $_POST["slave_master"]; - $dom_type = "SLAVE"; - if (!isset($error)) - { - if (!is_valid_domain($domain)) - { - $error = "Zone name is invalid!"; - } - elseif (domain_exists($domain)) - { - $error = "Zone already exists!"; - } - elseif (!is_valid_ip($slave_master)) - { - $error = "IP of master NS for slave zone is not valid!"; - } - else - { - if(add_domain($domain, $owner, '', '', 1, $dom_type, $slave_master)) - { - $success = _('Successfully added slave zone.'); - } - } - } -} - include_once("inc/header.inc.php"); - if ((isset($error)) && ($error != "")) - { - ?>
" . _("You do not have the permission to add a new slave zone.") . "
\n"; +} else { $users = show_users(); - - ?> - - -\n"; + echo "" . _('Zone name') . " | \n"; + echo "\n"; + echo " \n"; + echo " | \n"; + echo "
" . _('IP of master NS') . ": | \n"; + echo "\n"; + echo " \n"; + echo " | \n"; + echo "
" . _('Owner') . ": | \n"; + echo "\n"; + echo " \n"; + echo " | \n"; + echo "
\n"; + echo " | \n"; + echo " \n"; + echo " | \n"; + echo "