2 require_once('require/class.Connection.php');
3 require_once('require/class.Spotter.php');
4 require_once('require/class.Language.php');
6 if (isset($_POST['departure_airport']) && $_POST['departure_airport'] != '')
8 $departure_airport = filter_input(INPUT_POST
,'departure_airport',FILTER_SANITIZE_STRING
);
9 $arrival_airport = filter_input(INPUT_POST
,'arrival_airport',FILTER_SANITIZE_STRING
);
10 header('Location: '.$globalURL.'/route/'.$departure_airport.'/'.$arrival_airport);
12 if ($globalURL == '') {
13 header('Location: /');
15 header('Location: '.$globalURL);