mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
41 lines
1.0 KiB
Perl
Executable File
41 lines
1.0 KiB
Perl
Executable File
#!/usr/local/bin/perl
|
|
# edit_delegation.cgi
|
|
# Display options for an existing delegation-only
|
|
|
|
require './bind8-lib.pl';
|
|
&ReadParse();
|
|
$bconf = $conf = &get_config();
|
|
if ($in{'view'} ne '') {
|
|
$view = $conf->[$in{'view'}];
|
|
$conf = $view->{'members'};
|
|
}
|
|
$zconf = $conf->[$in{'index'}]->{'members'};
|
|
$dom = $conf->[$in{'index'}]->{'value'};
|
|
&can_edit_zone($conf->[$in{'index'}], $view) ||
|
|
&error($text{'delegation_ecannot'});
|
|
$desc = &ip6int_to_net(&arpa_to_ip($dom));
|
|
&ui_print_header($desc, $text{'delegation_title'}, "",
|
|
undef, undef, undef, undef, &restart_links());
|
|
|
|
print "<b>$text{'delegation_noopts'}</b><p>\n";
|
|
|
|
if (!$access{'ro'}) {
|
|
print &ui_hr();
|
|
print &ui_buttons_start();
|
|
|
|
# Move to another view
|
|
print &move_zone_button($bconf, $in{'view'}, $in{'index'});
|
|
|
|
# Delete zone
|
|
if ($access{'delete'}) {
|
|
print &ui_buttons_row("delete_zone.cgi",
|
|
$text{'master_del'}, $text{'delegation_delmsg'},
|
|
&ui_hidden("index", $in{'index'}).
|
|
&ui_hidden("view", $in{'view'}));
|
|
}
|
|
|
|
print &ui_buttons_end();
|
|
}
|
|
&ui_print_footer("", $text{'index_return'});
|
|
|