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:
Stefan Schantl
2017-12-02 15:31:19 +01:00
parent 422204ff08
commit a70d269a9a

View File

@@ -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;