Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include_once(_PS_GEOIP_DIR_.'geoipcity.inc');
- $gi = geoip_open(realpath(_PS_GEOIP_DIR_.'GeoLiteCity.dat'), GEOIP_STANDARD);
- $record = geoip_record_by_addr($gi, Tools::getRemoteAddr());
- 'country_name' => $record->country_name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement