Ejemplo n.º 1
0
function ReferZillaCountry()
{
    include "tabgeo_country_v4.php";
    $ip = $_SERVER['REMOTE_ADDR'];
    $country_code = tabgeo_country_v4($ip);
    return $country_code;
}
Ejemplo n.º 2
0
 /**
  * Get the country by IP
  * @return mixed|string
  */
 protected static function get_country()
 {
     $ip = self::get_ip();
     $country = tabgeo_country_v4($ip);
     return $country;
 }
Ejemplo n.º 3
0
 function __construct($ip)
 {
     $this->country = tabgeo_country_v4($ip);
 }