]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Openvpn: Change sortorder of client status and control
authorAlexander Marx <alexander.marx@ipfire.org>
Thu, 10 Jul 2014 06:08:01 +0000 (08:08 +0200)
committerAlexander Marx <alexander.marx@ipfire.org>
Thu, 10 Jul 2014 06:08:01 +0000 (08:08 +0200)
Now every NET is sorted and second instance is the NAME of the VPN.

html/cgi-bin/ovpnmain.cgi

index 0cb41696fb58db26c1f61368ee5595c0d8ac52b7..3f49dccc1c87b7984d0085949c488a5c45626513 100644 (file)
@@ -5041,7 +5041,7 @@ END
        my $id = 0;
        my $gif;
        my $col1="";
-       foreach my $key (sort { ncmp ($confighash{$a}[3],$confighash{$b}[3]) } sort { ncmp ($confighash{$a}[1],$confighash{$b}[1]) } keys %confighash) {
+       foreach my $key (sort { ncmp ($confighash{$a}[32],$confighash{$b}[32]) } sort { ncmp ($confighash{$a}[1],$confighash{$b}[1]) } keys %confighash) {
        if ($confighash{$key}[0] eq 'on') { $gif = 'on.gif'; } else { $gif = 'off.gif'; }
        if ($id % 2) {
                print "<tr>";