@@ -23,12 +23,12 @@ discard block |
||
| 23 | 23 | require_once('header.php'); |
| 24 | 24 | |
| 25 | 25 | //calculuation for the pagination |
| 26 | -if(!isset($_GET['limit'])) |
|
| 26 | +if (!isset($_GET['limit'])) |
|
| 27 | 27 | { |
| 28 | 28 | $limit_start = 0; |
| 29 | 29 | $limit_end = 25; |
| 30 | 30 | $absolute_difference = 25; |
| 31 | -} else { |
|
| 31 | +} else { |
|
| 32 | 32 | $limit_explode = explode(",", $_GET['limit']); |
| 33 | 33 | $limit_start = $limit_explode[0]; |
| 34 | 34 | $limit_end = $limit_explode[1]; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | elseif ($type == 'tracker') print '<p>'._("The table below shows the detailed information of all recent trackers.").'</p>'; |
| 52 | 52 | else print '<p>'._("The table below shows the detailed information of all recent flights.").'</p>'; |
| 53 | 53 | |
| 54 | -$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING); |
|
| 54 | +$sort = filter_input(INPUT_GET, 'sort', FILTER_SANITIZE_STRING); |
|
| 55 | 55 | $sql_begin = microtime(true); |
| 56 | 56 | if ($type == 'marine') { |
| 57 | 57 | $spotter_array = $Marine->getLatestMarineData($limit_start.",".$absolute_difference, $sort); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | } else { |
| 61 | 61 | $spotter_array = $Spotter->getLatestSpotterData($limit_start.",".$absolute_difference, $sort); |
| 62 | 62 | } |
| 63 | -$sql_time = microtime(true)-$sql_begin; |
|
| 63 | +$sql_time = microtime(true) - $sql_begin; |
|
| 64 | 64 | $page_begin = microtime(true); |
| 65 | 65 | if (!empty($spotter_array)) |
| 66 | 66 | { |
@@ -77,6 +77,6 @@ discard block |
||
| 77 | 77 | print '</div>'; |
| 78 | 78 | print '</div>'; |
| 79 | 79 | } |
| 80 | -$page_time = microtime(true)-$page_begin; |
|
| 80 | +$page_time = microtime(true) - $page_begin; |
|
| 81 | 81 | require_once('footer.php'); |
| 82 | 82 | ?> |
| 83 | 83 | \ No newline at end of file |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $limit_start = 0; |
| 29 | 29 | $limit_end = 25; |
| 30 | 30 | $absolute_difference = 25; |
| 31 | -} else { |
|
| 31 | +} else { |
|
| 32 | 32 | $limit_explode = explode(",", $_GET['limit']); |
| 33 | 33 | $limit_start = $limit_explode[0]; |
| 34 | 34 | $limit_end = $limit_explode[1]; |
@@ -47,9 +47,13 @@ discard block |
||
| 47 | 47 | print '<h1>'._("Latest Activity").'</h1>'; |
| 48 | 48 | print '</div>'; |
| 49 | 49 | print '<div class="table column">'; |
| 50 | -if ($type == 'marine') print '<p>'._("The table below shows the detailed information of all recent vessels.").'</p>'; |
|
| 51 | -elseif ($type == 'tracker') print '<p>'._("The table below shows the detailed information of all recent trackers.").'</p>'; |
|
| 52 | -else print '<p>'._("The table below shows the detailed information of all recent flights.").'</p>'; |
|
| 50 | +if ($type == 'marine') { |
|
| 51 | + print '<p>'._("The table below shows the detailed information of all recent vessels.").'</p>'; |
|
| 52 | +} elseif ($type == 'tracker') { |
|
| 53 | + print '<p>'._("The table below shows the detailed information of all recent trackers.").'</p>'; |
|
| 54 | +} else { |
|
| 55 | + print '<p>'._("The table below shows the detailed information of all recent flights.").'</p>'; |
|
| 56 | +} |
|
| 53 | 57 | |
| 54 | 58 | $sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING); |
| 55 | 59 | $sql_begin = microtime(true); |