From fed57fe7f04cbea5ea3489b75ff373d975e887bb Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 20 Mar 2021 16:58:11 +0100 Subject: [PATCH] ids.cgi: Move the section to customize the IDS ruleset to a function. Signed-off-by: Stefan Schantl --- html/cgi-bin/ids.cgi | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index f3f408b31..478b2ff15 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 ); @@ -1213,9 +1223,6 @@ END } } -&Header::closebigbox(); -&Header::closepage(); - # ## A function to display a notice, to lock the webpage and ## tell the user which action currently will be performed.