mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
ids.cgi: Show "Update Ruleset"-Button only if automatic updates are disabled
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -902,8 +902,8 @@ print <<END
|
|||||||
<td align='right'>
|
<td align='right'>
|
||||||
END
|
END
|
||||||
;
|
;
|
||||||
# Check if a ruleset has been downloaded yet.
|
# Show the "Update Ruleset"-Button only if a ruleset has been downloaded yet and automatic updates are disabled.
|
||||||
if (%idsrules) {
|
if ((%idsrules) && ($rulessettings{'AUTOUPDATE_INTERVAL'} eq "off")) {
|
||||||
# Display button to update the ruleset.
|
# Display button to update the ruleset.
|
||||||
print"<input type='submit' name='RULESET' value='$Lang::tr{'update ruleset'}'>\n";
|
print"<input type='submit' name='RULESET' value='$Lang::tr{'update ruleset'}'>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user