mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Add cgi args parser:
This commit is contained in:
16
status/cgi_args.pl
Normal file
16
status/cgi_args.pl
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
do 'status-lib.pl';
|
||||
|
||||
sub cgi_args
|
||||
{
|
||||
my ($cgi) = @_;
|
||||
if ($cgi eq 'edit_mon.cgi') {
|
||||
my @serv = &list_services();
|
||||
return @serv ? 'id='.&urlize($serv[0]->{'id'}) : 'new=1';
|
||||
}
|
||||
elsif ($cgi eq 'edit_tmpl.cgi') {
|
||||
my @tmpls = &list_templates();
|
||||
return @tmpls ? 'id='.&urlize($tmpls[0]->{'id'}) : 'new=1';
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
@@ -447,7 +447,7 @@ tmpl_title2=Edit Email Template
|
||||
tmpl_header=Alert email template messages
|
||||
tmpl_desc=Template description
|
||||
tmpl_email=Email message
|
||||
tmpl_sms=SMS / pager message
|
||||
tmpl_sms=SMS message
|
||||
tmpl_sms1=Webmin default
|
||||
tmpl_sms0=Custom message below ..
|
||||
tmpl_snmp=Pager message
|
||||
|
||||
Reference in New Issue
Block a user