]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Move function to end of file
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 2 Dec 2017 14:31:19 +0000 (15:31 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 26 Jul 2018 09:40:30 +0000 (11:40 +0200)
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>
html/cgi-bin/ids.cgi

index fce3a54bb5cc630cacacd5673826731b3d34a07a..129f8f2d7f1a5bba4b888d94906d4939951266a8 100644 (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;