|
|
|
@ -34,7 +34,7 @@ class Index extends CI_Controller
|
|
|
|
|
$ip_number = $this->Dot2LongIP($data['ip_address']);
|
|
|
|
|
$country = $this->Ip2location_db1_model->get_country_by_ip($ip_number);
|
|
|
|
|
$country['ip_address'] = $data['ip_address'];
|
|
|
|
|
echo json_encode($data);
|
|
|
|
|
echo json_encode($country);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|