diff --git a/config/cfgroot/graphs.pl b/config/cfgroot/graphs.pl index cc00c665b..81b6fa4e7 100644 --- a/config/cfgroot/graphs.pl +++ b/config/cfgroot/graphs.pl @@ -92,8 +92,8 @@ sub makegraphbox { print "".$Lang::tr{'month'}.""; print " - "; print "".$Lang::tr{'year'}.""; - print ""; print ""; + print ""; } # Generate the CPU Graph for the current period of time for values given by diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index c5ccae809..2ce403001 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -358,7 +358,7 @@ if (($confighash{'ENABLED'} eq "on") || $ovpnip="$ovpnip/$sub"; print < - + OpenVPN $ovpnip @@ -372,7 +372,7 @@ print""; #Check if there are any vpns configured (ipsec and openvpn) &General::readhasharray("${General::swroot}/vpn/config", \%vpnconfig); foreach my $key (sort { ncmp($vpnconfig{$a}[1],$vpnconfig{$b}[1]) } keys %vpnconfig) { - if ($vpnconfig{$key}[0] eq 'on'){ + if ($vpnconfig{$key}[0] eq 'on' && $vpnconfig{$key}[3] ne 'host'){ $showipsec=1; $showbox=1; last; @@ -409,7 +409,7 @@ if ($showbox){ END foreach my $key (sort { uc($vpnconfig{$a}[1]) cmp uc($vpnconfig{$b}[1]) } keys %vpnconfig) { - if ($vpnconfig{$key}[0] eq 'on') { + if ($vpnconfig{$key}[0] eq 'on' && $vpnconfig{$key}[3] ne 'host') { $count++; my ($vpnip,$vpnsub) = split("/",$vpnconfig{$key}[11]); $vpnsub=&General::iporsubtocidr($vpnsub); @@ -420,8 +420,8 @@ END $col = $color{'color20'}; } print ""; - print "$vpnconfig{$key}[1]"; - print "$vpnip"; + print "$vpnconfig{$key}[1]"; + print "$vpnip"; my $activecolor = $Header::colourred; my $activestatus = $Lang::tr{'capsclosed'};