Claudio Sanches
3a9e459b2c
Created WC_Geo_IP_Record class
2015-02-11 15:57:16 -02:00
Claudio Sanches
5389dc3812
Created WC_Geo_IP class
2015-02-11 15:51:50 -02:00
Mike Jolley
c46f7f236d
When the geolocation database cannot download, ensure the correct method is used to log the error.
2015-02-11 16:47:52 +00:00
Mike Jolley
bc2af10cc6
Update languages and geolocation when installed
2015-02-11 14:38:55 +00:00
Gerhard
2339f5aee9
Better proxy server support for get_ip_address
2015-02-11 12:07:12 +02:00
James Collins
7e20fb9a3d
Use wc_clean to trim and sanitize external IP
...
As per suggestion from @claudiosmweb, wc_clean() is more full featured than trim().
See #7335
2015-02-10 07:54:26 +08:00
James Collins
b5cc22e8f5
Geolocation: strip whitespace when obtaining external IP
...
The "ip.appspot" service returns an IP address plus a new line character in its response.
An example response from "ip.appspot" is:
```123.123.123.123\n```
This fix strip whitespace from the response before proceeding.
2015-02-09 14:00:05 +08:00
Mike Jolley
2809986fcf
Dead var
2015-02-03 14:56:01 +00:00
Mike Jolley
9299f3e0b2
Check remote_addr is set
2015-01-05 10:57:21 +00:00
Mike Jolley
5ee068071f
Support HTTP_CF_IPCOUNTRY
2015-01-01 12:43:49 +00:00
Mike Jolley
932263cf0a
Check for geoiprecord class
2015-01-01 12:41:04 +00:00
Mike Jolley
caac9768a7
Added more fallbacks for API geoIP
2014-12-30 11:11:17 +00:00
Mike Jolley
4e8e90a8de
Support dev environment
2014-12-23 22:03:10 +00:00
Mike Jolley
f561aa4224
Geolocation class
2014-12-23 18:49:37 +00:00