From 99b372b51d01e7c35ac6b24bea72ec9c739681c9 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 24 Dec 2018 13:18:14 +0100 Subject: [PATCH] ids.cgi: Colourize network zones Colourize the network with the proper colour. Signed-off-by: Stefan Schantl --- html/cgi-bin/ids.cgi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index f2362d2dc4..df8810a0bf 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -88,6 +88,14 @@ unless (-f "$rulessettingsfile") { &IDS::create_empty_file($rulessettingsfile); unless (-f "$ignoredfile") { &IDS::create_empty_file($ignoredfile); } unless (-f "$whitelistfile" ) { &IDS::create_empty_file($whitelistfile); } +# Hash which contains the colour code of a network zone. +my %colourhash = ( + 'red' => $Header::colourred, + 'green' => $Header::colourgreen, + 'blue' => $Header::colourblue, + 'orange' => $Header::colourorange +); + &Header::showhttpheaders(); #Get GUI values @@ -787,7 +795,8 @@ foreach my $zone (@network_zones) { } print "\n"; - print "$Lang::tr{$zone}\n"; + print "\n"; + print " $Lang::tr{'enabled on'} $Lang::tr{$zone}\n"; print "\n"; } -- 2.39.5