From: Jan Paul Tuecking Date: Sun, 18 Apr 2010 20:41:01 +0000 (+0200) Subject: Fixed bug 617 - added links for services on services.cgi. X-Git-Tag: v2.9-beta1~373 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=533f1e118796bb44550f1270fa7b1fa4c12e030c;p=ipfire-2.x.git Fixed bug 617 - added links for services on services.cgi. --- diff --git a/html/cgi-bin/services.cgi b/html/cgi-bin/services.cgi old mode 100644 new mode 100755 index dcd306ef79..156db2d240 --- a/html/cgi-bin/services.cgi +++ b/html/cgi-bin/services.cgi @@ -59,6 +59,24 @@ my %servicenames =( 'OpenVPN' => 'openvpn' ); +my %link =( + $Lang::tr{'dhcp server'} => "$Lang::tr{'dhcp server'}", + $Lang::tr{'web server'} => $Lang::tr{'web server'}, + $Lang::tr{'cron server'} => $Lang::tr{'cron server'}, + $Lang::tr{'dns proxy server'} => $Lang::tr{'dns proxy server'}, + $Lang::tr{'logging server'} => $Lang::tr{'logging server'}, + $Lang::tr{'kernel logging server'} => $Lang::tr{'kernel logging server'}, + $Lang::tr{'ntp server'} => "$Lang::tr{'ntp server'}", + $Lang::tr{'secure shell server'} => "$Lang::tr{'secure shell server'}", + $Lang::tr{'vpn'} => "$Lang::tr{'vpn'}", + $Lang::tr{'web proxy'} => "$Lang::tr{'web proxy'}", + 'OpenVPN' => "OpenVPN", + "$Lang::tr{'intrusion detection system'} (GREEN)" => "$Lang::tr{'intrusion detection system'} (GREEN)", + "$Lang::tr{'intrusion detection system'} (RED)" => "$Lang::tr{'intrusion detection system'} (RED)", + "$Lang::tr{'intrusion detection system'} (ORANGE)" => "$Lang::tr{'intrusion detection system'} (ORANGE)", + "$Lang::tr{'intrusion detection system'} (BLUE)" => "$Lang::tr{'intrusion detection system'} (BLUE)" +); + my $lines=0; # Used to count the outputlines to make different bgcolor my $iface = ''; @@ -106,9 +124,13 @@ END foreach $key (sort keys %servicenames){ $lines++; if ($lines % 2){ - print "\n$key\n"; + print "\n"; + print %link->{$key}; + print "\n"; }else{ - print "\n$key\n"; + print "\n"; + print %link->{$key}; + print "\n"; } my $shortname = $servicenames{$key};