";
+ }
+
+ my $colnet = "$virtualserver{$key}[1]/" . &General::subtocidr($virtualserver{$key}[2]);
+
+ print " | ";
+ print "" . &getcolor($colnet) . " | ";
+ print "$virtualserver{$key}[3] | ";
+
+ print <
+
+
+
+
+
+
+
+END
+
+ print " |
";
+
+ $count++;
+ }
+
+ print "";
+ &Header::closebox();
+ }
+}
+
+sub getcolor
+{
+ my $c=shift;
+ my $sip;
+ my $scidr;
+ my $tdcolor='';
+ #Check if MAC
+ if (&General::validmac($c)){ return $c;}
+
+ #Check if we got a full IP with subnet then split it
+ if($c =~ /^(.*?)\/(.*?)$/){
+ ($sip,$scidr) = split ("/",$c);
+ }else{
+ $sip=$c;
+ }
+
+ #Now check if IP is part of ORANGE,BLUE or GREEN
+ if ( &Header::orange_used() && &General::IpInSubnet($sip,$netsettings{'ORANGE_ADDRESS'},$netsettings{'ORANGE_NETMASK'})){
+ $tdcolor="