]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Use new oinkmaster_web function instead the silent one from
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 10 Apr 2022 09:25:36 +0000 (11:25 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 10 Apr 2022 09:25:36 +0000 (11:25 +0200)
ids-functions.

This will print some nice status messages while the page is locked and
the IDS rules get regenerated/altered.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index 856f7e3d9ecd93eb266ccea94926e93c66bbe794..9722e6c364c98162d3b86443fe2cdc4e6d894631 100644 (file)
@@ -403,10 +403,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) {
        &IDS::write_used_rulefiles_file(@enabled_providers);
 
        # Lock the webpage and print message.
-       &working_notice("$Lang::tr{'ids apply ruleset changes'}");
-
-       # Call oinkmaster to alter the ruleset.
-       &IDS::oinkmaster();
+       &oinkmaster_web();
 
        # Check if the IDS is running.
        if(&IDS::ids_is_running()) {
@@ -449,7 +446,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) {
                        &reload();
                } else {
                        # Call subfunction to launch oinkmaster.
-                       &IDS::oinkmaster();
+                       &oinkmaster_web();
 
                        # Check if the IDS is running.
                        if(&IDS::ids_is_running()) {
@@ -493,7 +490,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) {
        &IDS::write_used_rulefiles_file(@enabled_providers);
 
        # Regenerate ruleset.
-       &IDS::oinkmaster();
+       &oinkmaster_web();
 
        # Check if the IDS is running.
        if(&IDS::ids_is_running()) {
@@ -834,11 +831,8 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) {
 
                # Check if oinkmaster has to be executed.
                if ($oinkmaster eq "True") {
-                       # Lock the webpage and print message.
-                       &working_notice("$Lang::tr{'ids apply ruleset changes'}");
-
                        # Launch oinkmaster.
-                       &IDS::oinkmaster();
+                       &oinkmaster_web();
                }
 
                # Check if the IDS is running.
@@ -903,7 +897,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) {
        }
 
        # Regenerate ruleset.
-       &IDS::oinkmaster();
+       &oinkmaster_web();
 
        # Gather all enabled providers.
        my @enabled_providers = &IDS::get_enabled_providers();