mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Add a warning about editing Virtualmin-controlled domains
This commit is contained in:
@ -17,6 +17,14 @@ my $dom = $zone->{'name'};
|
||||
&ui_print_header(&zone_subhead($zone), $text{'master_title'}, "",
|
||||
undef, undef, undef, undef, &restart_links($zone));
|
||||
|
||||
my $d = &get_virtualmin_domains($dom);
|
||||
if ($d && $d->{'alias'}) {
|
||||
print &ui_alert_box($text{'master_vminalias'}, 'danger');
|
||||
}
|
||||
elsif ($d) {
|
||||
print &ui_alert_box($text{'master_vmin'}, 'warn');
|
||||
}
|
||||
|
||||
# Find the record types
|
||||
my (@rcodes, @recs);
|
||||
if (!$config{'largezones'}) {
|
||||
|
@ -147,6 +147,8 @@ master_defttl=Default time-to-live for records
|
||||
master_edefttl='$1' is not a valid default time-to-live for records
|
||||
master_esoagone=No SOA record found!
|
||||
master_einclude=Additional template file does not exist
|
||||
master_vmin=WARNING! This zone is managed by Virtualmin. Records should be edited using the Virtualmin UI, to ensure they are consistent with other virtual server settings.
|
||||
master_vminalias=DANGER! This zone is an alias of a Virtualmin domain, which is kept in sync with it's target. Records should never be edited here, as any changes will be overwritten!
|
||||
|
||||
delete_title=Delete Zone
|
||||
delete_mesg=Are you sure you want to delete the zone $1 ? All records and the zone file will be deleted.
|
||||
|
Reference in New Issue
Block a user