diff -r effde559e0e9 -r 0c0aa144356a add_supermaster.php --- a/add_supermaster.php Mon Mar 03 20:32:33 2008 +0000 +++ b/add_supermaster.php Mon Mar 10 19:15:59 2008 +0000 @@ -26,12 +26,12 @@ error(ERR_LEVEL_5); } -if($_POST["submit"]) +if(isset($_POST["submit"])) { - $master_ip = $_POST["master_ip"]; - $ns_name = $_POST["ns_name"]; - $account = $_POST["account"]; - if (!$error) + $master_ip = (isset($_POST['master_ip']) ? $_POST["master_ip"] : ''); + $ns_name = (isset($_POST['ns_name']) ? $_POST["ns_name"] : ''); + $account = (isset($_POST["account"]) ? $_POST['account'] : ''); + if (!isset($error)) { if (!is_valid_ip($master_ip) && !is_valid_ip6($master_ip)) { @@ -57,11 +57,11 @@ include_once("inc/header.inc.php"); - if ($error != "") + if ((isset($error)) && ($error != "")) { ?>
:
: - "> + "> : - "> + "> : - "> + ">