function _geoip_load_lib in GeoIP API 6
Same name and namespace in other branches
- 7 geoip.module \_geoip_load_lib()
Include the external GeoIP libraries.
Parameters
The file to be included. Must reside in the lib sub-directory.:
1 call to _geoip_load_lib()
- geoip_instance in ./
geoip.module - Singleton wrapper around geoip_open().
File
- ./
geoip.module, line 169 - API for using the MaxMind GeoLite Country database.
Code
function _geoip_load_lib($file = 'geoip.inc') {
static $loaded = array();
// If we've haven't tried to include geoip.inc do so. Otherwise, just fall
// through.
if (!isset($loaded[$file])) {
$loaded[$file] = TRUE;
include_once geoip_get_path() . '/lib/' . $file;
}
}