mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
ids.cgi: Move function to end of file
Move the function for doing the page refresh stuff to the end of the file and do some layout changes for better reading the code. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -30,8 +30,6 @@ require '/var/ipfire/general-functions.pl';
|
||||
require "${General::swroot}/lang.pl";
|
||||
require "${General::swroot}/header.pl";
|
||||
|
||||
sub refreshpage{&Header::openbox( 'Waiting', 1, "<meta http-equiv='refresh' content='1;'>" );print "<center><img src='/images/clock.gif' alt='' /><br/><font color='red'>$Lang::tr{'pagerefresh'}</font></center>";&Header::closebox();}
|
||||
|
||||
my %color = ();
|
||||
my %mainsettings = ();
|
||||
&General::readhash("${General::swroot}/main/settings", \%mainsettings);
|
||||
@@ -685,6 +683,12 @@ END
|
||||
&Header::closebigbox();
|
||||
&Header::closepage();
|
||||
|
||||
sub refreshpage {
|
||||
&Header::openbox( 'Waiting', 1, "<meta http-equiv='refresh' content='1;'>" );
|
||||
print "<center><img src='/images/clock.gif' alt='' /><br/><font color='red'>$Lang::tr{'pagerefresh'}</font></center>";
|
||||
&Header::closebox();
|
||||
}
|
||||
|
||||
sub downloadrulesfile {
|
||||
my $peer;
|
||||
my $peerport;
|
||||
|
||||
Reference in New Issue
Block a user