add_zone_slave.php
changeset 126 cb06e3e29ed8
parent 119 f74e4f88b680
child 161 0832d846bf8e
equal deleted inserted replaced
125:700a3674b72e 126:cb06e3e29ed8
    29 
    29 
    30 $zone = trim($_POST['domain']);
    30 $zone = trim($_POST['domain']);
    31 $master = $_POST['slave_master'];
    31 $master = $_POST['slave_master'];
    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_domain($zone)) {
    38 		error(ERR_DNS_HOSTNAME);
    38 		error(ERR_DNS_HOSTNAME);
    39 	} elseif (domain_exists($zone)) {
    39 	} elseif (domain_exists($zone)) {