public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// This function checks to see if all the PHP modules we need for GeoIP exists.
This function checks to see if all the PHP modules we need for GeoIP exists.
This function checks to see if all the PHP modules we need for GeoIP exists .
function wp_statistics_geoip_supported() {
		$enabled = true;
		if( ! version_compare( phpversion(), WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION, '>' ) ) { $enabled = false; }
		if( ! function_exists( 'curl_init' ) ) { $enabled = false; }
		if( ini_get('safe_mode') ) {
			if( ! version_compare( phpversion(), '5.4', '<' ) ) { $enabled = false; }
		}
		return $enabled;
	}
function wp_statistics_geoip_supported ( ) { $ enabled = true ; if ( ! version_compare ( phpversion ( ) , WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION , '>' ) ) { $ enabled = false ; } if ( ! function_exists ( 'curl_init' ) ) { $ enabled = false ; } if ( ini_get ( 'safe_mode' ) ) { if ( ! version_compare ( phpversion ( ) , '5.4' , '<' ) ) { $ enabled = false ; } } return $ enabled ; }
This function checks to see if all the PHP modules we need for GeoIP exists.
This function checks to see if all the PHP modules we need for GeoIP exists .
// Check to see if we can support the GeoIP code, requirements are: // PHP 5.3 // PHP's cURL extension installed // PHP NOT running in safe mode // Double check php version, 5.4 and above don't support safe mode but the ini value may still be set after an upgrade.