modified : curl function error fixed
This commit is contained in:
parent
fbfa14c3e4
commit
8c0ad8806e
1 changed files with 1 additions and 1 deletions
|
@ -5427,7 +5427,7 @@
|
|||
"SA" => "South America"
|
||||
);
|
||||
if (filter_var($ip, FILTER_VALIDATE_IP) && in_array($purpose, $support)) {
|
||||
$ipdat = @json_decode(get_data("http://www.geoplugin.net/json.gp?ip=" . $ip));
|
||||
$ipdat = @json_decode(cb_curl("http://www.geoplugin.net/json.gp?ip=" . $ip));
|
||||
if (@strlen(trim($ipdat->geoplugin_countryCode)) == 2) {
|
||||
switch ($purpose) {
|
||||
case "location":
|
||||
|
|
Loading…
Add table
Reference in a new issue