Changeset 388 for trunk/nagios-velvice/velvice.cgi
- Timestamp:
- Jun 7, 2019, 11:34:19 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nagios-velvice/velvice.cgi
r387 r388 17 17 use strict; 18 18 use warnings; 19 use version; our $VERSION = version->declare('0.10.1 2');19 use version; our $VERSION = version->declare('0.10.13'); 20 20 21 21 use CGI; … … 27 27 28 28 my $query = CGI->new(); 29 my $cgi_check = uri_decode($query->param('check')) ;29 my $cgi_check = uri_decode($query->param('check')) || ''; 30 30 my $cgi_script_name = $query->script_name(); 31 31 my $cgi_path = $cgi_script_name =~ s{/[^/]+\.cgi$}{}r; 32 my $param_only = uri_decode($query->param('only')) || ''; 32 33 my $cgi_only; 33 $cgi_only++ if uri_decode($query->param('only'))eq 'body';34 $cgi_only++ if $param_only eq 'body'; 34 35 undef $query; 36 undef $param_only; 35 37 36 38 my %STATUS_DB = ( … … 308 310 for my $act_name (keys %{$config->{'remote-action'}}) { 309 311 my $act_regex = $config->{'remote-action'}{$act_name}{'regex'}; 310 $bold++ if $service =~ m/$act_regex/ and $config->{'remote-action'}{$act_name}{'style'} eq 'bold'; 312 my $style = $config->{'remote-action'}{$act_name}{'style'} || ''; 313 $bold++ if $service =~ m/$act_regex/ and $style eq 'bold'; 311 314 } 312 315 $htmlpage .= $bold ? " <td $stylecolor class='hoop bold'>" : " <td $stylecolor class='hoop'>";
Note: See TracChangeset
for help on using the changeset viewer.