]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Forward Firewall: ip addresses in firewall-groups (groups) are now colorized
authorAlexander Marx <amarx@ipfire.org>
Wed, 14 Aug 2013 12:19:36 +0000 (14:19 +0200)
committerAlexander Marx <amarx@ipfire.org>
Wed, 14 Aug 2013 12:19:36 +0000 (14:19 +0200)
html/cgi-bin/fwhosts.cgi

index b72cb1064b5a030f56bd8a544c23598f33000233..7ed27c4f600d7adef21fb15d0a04a9ac591aef83 100755 (executable)
@@ -1604,7 +1604,7 @@ sub viewtablegrp
                        }else{
                                my ($colip,$colsub) = split("/",$ip);
                                $ip="$colip/".&General::subtocidr($colsub) if ($colsub);
                        }else{
                                my ($colip,$colsub) = split("/",$ip);
                                $ip="$colip/".&General::subtocidr($colsub) if ($colsub);
-                               print"<td align='center'>".&Header::colorize($ip)."</td><td align='center'>$customgrp{$key}[3]</td><td width='1%'><form method='post'>";
+                               print"<td align='center' ".&getcolor($colip).">".&Header::colorize($ip)."</td><td align='center'>$customgrp{$key}[3]</td><td width='1%'><form method='post'>";
                        }
                        if ($delflag > '1' && $ip ne ''){
                                print"<input type='image' src='/images/delete.gif' align='middle' alt=$Lang::tr{'delete'} title=$Lang::tr{'delete'} />";
                        }
                        if ($delflag > '1' && $ip ne ''){
                                print"<input type='image' src='/images/delete.gif' align='middle' alt=$Lang::tr{'delete'} title=$Lang::tr{'delete'} />";