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(3.148.115.202,ip-country)
ip2locationlite.class.php:21
- ip2location_lite->getCountry(3.148.115.202)
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: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,DealerPage_Controller,,Array,)
SSViewer.php:1234
- SSViewer->process(DealerPage_Controller)
Controller.php:201
- Controller->handleAction(SS_HTTPRequest,index)
RequestHandler.php:208
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:151
- Controller->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:174
- ContentController->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:154
- ContentController->handleRequest(SS_HTTPRequest,DataModel)
ModelAsController.php:75
- ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
PrefixModelAsController.php:69
- PrefixModelAsController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:383
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:147
- Director::direct(/us/where-to-buy/usa-and-canada-dealers/,DataModel)
main.php:206