Skip to content

Instantly share code, notes, and snippets.

@tokkonopapa
Created January 29, 2018 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tokkonopapa/160585a08a047f611a6cb910f827bc37 to your computer and use it in GitHub Desktop.
Save tokkonopapa/160585a08a047f611a6cb910f827bc37 to your computer and use it in GitHub Desktop.
Force to use legacy databases
<?php
/**
* IP Geo Block API class library for Maxmind
*
* @version 1.1.10
* @author tokkonopapa <tokkonopapa@yahoo.com>
* @license GPL-3.0
* @link http://www.ipgeoblock.com/
* @copyright 2013-2018 tokkonopapa
*/
class_exists( 'IP_Geo_Block_API', FALSE ) or die;
//if ( version_compare( PHP_VERSION, '5.4.0' ) >= 0 ):
// require_once dirname( __FILE__ ) . '/class-maxmind-geolite2.php';
//else:
require_once dirname( __FILE__ ) . '/class-maxmind-legacy.php';
//endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment