mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Switch all zone links from indexes to zone names https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3579856&group_id=17457
This commit is contained in:
@@ -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'});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user