[Deprecated] Function get_magic_quotes_runtime() is deprecated

GET /ar/themes/oset2015/css/themes/oset2015/images/oset@2x.png

Line 36 in /home/osetbike/public_html/mysite/code/Site/ip2locationlite.class.php

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

GET /ar/themes/oset2015/css/themes/oset2015/images/oset@2x.png

[Notice] Trying to access array offset on value of type null

GET /ar/themes/oset2015/css/themes/oset2015/images/oset@2x.png

Line 240 in /home/osetbike/public_html/mysite/code/Site/Page.php

Source

231 	{
232 
233 		$visitor = $_SERVER['REMOTE_ADDR'];
234 
235 			$ipLite = new ip2location_lite;
236 
237 			if (!isset($_COOKIE["geolocation"])) {
238 				$ipLite->setKey('7e6adac1e161b5b5277aa7e960f5b84ab4a979674aa8ca969ce724c2cfdb1916');
239 				$visitorGeolocation = $ipLite->getCountry($visitor);
240 				if ($visitorGeolocation['statusCode'] == 'OK') {
241 					$data = base64_encode(serialize($visitorGeolocation));
242 					setcookie("geolocation", $data, time() + 3600 * 24 * 30); //set cookie for 1 month
243 				}
244 			} else {
245 				$visitorGeolocation = unserialize(base64_decode($_COOKIE["geolocation"]));
246 			}

Trace

GET /ar/themes/oset2015/css/themes/oset2015/images/oset@2x.png

[Notice] Trying to access array offset on value of type null

GET /ar/themes/oset2015/css/themes/oset2015/images/oset@2x.png

Line 253 in /home/osetbike/public_html/mysite/code/Site/Page.php

Source

244 			} else {
245 				$visitorGeolocation = unserialize(base64_decode($_COOKIE["geolocation"]));
246 			}
247 
248 			//Get errors and locations
249 			$errors = $ipLite->getError();
250 
251 			$locale = substr($this->Locale, -2);
252 
253 			if ((string)$visitorGeolocation['countryCode'] == 'UK') {
254 				(string)$visitorGeolocation['countryCode'] = 'GB';
255 			}
256 
257 			if ((string)$visitorGeolocation['countryCode'] != $locale) {
258 				return true;
259 			} else {

Trace

GET /ar/themes/oset2015/css/themes/oset2015/images/oset@2x.png

[Notice] Trying to access array offset on value of type null

GET /ar/themes/oset2015/css/themes/oset2015/images/oset@2x.png

Line 257 in /home/osetbike/public_html/mysite/code/Site/Page.php

Source

248 			//Get errors and locations
249 			$errors = $ipLite->getError();
250 
251 			$locale = substr($this->Locale, -2);
252 
253 			if ((string)$visitorGeolocation['countryCode'] == 'UK') {
254 				(string)$visitorGeolocation['countryCode'] = 'GB';
255 			}
256 
257 			if ((string)$visitorGeolocation['countryCode'] != $locale) {
258 				return true;
259 			} else {
260 				return false;
261 			}
262 
263 	}

Trace

Page not found - OSET Bikes

Page not found

whoops you've gone off course

Sorry, it seems you were trying to access a page that doesn't exist.

Please check the spelling of the URL you were trying to access and try again.