Merge pull request #456 from Struart88/patch-2
[FlightAirMap.git] / ident.php
blob8694200f6da5e8ff7eb3ecdfbe9c1f675c3984aa
1 <?php
2 require_once(dirname(__FILE__).'/require/settings.php');
3 $ident = '';
4 if (isset($_POST['ident'])) $ident = filter_input(INPUT_POST,'ident',FILTER_SANITIZE_STRING);
5 if (isset($_GET['ident'])) $ident = filter_input(INPUT_GET,'ident',FILTER_SANITIZE_STRING);
6 if ($ident != '')
8 if (isset($_GET['marine'])) header('Location: '.$globalURL.'/marine/ident/'.$ident);
9 else header('Location: '.$globalURL.'/ident/'.$ident);
10 } else {
11 if ($globalURL == '') {
12 header('Location: /');
13 } else {
14 header('Location: '.$globalURL);