I have the 4.6.6 version working except for the geoip function.
If you use Total Server Solutions you can go to 'cpanel' and check and save the 'geoip' checkbox in the php extenstion section of 'Select PHP Version'.
Does anyone know what XC version the function "geoip_continent_code_by_name" exists?
Code:
// disable module for non-EU customers
if (
!defined('DEVELOPMENT_MODE') && !defined('XC_DEBUG_EU_COOKIE_LAW') // EU_GDPR
&& !in_array(func_constant('AREA_TYPE'), array('A','P'))
&& function_exists('geoip_continent_code_by_name')
&& in_array(geoip_continent_code_by_name($CLIENT_IP), array('AF','AN','AS','NA','OC','SA'))
&& !empty($CLIENT_IP) && !empty($smarty)
) {
unset($active_modules['EU_Cookie_Law']);
$smarty->assign('active_modules', $active_modules);
}
Thanks!
Paul
Updated - Sorry... It's a PHP function
http://php.net/manual/en/function.geoip-continent-code-by-name.php