diff -r f74e4f88b680 -r 982f722376b4 edit_record.php --- a/edit_record.php Mon Mar 31 06:43:38 2008 +0000 +++ b/edit_record.php Mon Mar 31 21:10:19 2008 +0000 @@ -34,9 +34,11 @@ elseif (verify_permission(zone_meta_edit_own)) { $perm_meta_edit = "own" ; } else { $perm_meta_edit = "none" ; } -$user_is_zone_owner = verify_user_is_owner_zoneid($_GET["domain"]); -$zone_type = get_domain_type($_GET["domain"]); -$zone_name = get_domain_name_from_id($_GET["domain"]); +$zid = get_zone_id_from_record_id($_GET["id"]); + +$user_is_zone_owner = verify_user_is_owner_zoneid($zid); +$zone_type = get_domain_type($zid); +$zone_name = get_domain_name_from_id($zid); if ($_POST["commit"]) { if ( $zone_type == "SLAVE" || $perm_content_edit == "none" || $perm_content_edit == "own" && $user_is_zone_owner == "0" ) { @@ -57,7 +59,7 @@ error(ERR_PERM_VIEW_RECORD); } else { $record = get_record_from_id($_GET["id"]); - echo "