function _geoip_load_lib in GeoIP API 7
Same name and namespace in other branches
- 6 geoip.module \_geoip_load_lib()
Include the external geoip libraries.
Parameters
$file: 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 136 - 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;
}
}