mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Slave zones can now be called secondary https://github.com/webmin/webmin/issues/2257
This commit is contained in:
@ -26,6 +26,7 @@ my $rev = ($zconf->{'value'} =~ /in-addr\.arpa/i ||
|
||||
$zconf->{'value'} =~ /\.$ipv6revzone/i);
|
||||
my $type = &find("type", $zconf->{'members'})->{'value'};
|
||||
$type = 'master' if ($type eq 'primary');
|
||||
$type = 'slave' if ($type eq 'secondary');
|
||||
if (!$in{'confirm'} && $config{'confirm_zone'}) {
|
||||
# Ask the user if he is sure ..
|
||||
&ui_print_header(undef, $text{'delete_title'}, "",
|
||||
|
@ -23,6 +23,7 @@ my $typedesc = $text{"recs_$in{'type'}"} || $in{'type'};
|
||||
# Show form for adding a record
|
||||
my $type = $zone->{'type'};
|
||||
$type = 'master' if ($type eq 'primary');
|
||||
$type = 'slave' if ($type eq 'secondary');
|
||||
my $file = $zone->{'file'};
|
||||
my $form = 0;
|
||||
my $shown_create_form;
|
||||
|
@ -188,6 +188,7 @@ elsif (@zones && (!@views || !$config{'by_view'})) {
|
||||
next if (!$t);
|
||||
$t = "delegation" if ($t eq "delegation-only");
|
||||
$t = "master" if ($t eq "primary");
|
||||
$t = "slave" if ($t eq "secondary");
|
||||
my $zn = $v eq "." ? "<i>$text{'index_root'}</i>"
|
||||
: &ip6int_to_net(&arpa_to_ip($v));
|
||||
if ($z->{'view'}) {
|
||||
@ -353,6 +354,7 @@ elsif (@zones) {
|
||||
my $t = $z->{'type'};
|
||||
$t = "delegation" if ($t eq "delegation-only");
|
||||
$t = "master" if ($t eq "primary");
|
||||
$t = "slave" if ($t eq "secondary");
|
||||
my $zn = $v eq "." ? "<i>$text{'index_root'}</i>"
|
||||
: &ip6int_to_net(&arpa_to_ip($v));
|
||||
push(@zlinks, "edit_$t.cgi?zone=$z->{'name'}".
|
||||
|
Reference in New Issue
Block a user