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>
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);
&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;