private function getCountryForIp($ip = '') { include_once ENGINE_PATH . 'class/classGeoip.php'; if (!$ip) { $ip = $this->getIp(); } $geo = new Geo(); $countryCode = $geo->getCountryCode($ip); return $countryCode; }