edit_record.php
changeset 185 6baa2f78d3fe
parent 140 e68c3d6094d1
equal deleted inserted replaced
184:b60b88b1ae08 185:6baa2f78d3fe
    38 
    38 
    39 $user_is_zone_owner = verify_user_is_owner_zoneid($zid);
    39 $user_is_zone_owner = verify_user_is_owner_zoneid($zid);
    40 $zone_type = get_domain_type($zid);
    40 $zone_type = get_domain_type($zid);
    41 $zone_name = get_zone_name_from_id($zid);
    41 $zone_name = get_zone_name_from_id($zid);
    42 
    42 
    43 if ($_POST["commit"]) {
    43 if (isset($_POST["commit"])) {
    44 	if ( $zone_type == "SLAVE" || $perm_content_edit == "none" || $perm_content_edit == "own" && $user_is_zone_owner == "0" ) {
    44 	if ( $zone_type == "SLAVE" || $perm_content_edit == "none" || $perm_content_edit == "own" && $user_is_zone_owner == "0" ) {
    45 		error(ERR_PERM_EDIT_RECORD);
    45 		error(ERR_PERM_EDIT_RECORD);
    46 	} else {
    46 	} else {
    47 		$ret_val = edit_record($_POST);
    47 		$ret_val = edit_record($_POST);
    48 		if ( $ret_val == "1" ) {
    48 		if ( $ret_val == "1" ) {