Source
27
28 private function getResult($host, $name){
29 $ip = @gethostbyname($host);
30
31 // if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)){
32 if(filter_var($ip, FILTER_VALIDATE_IP)){
33 $xml = @file_get_contents('http://' . $this->service . '/' . $this->version . '/' . $name . '/?key=' . $this->apiKey . '&ip=' . $ip . '&format=xml');
34
35
36 if (get_magic_quotes_runtime()){
37 $xml = stripslashes($xml);
38 }
39
40 try{
41 $response = @new SimpleXMLElement($xml);
42
Trace
- ip2location_lite->getResult(18.118.129.43,ip-country)
ip2locationlite.class.php:21
- ip2location_lite->getCountry(18.118.129.43)
Page.php:239
- Page_Controller->get_geolocation()
ViewableData.php:466
- ViewableData->obj(get_geolocation,,,1,get_geolocation)
ViewableData.php:504
- ViewableData->cachedCall(get_geolocation,,)
ViewableData.php:731
- ViewableData_Customised->cachedCall(get_geolocation,)
ViewableData.php:517
- ViewableData->hasValue(get_geolocation,,1)
SSViewer.php:187
- SSViewer_Scope->__call(hasValue,Array)
SSViewer.php:650
- SSViewer_DataPresenter->__call(hasValue,Array)
.cache.themes.oset2015.templates.Page.ss:296
- include(/home/osetbike/public_html/silverstripe-cache/osetbike-php7.4.33/.cache.themes.oset2015.templates.Page.ss)
SSViewer.php:1172
- SSViewer->includeGeneratedTemplate(/home/osetbike/public_html/silverstripe-cache/osetbike-php7.4.33/.cache.themes.oset2015.templates.Page.ss,ViewableData_Customised,,Array,)
SSViewer.php:1234
- SSViewer->process(ViewableData_Customised,)
ViewableData.php:405
- ViewableData->renderWith(SSViewer)
Security.php:587
- Security->login(SS_HTTPRequest)
RequestHandler.php:296
- RequestHandler->handleAction(SS_HTTPRequest,login)
Controller.php:192
- Controller->handleAction(SS_HTTPRequest,login)
RequestHandler.php:208
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:151
- Controller->handleRequest(SS_HTTPRequest,DataModel)
Director.php:383
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:147
- Director::direct(/Security/login,DataModel)
main.php:206