Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. include_once(_PS_GEOIP_DIR_.'geoipcity.inc');
  2. $gi = geoip_open(realpath(_PS_GEOIP_DIR_.'GeoLiteCity.dat'), GEOIP_STANDARD);
  3. $record = geoip_record_by_addr($gi, Tools::getRemoteAddr());
  4.  
  5. 'country_name' => $record->country_name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement