Created
January 29, 2018 23:02
-
-
Save tokkonopapa/160585a08a047f611a6cb910f827bc37 to your computer and use it in GitHub Desktop.
Force to use legacy databases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* IP Geo Block API class library for Maxmind | |
* | |
* @version 1.1.10 | |
* @author tokkonopapa <[email protected]> | |
* @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
How to use:
/wp-content/ip-geo-api/maxmind/
.class-maxmind.php
into the 1. folder.Related topics: