]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Added $DIR/plugins into @INC directories. So setup for GeoIPfree is mode easy. Just...
authoreldy <>
Fri, 27 Jun 2003 19:33:10 +0000 (19:33 +0000)
committereldy <>
Fri, 27 Jun 2003 19:33:10 +0000 (19:33 +0000)
wwwroot/cgi-bin/plugins/geoipfree.pm

index d63a9be82d7affe51404d180e3a81104dbbc0885..83b8b950c16694263ec3d04901ccecf3f5e528a7 100644 (file)
@@ -11,6 +11,7 @@
 
 
 # <-----
+push @INC, "${DIR}/plugins";
 # ENTER HERE THE USE COMMAND FOR ALL REQUIRED PERL MODULES
 if (!eval ('require "Geo/IPfree.pm";')) { return "Error: Need Perl module Geo::IPfree"; }
 # ----->
@@ -50,7 +51,7 @@ sub Init_geoipfree {
        debug(" InitParams=$InitParams",1);
        %TmpDomainLookup=();
        $gi = Geo::IPfree::new();
-       $gi->Faster ;   # Enable the faster option.
+       $gi->Faster   # Enable the faster option.
        # ----->
 
        return ($checkversion?$checkversion:"$PluginHooksFunctions");