From: Stefan Schantl Date: Sun, 10 Apr 2022 09:19:41 +0000 (+0200) Subject: ids.cgi: Allow to split working_notice function into two parts. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1aaa347774a96e54daf26ff0762e63731e94a629;p=people%2Fstevee%2Fipfire-2.x.git ids.cgi: Allow to split working_notice function into two parts. This allows to open the notice and close it at a later time. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 3a2e492b93..56bb5712ef 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -1830,6 +1830,16 @@ END sub working_notice ($) { my ($message) = @_; + &_open_working_notice ($message); + &_close_working_notice(); +} + +# +## Private function to lock the page and tell the user what is going on. +# +sub _open_working_notice ($) { + my ($message) = @_; + &Header::openpage($Lang::tr{'intrusion detection system'}, 1, ''); &Header::openbigbox('100%', 'left', '', $errormessage); &Header::openbox( 'Waiting', 1,); @@ -1839,8 +1849,15 @@ sub working_notice ($) { $Lang::tr{ $message - END +} + +# +## Private function to close a working notice. +# +sub _close_working_notice () { + print "\n"; + &Header::closebox(); &Header::closebigbox(); &Header::closepage();