add_zone_master.php
changeset 187 ae77a8f97ee2
parent 179 5a2d4418385d
equal deleted inserted replaced
186:a3e83a34f267 187:ae77a8f97ee2
    30 $dom_type = "NATIVE";
    30 $dom_type = "NATIVE";
    31 if (isset($_POST["dom_type"]) && (in_array($_POST['dom_type'], $server_types))) {
    31 if (isset($_POST["dom_type"]) && (in_array($_POST['dom_type'], $server_types))) {
    32 	$dom_type = $_POST["dom_type"];
    32 	$dom_type = $_POST["dom_type"];
    33 }
    33 }
    34 
    34 
    35 $domain = trim($_POST["domain"]);
    35 if (isset($_POST['domain'])) {
    36 $webip = $_POST["webip"];
    36 	$domain = trim($_POST['domain']);
    37 $mailip = $_POST["mailip"];
    37 } else {
    38 $empty = $_POST["empty"];
    38 	$domain = "";
       
    39 }
       
    40 
       
    41 if (isset($_POST['webip'])) {
       
    42 	$webip = $_POST['webip'];
       
    43 } else {
       
    44 	$webip = "";
       
    45 }
       
    46 
       
    47 if (isset($_POST['mailip'])) {
       
    48 	$mailip = $_POST['mailip'];
       
    49 } else {
       
    50 	$mailip = "";
       
    51 }
       
    52 
       
    53 if (isset($_POST['empty'])) {
       
    54 	$empty = $_POST['empty'];
       
    55 }
    39 
    56 
    40 (verify_permission('zone_master_add')) ? $zone_master_add = "1" : $zone_master_add = "0" ;
    57 (verify_permission('zone_master_add')) ? $zone_master_add = "1" : $zone_master_add = "0" ;
    41 
    58 
    42 if ($_POST['submit'] && $zone_master_add == "1" ) {
    59 if (isset($_POST['submit']) && $zone_master_add == "1" ) {
    43 
    60 
    44 	// Boy. I will be happy when I have found the time to replace
    61 	// Boy. I will be happy when I have found the time to replace
    45 	// this "template wanabee" code with something that is really 
    62 	// this "template wanabee" code with something that is really 
    46 	// worth to be called "templating". Whoever wrote this should 
    63 	// worth to be called "templating". Whoever wrote this should 
    47 	// be... should be... how can I say this politicaly correct?
    64 	// be... should be... how can I say this politicaly correct?