add_record.php
changeset 132 155178ad24e4
parent 126 cb06e3e29ed8
child 136 c795dd75a77e
equal deleted inserted replaced
131:e9ed9a06f62c 132:155178ad24e4
    66 if ($_POST["commit"]) {
    66 if ($_POST["commit"]) {
    67 	if ( $zone_type == "SLAVE" || $perm_content_edit == "none" || $perm_content_edit == "own" && $user_is_zone_owner == "0" ) {
    67 	if ( $zone_type == "SLAVE" || $perm_content_edit == "none" || $perm_content_edit == "own" && $user_is_zone_owner == "0" ) {
    68 		error(ERR_PERM_ADD_RECORD);
    68 		error(ERR_PERM_ADD_RECORD);
    69 	} else {
    69 	} else {
    70 		if ( add_record($zone_id, $name, $type, $content, $ttl, $prio)) {
    70 		if ( add_record($zone_id, $name, $type, $content, $ttl, $prio)) {
    71 			success(_('The record was succesfully added.'));
    71 			success(_('The record was successfully added.'));
    72 			unset($zone_id, $name, $type, $content, $ttl, $prio);
    72 			unset($zone_id, $name, $type, $content, $ttl, $prio);
    73 		}
    73 		}
    74 	}
    74 	}
    75 }
    75 }
    76 
    76