From: Stefan Schantl Date: Sat, 20 Mar 2021 15:58:11 +0000 (+0100) Subject: ids.cgi: Move the section to customize the IDS ruleset to a function. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61c7ec433e620518b21473c60df40648b6bc4767;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Move the section to customize the IDS ruleset to a function. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 51d6b5f35c..394136c1fc 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1094,6 +1094,16 @@ END # Only show the section for configuring the ruleset if one is present. 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. use File::stat; use POSIX qw( strftime ); @@ -1211,9 +1221,6 @@ END &Header::closebox(); } -&Header::closebigbox(); -&Header::closepage(); - # ## A function to display a notice, to lock the webpage and ## tell the user which action currently will be performed.