Files
medicalalert-web-reloaded/wp/wp-content/ip-geo-api/maxmind/class-maxmind.php
Tony Volpe be83910651 Merged in feature/280-dev-dev01 (pull request #21)
auto-patch  280-dev-dev01-2024-01-19T16_41_58

* auto-patch  280-dev-dev01-2024-01-19T16_41_58
2024-01-19 16:44:43 +00:00

26 lines
692 B
PHP

<?php
/**
* IP Geo Block API class library for Maxmind
*
* @version 1.1.15
* @author tokkonopapa <tokkonopapa@yahoo.com>
* @license GPL-3.0
* @link https://www.ipgeoblock.com/
* @copyright 2013-2018 tokkonopapa
*/
class_exists( 'IP_Geo_Block_API', FALSE ) or die;
function ip_geo_block_setup_maxmind() {
$path = dirname( __FILE__ );
// GeoLite2 requires PHP 5.4+ (WordPress 3.7 requires PHP 5.2.4)
if ( version_compare( PHP_VERSION, '5.4' ) >= 0 )
require_once $path . '/class-maxmind-geolite2.php';
// GeoLite Legacy
if ( file_exists( $path . '/class-maxmind-legacy.php' ) )
require_once $path . '/class-maxmind-legacy.php';
}
ip_geo_block_setup_maxmind();