You are here

constant SMART_IP_SOURCE_SMART_IP in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 smart_ip.module \SMART_IP_SOURCE_SMART_IP

@file Determines country, geo location (longitude/latitude), region, city and postal code of the user, based on IP address

This module uses the IP address that a user is connected from to extract the location information where the user is located. This method is not foolproof, because a user may connect through an anonymizing proxy, or may be in an unusual case, such as getting service from a neighboring country, or using an IP block leased from a company in another country. Additionaly, users accessing a server on a local network may be using an IP that is not assigned to any country (e.g. 192.168.x.x).

@author Roland Michael dela Peña.

2 uses of SMART_IP_SOURCE_SMART_IP
smart_ip_get_location in ./smart_ip.module
Get the geo location from the IP address
smart_ip_init in ./smart_ip.module
Implements hook_init()

File

./smart_ip.module, line 18
Determines country, geo location (longitude/latitude), region, city and postal code of the user, based on IP address

Code

define('SMART_IP_SOURCE_SMART_IP', 'smart_ip');