]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Better error report in load of plugin.
authoreldy <>
Sun, 9 Feb 2003 17:52:14 +0000 (17:52 +0000)
committereldy <>
Sun, 9 Feb 2003 17:52:14 +0000 (17:52 +0000)
wwwroot/cgi-bin/plugins/geoip.pm

index 15932741cb68968aed23ddda4d95938b62bc6dc4..121be42394b236b87cf6b1ba9ba41e41c3021265 100644 (file)
 
 # <-----
 # ENTER HERE THE USE COMMAND FOR ALL REQUIRED PERL MODULES
-use Geo::IP;                           # For GeoIP
-#use Geo::IPfree;                      # For GeoIPfree
+if (!eval ('require "Geo/IP.pm";'))    { return "Error: Need Perl module Geo::IP"; }           # For GeoIP
+#if (!eval ('require "Geo/IPfree.pm";')) { return "Error: Need Perl module Geo::IPfree"; }     # For GeoIPfree
 # ----->
-use strict;no strict "refs";
+#use strict;no strict "refs";