add_zone_slave.php
changeset 170 391e744a1def
parent 161 0832d846bf8e
child 174 a17ec7de4bbb
equal deleted inserted replaced
169:41353c2e0c9f 170:391e744a1def
    32 $type = "SLAVE";
    32 $type = "SLAVE";
    33 
    33 
    34 (verify_permission('zone_slave_add')) ? $zone_slave_add = "1" : $zone_slave_add = "0" ;
    34 (verify_permission('zone_slave_add')) ? $zone_slave_add = "1" : $zone_slave_add = "0" ;
    35 
    35 
    36 if ($_POST['submit'] && $zone_slave_add == "1") {
    36 if ($_POST['submit'] && $zone_slave_add == "1") {
    37 	if (!is_valid_domain($zone)) {
    37 	if (!is_valid_hostname_fqdn($zone)) {
    38 		error(ERR_DNS_HOSTNAME);
    38 		error(ERR_DNS_HOSTNAME);
    39 	} elseif (domain_exists($zone)) {
    39 	} elseif (domain_exists($zone)) {
    40 		error(ERR_DOMAIN_EXISTS);
    40 		error(ERR_DOMAIN_EXISTS);
    41 	} elseif (!is_valid_ipv4($master) || !is_valid_ipv6($master)) {
    41 	} elseif (!is_valid_ipv4($master) || !is_valid_ipv6($master)) {
    42 		error(ERR_DNS_IP);
    42 		error(ERR_DNS_IP);