mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Openvpn: Change sortorder of client status and control
Now every NET is sorted and second instance is the NAME of the VPN.
This commit is contained in:
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user