X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Fiptables.cgi;h=b52d74fcfbac81006efa0e33fc4642e91abd39a6;hb=2caca412176a5de89fa4b359cf33766be552c447;hp=080371b375c6aee211fb5a27e4a39686c2c243f8;hpb=0a8db55873838c67f045d4124f566451019622a8;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/html/cgi-bin/iptables.cgi b/html/cgi-bin/iptables.cgi index 080371b375..b52d74fcfb 100644 --- a/html/cgi-bin/iptables.cgi +++ b/html/cgi-bin/iptables.cgi @@ -80,7 +80,7 @@ if ( $cgiparams{'selectedchain'} ne "" ){ print < +
END ; @@ -88,7 +88,7 @@ END # start with an Chain the the name, start- and endline of the # chain is extracted into a hash - open (FILE, '/srv/web/ipfire/html/iptables.txt'); + open (FILE, '/var/tmp/iptables.txt'); while (){ $iplines[$lines] = $_; @@ -106,8 +106,9 @@ END } $lines++; - + } + $chains{$chainname."end"} = $lines-1; close (FILE); # now the chain hash is extracted to get the correct name of the chain @@ -119,7 +120,7 @@ END # colored gui print "
\n\n"; - foreach (keys(%chainsman)){ + foreach (sort(keys(%chainsman))){ if ( $_ =~ /end$/ ){ next; @@ -270,8 +272,8 @@ END print "\n"; print "\n"; - print " \n \n \n"; - print " \n \n"; + print " \n \n \n"; + print " \n \n"; print " \n \n"; print " \n \n"; print " \n \n"; @@ -307,7 +309,7 @@ END } print "\n\n"; } -print "

"; +print "
"; &Header::closebox(); ## NAT @@ -327,7 +329,7 @@ if ( $cgiparams{'selectedchain'} ne "" ){ print < +
END ; @@ -335,7 +337,7 @@ END # start with an Chain the the name, start- and endline of the # chain is extracted into a hash - open (FILE, '/srv/web/ipfire/html/iptablesnat.txt'); + open (FILE, '/var/tmp/iptablesnat.txt'); while (){ $ipnatlines[$natlines] = $_; @@ -355,6 +357,7 @@ END $natlines++; } + $chainsnat{$chainname."end"} = $natlines-1; close (FILE); # now the chain hash is extracted to get the correct name of the chain @@ -366,7 +369,7 @@ END # colored gui print "\n