mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
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:
@@ -1830,6 +1830,16 @@ END
|
|||||||
sub working_notice ($) {
|
sub working_notice ($) {
|
||||||
my ($message) = @_;
|
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::openpage($Lang::tr{'intrusion detection system'}, 1, '');
|
||||||
&Header::openbigbox('100%', 'left', '', $errormessage);
|
&Header::openbigbox('100%', 'left', '', $errormessage);
|
||||||
&Header::openbox( 'Waiting', 1,);
|
&Header::openbox( 'Waiting', 1,);
|
||||||
@@ -1839,8 +1849,15 @@ sub working_notice ($) {
|
|||||||
<td><img src='/images/indicator.gif' alt='$Lang::tr{'aktiv'}' /></td>
|
<td><img src='/images/indicator.gif' alt='$Lang::tr{'aktiv'}' /></td>
|
||||||
<td>$message</td>
|
<td>$message</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
|
||||||
END
|
END
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
## Private function to close a working notice.
|
||||||
|
#
|
||||||
|
sub _close_working_notice () {
|
||||||
|
print "</table>\n";
|
||||||
|
|
||||||
&Header::closebox();
|
&Header::closebox();
|
||||||
&Header::closebigbox();
|
&Header::closebigbox();
|
||||||
&Header::closepage();
|
&Header::closepage();
|
||||||
|
|||||||
Reference in New Issue
Block a user