mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
ids.cgi: Move the section to customize the IDS ruleset to a function.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -1094,6 +1094,16 @@ END
|
|||||||
|
|
||||||
# Only show the section for configuring the ruleset if one is present.
|
# Only show the section for configuring the ruleset if one is present.
|
||||||
if (%idsrules) {
|
if (%idsrules) {
|
||||||
|
&show_customize_ruleset();
|
||||||
|
}
|
||||||
|
|
||||||
|
&Header::closebigbox();
|
||||||
|
&Header::closepage();
|
||||||
|
|
||||||
|
#
|
||||||
|
## Function to show the customize ruleset section.
|
||||||
|
#
|
||||||
|
sub show_customize_ruleset() {
|
||||||
# Load neccessary perl modules for file stat and to format the timestamp.
|
# Load neccessary perl modules for file stat and to format the timestamp.
|
||||||
use File::stat;
|
use File::stat;
|
||||||
use POSIX qw( strftime );
|
use POSIX qw( strftime );
|
||||||
@@ -1213,9 +1223,6 @@ END
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&Header::closebigbox();
|
|
||||||
&Header::closepage();
|
|
||||||
|
|
||||||
#
|
#
|
||||||
## A function to display a notice, to lock the webpage and
|
## A function to display a notice, to lock the webpage and
|
||||||
## tell the user which action currently will be performed.
|
## tell the user which action currently will be performed.
|
||||||
|
|||||||
Reference in New Issue
Block a user