print <<END
-<DIV align='left'>
+<div align='left'>
END
;
}
$lines++;
-
+
}
+ $chains{$chainname."end"} = $lines-1;
close (FILE);
# now the chain hash is extracted to get the correct name of the chain
# colored gui
print "<form method='post' action='$ENV{'SCRIPT_NAME'}'>\n<select name='selectedchain' style='width: 250px'>\n";
- foreach (keys(%chains)){
+ foreach (sort(keys(%chains))){
if ( $_ =~ /end$/ ){
next;
}
print "</td>\n</tr>\n";
}
-print "</table></DIV><br />";
+print "</table></div><br />";
&Header::closebox();
## MANGLE
print <<END
-<DIV align='left'>
+<div align='left'>
END
;
$manlines++;
}
+ $chainsman{$chainname."end"} = $manlines-1;
close (FILE);
# now the chain hash is extracted to get the correct name of the chain
# colored gui
print "<form method='post' action='$ENV{'SCRIPT_NAME'}'>\n<select name='selectedchain' style='width: 250px'>\n";
- foreach (keys(%chainsman)){
+ foreach (sort(keys(%chainsman))){
if ( $_ =~ /end$/ ){
next;
}
print "</td>\n</tr>\n";
}
-print "</table></DIV><br />";
+print "</table></div><br />";
&Header::closebox();
## NAT
print <<END
-<DIV align='left'>
+<div align='left'>
END
;
$natlines++;
}
+ $chainsnat{$chainname."end"} = $natlines-1;
close (FILE);
# now the chain hash is extracted to get the correct name of the chain
# colored gui
print "<form method='post' action='$ENV{'SCRIPT_NAME'}'>\n<select name='selectedchain' style='width: 250px'>\n";
- foreach (keys(%chainsnat)){
+ foreach (sort(keys(%chainsnat))){
if ( $_ =~ /end$/ ){
next;
}
print "</td>\n</tr>\n";
}
-print "</table></DIV><br />";
+print "</table></div><br />";
&Header::closebox();
&Header::closebigbox();
&Header::closepage();
system(rm -f "/srv/web/ipfire/html/iptables.txt");
system(rm -f "/srv/web/ipfire/html/iptablesmangle.txt");
-system(rm -f "/srv/web/ipfire/html/iptablesnat.txt");
\ No newline at end of file
+system(rm -f "/srv/web/ipfire/html/iptablesnat.txt");