Пример #1
0
 protected static function getCountry()
 {
     if (is_null(self::$_country)) {
         require_once dirname(__FILE__) . '/../request/kIP2Location.php';
         $ipAddress = infraRequestUtils::getRemoteAddress();
         self::$_country = kIP2Location::ipToCountry($ipAddress);
     }
     return self::$_country;
 }
 protected static function getCountry()
 {
     if (is_null(self::$_country)) {
         require_once dirname(__FILE__) . '/../../alpha/apps/kaltura/lib/myIPGeocoder.class.php';
         $ipAddress = infraRequestUtils::getRemoteAddress();
         $geoCoder = new myIPGeocoder();
         self::$_country = $geoCoder->getCountry($ipAddress);
     }
     return self::$_country;
 }