]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Add city and region inside host chart if geoip_city and geoip_region plugins are...
authoreldy <>
Wed, 27 Oct 2004 21:04:49 +0000 (21:04 +0000)
committereldy <>
Wed, 27 Oct 2004 21:04:49 +0000 (21:04 +0000)
wwwroot/cgi-bin/plugins/geoip_region_maxmind.pm

index 5825e290cbda621b7fe46bb8523c110da013ce35..3ab87c86361852b7a5691a56559e4bc2ec5d1e9b 100755 (executable)
@@ -300,7 +300,7 @@ sub ShowInfoHost_geoip_region_maxmind {
                my ($res1,$res2,$countryregion)=();
                ($res1,$res2)=$geoip_region_maxmind->region_by_name($param) if $geoip_region_maxmind;
                if ($Debug) { debug("  Plugin geoip_region_maxmind: GetRegionByIp for $param: [${res1}_${res2}]",5); }
-            if ($res1 =~ /\w\w/) { print $countrylib{lc($res1)}||uc($res1); }
+            if ($res1 =~ /\w\w/) { print $DomainsHashIDLib{lc($res1)}||uc($res1); }
             else { print "<span style=\"color: #$color_other\">$Message[0]</span>"; }
             if ($res1 =~ /\w\w/ && $res2 =~ /\w\w/) {
                 print "&nbsp;(";
@@ -315,7 +315,7 @@ sub ShowInfoHost_geoip_region_maxmind {
                my ($res1,$res2,$countryregion)=();
                ($res1,$res2)=$geoip_region_maxmind->region_by_name($param) if $geoip_region_maxmind;
                if ($Debug) { debug("  Plugin geoip_region_maxmind: GetRegionByName for $param: [${res1}_${res2}]",5); }
-            if ($res1 =~ /\w\w/) { print $countrylib{lc($res1)}||uc($res1); }
+            if ($res1 =~ /\w\w/) { print $DomainsHashIDLib{lc($res1)}||uc($res1); }
             else { print "<span style=\"color: #$color_other\">$Message[0]</span>"; }
             if ($res1 =~ /\w\w/ && $res2 =~ /\w\w/) {
                 print "&nbsp;(";