From 4bf6a597fead7f5bf3d868593be4d9e366a1f3e8 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Wed, 8 Jan 2014 15:35:19 +0100 Subject: [PATCH] statuspage: some fixes of last commit --- config/menu/10-system.menu | 2 +- html/cgi-bin/index.cgi | 22 ++++++++++++++-------- langs/de/cgi-bin/de.pl | 4 ++-- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/config/menu/10-system.menu b/config/menu/10-system.menu index 68deb0712..5755366ed 100644 --- a/config/menu/10-system.menu +++ b/config/menu/10-system.menu @@ -40,7 +40,7 @@ 'title' => "$Lang::tr{'system information'}", 'enabled' => 1, }; - $subsystem->{'42.fireinfo'} = { + $subsystem->{'42.shutdown'} = { 'caption' => $Lang::tr{'shutdown'}, 'uri' => '/cgi-bin/shutdown.cgi', 'title' => "$Lang::tr{'shutdown'}", diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index d636c41a7..5143e5e14 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -162,7 +162,7 @@ print < - + @@ -248,7 +248,7 @@ END
$Lang::tr{'network'}IP$Lang::tr{'ip address'} $Lang::tr{'status'}
$Lang::tr{'internet'}
$ipaddr
- +
$Lang::tr{'network'}IP$Lang::tr{'ip address'} $Lang::tr{'status'}
$Lang::tr{'lan'} @@ -329,7 +329,7 @@ print"
"; - + END @@ -338,13 +338,15 @@ END my $col=""; foreach my $key (sort { uc($confighash{$a}[1]) cmp uc($confighash{$b}[1]) } keys %confighash) { if ($confighash{$key}[0] eq 'on') { $gif = 'on.gif'; } else { $gif = 'off.gif'; } - + my ($vpnip,$vpnsub) = split("/",$confighash{$key}[11]); + $vpnsub=&General::iporsubtocidr($vpnsub); + $vpnip="$vpnip/$vpnsub"; if ($id % 2) { $col="bgcolor='$color{'color20'}'"; - print ""; + print ""; } else { $col="bgcolor='$color{'color22'}'"; - print ""; + print ""; } my $active = ""; @@ -375,7 +377,7 @@ if ( $haveovpn )
$Lang::tr{'ipsec network'}IP$Lang::tr{'ip address'} $Lang::tr{'status'}
$confighash{$key}[1] / " . $Lang::tr{"$confighash{$key}[3]"} . " (" . $Lang::tr{"$confighash{$key}[4]"} . ")$confighash{$key}[11]
$confighash{$key}[1] / " . $Lang::tr{"$confighash{$key}[3]"} . " (" . $Lang::tr{"$confighash{$key}[4]"} . ")$vpnip
$confighash{$key}[1] / " . $Lang::tr{"$confighash{$key}[3]"} . " (" . $Lang::tr{"$confighash{$key}[4]"} . ")$confighash{$key}[11]
$confighash{$key}[1] / " . $Lang::tr{"$confighash{$key}[3]"} . " (" . $Lang::tr{"$confighash{$key}[4]"} . ")$vpnip$Lang::tr{'capsclosed'}
- + END # Check if the OpenVPN server for Road Warrior Connections is running and display status information. @@ -413,13 +415,17 @@ END }else{ $col="bgcolor='$color{'color22'}'"; } + #make cidr from ip + my ($vpnip,$vpnsub) = split("/",$confighash{$dkey}[11]); + my $vpnsub=&General::iporsubtocidr($vpnsub); + my $vpnip="$vpnip/$vpnsub"; print <
$Lang::tr{'openvpn network'}IP$Lang::tr{'ip address'} $Lang::tr{'status'} $confighash{$dkey}[1] - $confighash{$dkey}[11] + $vpnip diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index db8883770..ee69c98a6 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -1271,7 +1271,7 @@ 'ipinfo' => 'IP-Info', 'iptable rules' => 'IPTable-Regeln', 'iptmangles' => 'IPTable Mangles', -'ipsec network' => 'IPsec Netzwerke', +'ipsec network' => 'IPsec-Netzwerke', 'iptnats' => 'IPTable Network Address Translation', 'ipts' => 'iptables', 'isdn' => 'ISDN', @@ -1537,7 +1537,7 @@ 'openvpn fragment allowed with udp' => '"fragment" kann nur in Kombination mit dem UDP-Protokoll genutzt werden.', 'openvpn log' => 'OpenVPN Log', 'openvpn mssfix allowed with udp' => '"mssfix" kann nur in Kombination mit dem UDP-Protokoll genutzt werden.', -'openvpn network' => 'OpenVPN Netzwerke', +'openvpn network' => 'OpenVPN-Netzwerke', 'openvpn prefix local subnet' => 'Die Prefix-Notation wird nicht unterstützt. Bitte geben Sie eine Subnetzmaske beim lokalen Subnetz ein wie z.B. 255.255.255.0.', 'openvpn prefix openvpn subnet' => 'Die Prefix-Notation wird nicht unterstützt. Bitte geben Sie eine Subnetzmaske beim OpenVPN-Subnetz ein wie z.B. 255.255.255.0.', 'openvpn prefix remote subnet' => 'Die Prefix-Notation wird nicht unterstützt. Bitte geben Sie eine Subnetzmaske beim entfernten Subnetz ein wie z.B. 255.255.255.0.', -- 2.39.5