modified : curl function error fixed

This commit is contained in:
Fahad Abbas 2017-07-26 12:11:00 +05:00
parent fbfa14c3e4
commit 8c0ad8806e

View file

@ -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":