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 <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-04-10 11:19:41 +02:00
parent 25652a75d4
commit 1aaa347774

View File

@@ -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 ($) {
<td><img src='/images/indicator.gif' alt='$Lang::tr{'aktiv'}' /></td>
<td>$message</td>
</tr>
</table>
END
}
#
## Private function to close a working notice.
#
sub _close_working_notice () {
print "</table>\n";
&Header::closebox();
&Header::closebigbox();
&Header::closepage();