From: eldy <> Date: Fri, 27 Jun 2003 19:33:10 +0000 (+0000) Subject: Added $DIR/plugins into @INC directories. So setup for GeoIPfree is mode easy. Just... X-Git-Tag: AWSTATS_5_6_RELEASE~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8ded0eea0674413ecac7af8e7eb831ba32ce0da;p=thirdparty%2FAWStats.git Added $DIR/plugins into @INC directories. So setup for GeoIPfree is mode easy. Just put Geo directory into plugins directory. --- diff --git a/wwwroot/cgi-bin/plugins/geoipfree.pm b/wwwroot/cgi-bin/plugins/geoipfree.pm index d63a9be8..83b8b950 100644 --- a/wwwroot/cgi-bin/plugins/geoipfree.pm +++ b/wwwroot/cgi-bin/plugins/geoipfree.pm @@ -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");