This commit is contained in:
Jamie Cameron
2012-10-26 22:33:55 -07:00
parent 78e48f6820
commit 2bf2cb7d8e
57 changed files with 350 additions and 391 deletions

View File

@@ -4,7 +4,7 @@
require './bind8-lib.pl';
&ReadParse();
$zone = &get_zone_name($in{'index'}, $in{'view'});
$zone = &get_zone_name_or_error($in{'zone'}, $in{'view'});
$dom = $zone->{'name'};
&can_edit_zone($zone) ||
&error($text{'recs_ecannot'});
@@ -20,11 +20,11 @@ $desc = &text('edit_header', &ip6int_to_net(&arpa_to_ip($dom)));
&ui_print_header($desc, &text('edit_title', $text{"edit_".$rec->{'type'}} || $rec->{'type'}), "",
undef, undef, undef, undef, &restart_links($zone));
&record_input($in{'index'}, $in{'view'}, $in{'type'}, $file,
&record_input($in{'zone'}, $in{'view'}, $in{'type'}, $file,
$dom, $in{'num'}, $rec);
&ui_print_footer("", $text{'index_return'},
"edit_$type.cgi?index=$in{'index'}&view=$in{'view'}",
"edit_$type.cgi?zone=$in{'zone'}&view=$in{'view'}",
$text{'recs_return'},
"edit_recs.cgi?index=$in{'index'}&type=$in{'type'}",
"edit_recs.cgi?zone=$in{'zone'}&type=$in{'type'}",
$text{'edit_return'});