@@ -6,14 +6,14 @@ discard block |
||
6 | 6 | //require_once('require/class.SpotterLive.php'); |
7 | 7 | require_once('require/class.SpotterArchive.php'); |
8 | 8 | |
9 | -if (!isset($_GET['pilot'])){ |
|
9 | +if (!isset($_GET['pilot'])) { |
|
10 | 10 | header('Location: '.$globalURL.'/'); |
11 | 11 | } else { |
12 | 12 | $Spotter = new Spotter(); |
13 | 13 | $SpotterArchive = new SpotterArchive(); |
14 | 14 | $Translation = new Translation(); |
15 | 15 | //calculuation for the pagination |
16 | - if(!isset($_GET['limit'])) |
|
16 | + if (!isset($_GET['limit'])) |
|
17 | 17 | { |
18 | 18 | $limit_start = 0; |
19 | 19 | $limit_end = 25; |
@@ -34,24 +34,24 @@ discard block |
||
34 | 34 | |
35 | 35 | $page_url = $globalURL.'/pilot/'.$_GET['pilot']; |
36 | 36 | |
37 | - $pilot = filter_input(INPUT_GET,'pilot',FILTER_SANITIZE_STRING); |
|
38 | - $sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING); |
|
37 | + $pilot = filter_input(INPUT_GET, 'pilot', FILTER_SANITIZE_STRING); |
|
38 | + $sort = filter_input(INPUT_GET, 'sort', FILTER_SANITIZE_STRING); |
|
39 | 39 | if ($sort != '') |
40 | 40 | { |
41 | - $spotter_array = $Spotter->getSpotterDataByPilot($pilot,$limit_start.",".$absolute_difference, $sort); |
|
41 | + $spotter_array = $Spotter->getSpotterDataByPilot($pilot, $limit_start.",".$absolute_difference, $sort); |
|
42 | 42 | if (empty($spotter_array)) { |
43 | - $spotter_array = $SpotterArchive->getSpotterDataByPilot($pilot,$limit_start.",".$absolute_difference, $sort); |
|
43 | + $spotter_array = $SpotterArchive->getSpotterDataByPilot($pilot, $limit_start.",".$absolute_difference, $sort); |
|
44 | 44 | } |
45 | 45 | } else { |
46 | - $spotter_array = $Spotter->getSpotterDataByPilot($pilot,$limit_start.",".$absolute_difference); |
|
46 | + $spotter_array = $Spotter->getSpotterDataByPilot($pilot, $limit_start.",".$absolute_difference); |
|
47 | 47 | if (empty($spotter_array)) { |
48 | - $spotter_array = $SpotterArchive->getSpotterDataByPilot($pilot,$limit_start.",".$absolute_difference); |
|
48 | + $spotter_array = $SpotterArchive->getSpotterDataByPilot($pilot, $limit_start.",".$absolute_difference); |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 | |
52 | 52 | if (!empty($spotter_array)) |
53 | 53 | { |
54 | - $title = sprintf(_("Detailed View for %s"),$spotter_array[0]['pilot_name']); |
|
54 | + $title = sprintf(_("Detailed View for %s"), $spotter_array[0]['pilot_name']); |
|
55 | 55 | $ident = $spotter_array[0]['ident']; |
56 | 56 | if (isset($spotter_array[0]['latitude'])) $latitude = $spotter_array[0]['latitude']; |
57 | 57 | if (isset($spotter_array[0]['longitude'])) $longitude = $spotter_array[0]['longitude']; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | include('owner-sub-menu.php'); |
114 | 114 | print '<div class="table column">'; |
115 | - print '<p>'.sprintf(_("The table below shows the detailed information of all flights with the pilot <strong>%s</strong>."),$spotter_array[0]['pilot_name']).'</p>'; |
|
115 | + print '<p>'.sprintf(_("The table below shows the detailed information of all flights with the pilot <strong>%s</strong>."), $spotter_array[0]['pilot_name']).'</p>'; |
|
116 | 116 | |
117 | 117 | include('table-output.php'); |
118 | 118 | print '<div class="pagination">'; |