diff -r effde559e0e9 -r 0c0aa144356a add_zone_master.php --- a/add_zone_master.php Mon Mar 03 20:32:33 2008 +0000 +++ b/add_zone_master.php Mon Mar 10 19:15:59 2008 +0000 @@ -27,14 +27,14 @@ } -if ($_POST["submit"]) +if (isset($_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"; + $domain = (isset($_POST['domain']) ? trim($_POST["domain"]) : ''); + $owner = (isset($_POST['owner']) ? $_POST["owner"] : 0 ); + $webip = (isset($_POST["webip"]) ? $_POST['webip'] : ''); + $mailip = (isset($_POST["mailip"]) ? $_POST['mailip'] : ''); + $empty = (isset($_POST["empty"]) ? $_POST['empty'] : 0); + $dom_type = (isset($_POST["dom_type"]) ? $_POST["dom_type"] : "NATIVE"); if(!$empty) { $empty = 0; @@ -43,7 +43,7 @@ $error = "Web or Mail ip is invalid!"; } } - if (!$error) + if (!isset($error)) { if (!is_valid_domain($domain)) { @@ -64,11 +64,11 @@ include_once("inc/header.inc.php"); - if ($error != "") + if ((isset($error)) && ($error != "")) { ?>
:
: - "> + "> : - "> + "> : - "> + ">