ids.cgi: Always display ruleset

Display the rule categories any time and do not hide them
if no instance of snort is runing.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2017-12-06 11:44:30 +01:00
parent e3ab140634
commit f7fcd1c020

View File

@@ -351,8 +351,7 @@ if ($results ne '') {
&Header::closebox();
if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable_green" || -e "${General::swroot}/snort/enable_blue" || -e "${General::swroot}/snort/enable_orange" ) {
&Header::openbox('100%', 'LEFT', $Lang::tr{'intrusion detection system rules'});
&Header::openbox('100%', 'LEFT', $Lang::tr{'intrusion detection system rules'});
# Output display table for rule files
print "<table width='100%'><tr><td valign='top'><table>";
@@ -488,8 +487,8 @@ if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable
# Increment ruledisplaycnt
$ruledisplaycnt++;
}
print "</td></tr></table></td></tr></table>";
print <<END
print "</td></tr></table></td></tr></table>";
print <<END
<table width='100%'>
<tr>
<td width='100%' align='right'><input type='submit' name='ACTION' value='$Lang::tr{'update'}' /></td>
@@ -500,8 +499,7 @@ if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable
</form>
END
;
&Header::closebox();
}
&Header::closebox();
&Header::closebigbox();
&Header::closepage();