mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Warn about editing monitors created by Virtualmin https://www.virtualmin.com/node/69710
This commit is contained in:
@ -36,6 +36,16 @@ if ($in{'type'} && !$in{'clone'}) {
|
||||
}
|
||||
&ui_print_header($han->[1], $title, "");
|
||||
|
||||
if ($serv->{'virtualmin'} && &foreign_check("virtual-server")) {
|
||||
# Owned by a Virtualmin domain - don't recommend editing
|
||||
&foreign_require("virtual-server");
|
||||
$d = &virtual_server::get_domain($serv->{'virtualmin'});
|
||||
if ($d) {
|
||||
print "<b>",&text('mon_virtualmin',
|
||||
&virtual_server::show_domain_name($d)),"</b> <p>\n";
|
||||
}
|
||||
}
|
||||
|
||||
print &ui_form_start("save_mon.cgi", "post");
|
||||
print &ui_hidden("type", $in{'type'}),"\n";
|
||||
print &ui_hidden("id", $in{'id'}),"\n";
|
||||
|
@ -77,6 +77,7 @@ type_ldap=LDAP Connection
|
||||
|
||||
mon_create=Create Monitor
|
||||
mon_edit=Edit Monitor
|
||||
mon_virtualmin=Warning! This monitor is associated with the Virtualmin domain $1, and so should not be edited or deleted here.
|
||||
mon_header=Monitor details
|
||||
mon_header2=Commands to run
|
||||
mon_header3=Monitored service options
|
||||
|
Reference in New Issue
Block a user