2 require_once('require/class.Connection.php');
3 require_once('require/class.Spotter.php');
4 require_once('require/class.Language.php');
5 $Spotter = new Spotter();
6 if ($_GET['flightaware_id'] != "")
8 $flightaware_id = filter_input(INPUT_GET
,'flightaware_id',FILTER_SANITIZE_STRING
);
9 $spotter_id = $Spotter->getSpotterIDBasedOnFlightAwareID($flightaware_id);
10 if ($spotter_id != "")
12 header('Location: '.$globalURL.'/flightid/'.$spotter_id);
14 if ($globalURL == '') {
15 header('Location: /');
17 header('Location: '.$globalURL);