mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
ids.cgi: Make the page lock in oinkmaster_web() function optional.
This allows to call and release the page lock manually. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -1867,10 +1867,14 @@ sub _close_working_notice () {
|
||||
## oinkmaster function, but provides a lot of HTML formated status output.
|
||||
#
|
||||
sub oinkmaster_web () {
|
||||
my ($nolock) = @_;
|
||||
|
||||
my @enabled_providers = &IDS::get_enabled_providers();
|
||||
|
||||
# Lock the webpage and print message.
|
||||
&_open_working_notice("$Lang::tr{'ids apply ruleset changes'}");
|
||||
unless ($nolock) {
|
||||
&_open_working_notice("$Lang::tr{'ids apply ruleset changes'}");
|
||||
}
|
||||
|
||||
# Check if the files in rulesdir have the correct permissions.
|
||||
&IDS::_check_rulesdir_permissions();
|
||||
@@ -1908,7 +1912,9 @@ sub oinkmaster_web () {
|
||||
&_add_to_notice("$Lang::tr{'ids finished'}");
|
||||
|
||||
# Close the working notice.
|
||||
&_close_working_notice();
|
||||
unless ($nolock) {
|
||||
&_close_working_notice();
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user