Fix: Tmp lookup must only check in memory (must not make resolve, this is goal of other function)
# PLUGIN: GeoIP
# REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
-# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/geoip.dat] </pathto/override.txt>
+# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/geoip.dat[+/pathto/override.txt]]
# DESCRIPTION: Builds a country chart and adds an entry to the hosts
# table with country name
# Replace spaces in the path of geoip data file with string "%20".
# PLUGIN: GeoIP_City_Maxmind
# REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
-# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPCity.dat] </pathto/override.txt>
+# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPCity.dat[+/pathto/override.txt]]
# DESCRIPTION: This plugin adds a column under the hosts field and tracks the pageviews
# and hits by city including regions.
# Replace spaces in the path of geoip data file with string "%20".
# PLUGIN: GeoIP_ASN_Maxmind
# REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
-# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPASN.dat]
-# </pathto/override.txt> <link to AS lookup>
+# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPASN.dat[+/pathto/override.txt]] <link to AS lookup>
# DESCRIPTION: This plugin adds a chart of AS numbers where the host IP address is registered.
# This plugin can display some ISP information if included in the database. You can also provide
# a link that will be used to lookup additional registration data. Put the link at the end of
# PLUGIN: GeoIP_Region_Maxmind
# REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
-# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPRegion.dat]
+# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPRegion.dat[+/pathto/override.txt]]
# DESCRIPTION:This plugin adds a chart of hits by regions. Only regions for US and
# Canada can be detected.
# Replace spaces in the path of geoip data file with string "%20".
# PLUGIN: GeoIP_ISP_Maxmind
# REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
-# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPISP.dat]
+# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPISP.dat[+/pathto/override.txt]]
# DESCRIPTION: This plugin adds a chart of hits by ISP.
# Replace spaces in the path of geoip data file with string "%20".
#
# PLUGIN: GeoIP_Org_Maxmind
# REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
-# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPOrg.dat]
+# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPOrg.dat[+/pathto/override.txt]]
# DESCRIPTION: This plugin add a chart of hits by Organization name
# Replace spaces in the path of geoip data file with string "%20".
#
# <-----
# ENTER HERE CODE TO DO INIT PLUGIN ACTIONS
debug(" Plugin $PluginName: InitParams=$InitParams",1);
- my ($mode,$datafile,$override)=split(/\s+/,$InitParams,3);
+ my ($mode,$tmpdatafile)=split(/\s+/,$InitParams,2);
+ my ($datafile,$override)=split(/\+/,$tmpdatafile,2);
if (! $datafile) { $datafile="$PluginName.dat"; }
+ else { $datafile =~ s/%20/ /g; }
if ($type eq 'geoippureperl') {
if ($mode eq '' || $mode eq 'GEOIP_MEMORY_CACHE') { $mode=Geo::IP::PurePerl::GEOIP_MEMORY_CACHE(); }
else { $mode=Geo::IP::PurePerl::GEOIP_STANDARD(); }
my $conf = (exists(&Get_Config_Name) ? Get_Config_Name() : $SiteConfig);
if ($conf && open(GEOIPFILE,"$DirData/$PluginName.$conf.txt")) { $filetoload="$DirData/$PluginName.$conf.txt"; }
elsif (open(GEOIPFILE,"$DirData/$PluginName.txt")) { $filetoload="$DirData/$PluginName.txt"; }
- else { debug("Did not find $PluginName file \"$DirData/$PluginName.txt\": $!"); }
+ else { debug("No override file \"$DirData/$PluginName.txt\": $!"); }
}
- # This is the fastest way to load with regexp that I know
- while (<GEOIPFILE>){
- chomp $_;
- s/\r//;
- my @record = split(",", $_);
- # replace quotes if they were used in the file
- foreach (@record){ $_ =~ s/"//g; }
- # store in hash
- $TmpDomainLookup{$record[0]} = $record[1];
+ if ($filetoload)
+ {
+ # This is the fastest way to load with regexp that I know
+ while (<GEOIPFILE>){
+ chomp $_;
+ s/\r//;
+ my @record = split(",", $_);
+ # replace quotes if they were used in the file
+ foreach (@record){ $_ =~ s/"//g; }
+ # store in hash
+ $TmpDomainLookup{$record[0]} = $record[1];
+ }
+ close GEOIPFILE;
+ debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
}
- close GEOIPFILE;
$LoadedOverride = 1;
- debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
+ return;
}
#-----------------------------------------------------------------------------
sub TmpLookup_geoip(){
$param = shift;
if (!$LoadedOverride){&LoadOverrideFile_geoip();}
- my $val;
- if ($gi &&
- (($type eq 'geoip' && $gi->VERSION >= 1.30) ||
- $type eq 'geoippureperl' && $gi->VERSION >= 1.17)){
- $val = $TmpDomainLookup{$gi->get_ip_address($param)};
- }
- else {$val = $TmpDomainLookup{$param};}
- return $val || '';
+ #my $val;
+ #if ($gi &&
+ #(($type eq 'geoip' && $gi->VERSION >= 1.30) ||
+ # $type eq 'geoippureperl' && $gi->VERSION >= 1.17)){
+ # $val = $TmpDomainLookup{$gi->get_ip_address($param)};
+ #}
+ #else {$val = $TmpDomainLookup{$param};}
+ #return $val || '';
+ return $TmpDomainLookup{$param}||'';
}
1; # Do not remove this line
# <-----
# ENTER HERE CODE TO DO INIT PLUGIN ACTIONS
debug(" Plugin $PluginName: InitParams=$InitParams",1);
- my ($mode,$datafile,$override,$link)=split(/\s+/,$InitParams,4);
+ my ($mode,$tmpdatafile)=split(/\s+/,$InitParams,2);
+ my ($datafile,$override,$link)=split(/\+/,$tmpdatafile,3);
if (! $datafile) { $datafile="GeoIPASNum.dat"; }
else { $datafile =~ s/%20/ /g; }
if ($type eq 'geoippureperl') {
my $conf = (exists(&Get_Config_Name) ? Get_Config_Name() : $SiteConfig);
if ($conf && open(GEOIPFILE,"$DirData/$PluginName.$conf.txt")) { $filetoload="$DirData/$PluginName.$conf.txt"; }
elsif (open(GEOIPFILE,"$DirData/$PluginName.txt")) { $filetoload="$DirData/$PluginName.txt"; }
- else { debug("Did not find $PluginName file \"$DirData/$PluginName.txt\": $!"); }
+ else { debug("No override file \"$DirData/$PluginName.txt\": $!"); }
}
- # This is the fastest way to load with regexp that I know
- while (<GEOIPFILE>){
- chomp $_;
- s/\r//;
- my @record = split(",", $_);
- # replace quotes if they were used in the file
- foreach (@record){ $_ =~ s/"//g; }
- # store in hash
- $TmpLookup{$record[0]} = $record[1];
+ if ($filetoload)
+ {
+ # This is the fastest way to load with regexp that I know
+ while (<GEOIPFILE>){
+ chomp $_;
+ s/\r//;
+ my @record = split(",", $_);
+ # replace quotes if they were used in the file
+ foreach (@record){ $_ =~ s/"//g; }
+ # store in hash
+ $TmpLookup{$record[0]} = $record[1];
+ }
+ close GEOIPFILE;
+ debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpLookup)." entries found.");
}
- close GEOIPFILE;
$LoadedOverride = 1;
- debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpLookup)." entries found.");
+ return;
}
sub trim($)
sub TmpLookup_geoip_asn_maxmind(){
$param = shift;
if (!$LoadedOverride){&LoadOverrideFile_geoip_asn_maxmind();}
- my $val;
- if ($geoip_asn_maxmind &&
- (($type eq 'geoip' && $geoip_asn_maxmind->VERSION >= 1.30) ||
- $type eq 'geoippureperl' && $geoip_asn_maxmind->VERSION >= 1.17)){
- $val = $TmpLookup{$geoip_asn_maxmind->get_ip_address($param)};
- }
- else {$val = $TmpLookup{$param};}
- return $val || '';
+# my $val;
+# if ($geoip_asn_maxmind &&
+# (($type eq 'geoip' && $geoip_asn_maxmind->VERSION >= 1.30) ||
+# $type eq 'geoippureperl' && $geoip_asn_maxmind->VERSION >= 1.17)){
+# $val = $TmpLookup{$geoip_asn_maxmind->get_ip_address($param)};
+# }
+# else {$val = $TmpLookup{$param};}
+# return $val || '';
+ return $TmpLookup{$param}||'';
+
}
# <-----
# ENTER HERE CODE TO DO INIT PLUGIN ACTIONS
debug(" Plugin $PluginName: InitParams=$InitParams",1);
- my ($mode,$datafile,$override)=split(/\s+/,$InitParams,3);
+ my ($mode,$tmpdatafile)=split(/\s+/,$InitParams,2);
+ my ($datafile,$override)=split(/\+/,$tmpdatafile,2);
if (! $datafile) { $datafile="GeoIPCity.dat"; }
else { $datafile =~ s/%20/ /g; }
if ($type eq 'geoippureperl') {
}
else
{
- my $record=();
- my $city, $countrycity, $region;
+ my $record=();
my @rec = TmpLookup_geoip_city_maxmind($param);
if (@rec){
- $city = $rec[4];
- $countrycity = $rec[3];
- $region = $rec[0];
+ $record->city = $rec[4];
+ $record->region = $rec[0];
+ $record->country_code = $rec[3];
}else{
$record=$geoip_city_maxmind->record_by_addr($param) if $geoip_city_maxmind;
- if ($record){
- $city = $record->city;
- $countrycity = $record->country_code;
- $region = $record->region;
- }
}
- if ($Debug) { debug(" Plugin $PluginName: GetCityByIp for $param: [$city]",5); }
- if ($city) {
+ if ($Debug) { debug(" Plugin $PluginName: GetCityByIp for $param: [$record]",5); }
+ if ($record) {
# if ($PageBool) { $_city_p{$city}++; }
if ($city) {
- my $countrycity=$countrycity.'_'.$city;
+ my $countrycity=$record->country_code.'_'.$record->city;
$countrycity=~s/ /%20/g;
- if ($region) { $countrycity.='_'.$region; }
+ if ($region) { $countrycity.='_'.$record->region; }
$_city_h{lc($countrycity)}++;
} else {
$_city_h{'unknown'}++;
my $conf = (exists(&Get_Config_Name) ? Get_Config_Name() : $SiteConfig);
if ($conf && open(GEOIPFILE,"$DirData/$PluginName.$conf.txt")) { $filetoload="$DirData/$PluginName.$conf.txt"; }
elsif (open(GEOIPFILE,"$DirData/$PluginName.txt")) { $filetoload="$DirData/$PluginName.txt"; }
- else { debug("Did not find $PluginName file \"$DirData/$PluginName.txt\": $!"); }
+ else { debug("No override file \"$DirData/$PluginName.txt\": $!"); }
}
- # This is the fastest way to load with regexp that I know
- while (<GEOIPFILE>){
- chomp $_;
- s/\r//;
- my @record = split(",", $_);
- # replace quotes if they were used in the file
- foreach (@record){ $_ =~ s/"//g; }
- # now we need to copy our file values in the order to mimic the lookup values
- my @res = ();
- $res[0] = $record[1];
- $res[3] = $record[2];
- $res[4] = $record[3];
- $res[5] = $record[4];
- $res[6] = $record[5];
- $res[7] = $record[6];
- $res[8] = $record[7];
- $res[9] = $record[8];
- # store in hash
- $TmpDomainLookup{$record[0]} = [@res];
+ if ($filetoload)
+ {
+ # This is the fastest way to load with regexp that I know
+ while (<GEOIPFILE>){
+ chomp $_;
+ s/\r//;
+ my @record = split(",", $_);
+ # replace quotes if they were used in the file
+ foreach (@record){ $_ =~ s/"//g; }
+ # now we need to copy our file values in the order to mimic the lookup values
+ my @res = ();
+ $res[0] = $record[1];
+ $res[3] = $record[2];
+ $res[4] = $record[3];
+ $res[5] = $record[4];
+ $res[6] = $record[5];
+ $res[7] = $record[6];
+ $res[8] = $record[7];
+ $res[9] = $record[8];
+ # store in hash
+ $TmpDomainLookup{$record[0]} = [@res];
+ }
+ close GEOIPFILE;
+ debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
}
- close GEOIPFILE;
$LoadedOverride = 1;
- debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
return;
}
sub TmpLookup_geoip_city_maxmind(){
$param = shift;
if (!$LoadedOverride){&LoadOverrideFile_geoip_city_maxmind();}
- my @val = ();
- if ($geoip_city_maxmind &&
- (($type eq 'geoip' && $geoip_city_maxmind->VERSION >= 1.30) ||
- $type eq 'geoippureperl' && $geoip_city_maxmind->VERSION >= 1.17)){
- @val = @{$TmpDomainLookup{$geoip_city_maxmind->get_ip_address($param)}};
- }
- else {@val = @{$TmpDomainLookup{$param};}}
- return @val;
+# my @val = ();
+# if ($geoip_city_maxmind &&
+# (($type eq 'geoip' && $geoip_city_maxmind->VERSION >= 1.30) ||
+# $type eq 'geoippureperl' && $geoip_city_maxmind->VERSION >= 1.17)){
+# @val = @{$TmpDomainLookup{$geoip_city_maxmind->get_ip_address($param)}};
+# }
+# else {@val = @{$TmpDomainLookup{$param};}}
+# return @val;
+ return @{$TmpDomainLookup{$param};}||'';
}
# <-----
# ENTER HERE CODE TO DO INIT PLUGIN ACTIONS
debug(" Plugin $PluginName: InitParams=$InitParams",1);
- my ($mode,$datafile,$override)=split(/\s+/,$InitParams,3);
+ my ($mode,$tmpdatafile)=split(/\s+/,$InitParams,2);
+ my ($datafile,$override)=split(/\+/,$tmpdatafile,2);
if (! $datafile) { $datafile="GeoIPIsp.dat"; }
else { $datafile =~ s/%20/ /g; }
if ($type eq 'geoippureperl') {
my $conf = (exists(&Get_Config_Name) ? Get_Config_Name() : $SiteConfig);
if ($conf && open(GEOIPFILE,"$DirData/$PluginName.$conf.txt")) { $filetoload="$DirData/$PluginName.$conf.txt"; }
elsif (open(GEOIPFILE,"$DirData/$PluginName.txt")) { $filetoload="$DirData/$PluginName.txt"; }
- else { debug("Did not find $PluginName file \"$DirData/$PluginName.txt\": $!"); }
+ else { debug("No override file \"$DirData/$PluginName.txt\": $!"); }
}
- # This is the fastest way to load with regexp that I know
- while (<GEOIPFILE>){
- chomp $_;
- s/\r//;
- my @record = split(",", $_);
- # replace quotes if they were used in the file
- foreach (@record){ $_ =~ s/"//g; }
- # store in hash
- $TmpDomainLookup{$record[0]} = $record[1];
+ if ($filetoload)
+ {
+ # This is the fastest way to load with regexp that I know
+ while (<GEOIPFILE>){
+ chomp $_;
+ s/\r//;
+ my @record = split(",", $_);
+ # replace quotes if they were used in the file
+ foreach (@record){ $_ =~ s/"//g; }
+ # store in hash
+ $TmpDomainLookup{$record[0]} = $record[1];
+ }
+ close GEOIPFILE;
+ debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
}
- close GEOIPFILE;
$LoadedOverride = 1;
- debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
return;
}
sub TmpLookup_geoip_isp_maxmind(){
$param = shift;
if (!$LoadedOverride){&LoadOverrideFile_geoip_isp_maxmind();}
- my $val;
- if ($geoip_isp_maxmind &&
- (($type eq 'geoip' && $geoip_isp_maxmind->VERSION >= 1.30) ||
- $type eq 'geoippureperl' && $geoip_isp_maxmind->VERSION >= 1.17)){
- $val = $TmpDomainLookup{$geoip_isp_maxmind->get_ip_address($param)};
- }
- else {$val = $TmpDomainLookup{$param};}
- return $val || '';
+ #my $val;
+ #if ($geoip_isp_maxmind &&
+ #(($type eq 'geoip' && $geoip_isp_maxmind->VERSION >= 1.30) ||
+ # $type eq 'geoippureperl' && $geoip_isp_maxmind->VERSION >= 1.17)){
+ # $val = $TmpDomainLookup{$geoip_isp_maxmind->get_ip_address($param)};
+ #}
+ #else {$val = $TmpDomainLookup{$param};}
+ #return $val || '';
+ return $TmpDomainLookup{$param}||'';
}
1; # Do not remove this line
# <-----
# ENTER HERE CODE TO DO INIT PLUGIN ACTIONS
debug(" Plugin $PluginName: InitParams=$InitParams",1);
- my ($mode,$datafile,$override)=split(/\s+/,$InitParams,3);
+ my ($mode,$tmpdatafile)=split(/\s+/,$InitParams,2);
+ my ($datafile,$override)=split(/\+/,$tmpdatafile,2);
if (! $datafile) { $datafile="GeoIPOrg.dat"; }
else { $datafile =~ s/%20/ /g; }
if ($type eq 'geoippureperl') {
my $conf = (exists(&Get_Config_Name) ? Get_Config_Name() : $SiteConfig);
if ($conf && open(GEOIPFILE,"$DirData/$PluginName.$conf.txt")) { $filetoload="$DirData/$PluginName.$conf.txt"; }
elsif (open(GEOIPFILE,"$DirData/$PluginName.txt")) { $filetoload="$DirData/$PluginName.txt"; }
- else { debug("Did not find $PluginName file \"$DirData/$PluginName.txt\": $!"); }
+ else { debug("No override file \"$DirData/$PluginName.txt\": $!"); }
}
- # This is the fastest way to load with regexp that I know
- while (<GEOIPFILE>){
- chomp $_;
- s/\r//;
- my @record = split(",", $_);
- # replace quotes if they were used in the file
- foreach (@record){ $_ =~ s/"//g; }
- # store in hash
- $TmpDomainLookup{$record[0]} = $record[1];
+ if ($filetoload)
+ {
+ # This is the fastest way to load with regexp that I know
+ while (<GEOIPFILE>){
+ chomp $_;
+ s/\r//;
+ my @record = split(",", $_);
+ # replace quotes if they were used in the file
+ foreach (@record){ $_ =~ s/"//g; }
+ # store in hash
+ $TmpDomainLookup{$record[0]} = $record[1];
+ }
+ close GEOIPFILE;
+ debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
}
- close GEOIPFILE;
$LoadedOverride = 1;
- debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
return;
}
sub TmpLookup_geoip_org_maxmind(){
$param = shift;
if (!$LoadedOverride){&LoadOverrideFile_geoip_org_maxmind();}
- my $val;
- if ($geoip_org_maxmind &&
- (($type eq 'geoip' && $geoip_org_maxmind->VERSION >= 1.30) ||
- $type eq 'geoippureperl' && $geoip_org_maxmind->VERSION >= 1.17)){
- $val = $TmpDomainLookup{$geoip_org_maxmind->get_ip_address($param)};
- }
- else {$val = $TmpDomainLookup{$param};}
- return $val || '';
+ #my $val;
+ #if ($geoip_org_maxmind &&
+ #(($type eq 'geoip' && $geoip_org_maxmind->VERSION >= 1.30) ||
+ # $type eq 'geoippureperl' && $geoip_org_maxmind->VERSION >= 1.17)){
+ # $val = $TmpDomainLookup{$geoip_org_maxmind->get_ip_address($param)};
+ #}
+ #else {$val = $TmpDomainLookup{$param};}
+ #return $val || '';
+ return $TmpDomainLookup{$param};
}
1; # Do not remove this line
# <-----
# ENTER HERE CODE TO DO INIT PLUGIN ACTIONS
debug(" Plugin $PluginName: InitParams=$InitParams",1);
- my ($mode,$datafile,$override)=split(/\s+/,$InitParams,3);
+ my ($mode,$tmpdatafile)=split(/\s+/,$InitParams,2);
+ my ($datafile,$override)=split(/\+/,$tmpdatafile,2);
if (! $datafile) { $datafile="GeoIPRegion.dat"; }
else { $datafile =~ s/%20/ /g; }
if ($type eq 'geoippureperl') {
my $conf = (exists(&Get_Config_Name) ? Get_Config_Name() : $SiteConfig);
if ($conf && open(GEOIPFILE,"$DirData/$PluginName.$conf.txt")) { $filetoload="$DirData/$PluginName.$conf.txt"; }
elsif (open(GEOIPFILE,"$DirData/$PluginName.txt")) { $filetoload="$DirData/$PluginName.txt"; }
- else { debug("Did not find $PluginName file \"$DirData/$PluginName.txt\": $!"); }
+ else { debug("No override file \"$DirData/$PluginName.txt\": $!"); }
}
- # This is the fastest way to load with regexp that I know
- while (<GEOIPFILE>){
- chomp $_;
- s/\r//;
- my @record = split(",", $_);
- # replace quotes if they were used in the file
- foreach (@record){ $_ =~ s/"//g; }
- # now we need to copy our file values in the order to mimic the lookup values
- my @res = ();
- $res[0] = $record[1]; # country code
- $res[1] = $record[2]; # region code
- # store in hash
- $TmpDomainLookup{$record[0]} = [@res];
+ if ($filetoload)
+ {
+ # This is the fastest way to load with regexp that I know
+ while (<GEOIPFILE>){
+ chomp $_;
+ s/\r//;
+ my @record = split(",", $_);
+ # replace quotes if they were used in the file
+ foreach (@record){ $_ =~ s/"//g; }
+ # now we need to copy our file values in the order to mimic the lookup values
+ my @res = ();
+ $res[0] = $record[1]; # country code
+ $res[1] = $record[2]; # region code
+ # store in hash
+ $TmpDomainLookup{$record[0]} = [@res];
+ }
+ close GEOIPFILE;
+ debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
}
- close GEOIPFILE;
$LoadedOverride = 1;
- debug(" Plugin $PluginName: Overload file loaded: ".(scalar keys %TmpDomainLookup)." entries found.");
return;
}
sub TmpLookup_geoip_region_maxmind(){
$param = shift;
if (!$LoadedOverride){&LoadOverrideFile_geoip_region_maxmind();}
- my @val = ();
- if ($geoip_region_maxmind &&
- (($type eq 'geoip' && $geoip_region_maxmind->VERSION >= 1.30) ||
- $type eq 'geoippureperl' && $geoip_region_maxmind->VERSION >= 1.17)){
- @val = @{$TmpDomainLookup{$geoip_region_maxmind->get_ip_address($param)}};
- }
- else {@val = @{$TmpDomainLookup{$param};}}
- return @val;
+ #my @val = ();
+ #if ($geoip_region_maxmind &&
+ #(($type eq 'geoip' && $geoip_region_maxmind->VERSION >= 1.30) ||
+ # $type eq 'geoippureperl' && $geoip_region_maxmind->VERSION >= 1.17)){
+ # @val = @{$TmpDomainLookup{$geoip_region_maxmind->get_ip_address($param)}};
+ #}
+ #else {@val = @{$TmpDomainLookup{$param};}}
+ #return @val;
+ return @{$TmpDomainLookup{$param};}||'';
}
1; # Do not remove this line