if (isset($spotter_array[0]['airline_name'])) { $title .= ' - ' . $spotter_array[0]['airline_name']; } if (isset($spotter_array[0]['aircraft_name']) && $spotter_array[0]['aircraft_name'] != 'Not Available') { $title .= ' - ' . $spotter_array[0]['aircraft_name'] . ' (' . $spotter_array[0]['aircraft_type'] . ')'; } if (isset($spotter_array[0]['registration']) && $spotter_array[0]['registration'] != 'NA' && $spotter_array[0]['registration'] != 'N/A') { $title .= ' - ' . $spotter_array[0]['registration']; } //$facebook_meta_image = $spotter_array[0]['image']; require 'header.php'; if (isset($globalArchive) && $globalArchive) { // Requirement for altitude graph print '<script type="text/javascript" src="https://www.google.com/jsapi"></script>'; //$all_data = SpotterLive::getAltitudeLiveSpotterDataByIdent($_GET['ident']); $all_data = $SpotterArchive->getAltitudeArchiveSpotterDataById($spotter_array[0]['flightaware_id']); if (isset($globalTimezone)) { date_default_timezone_set($globalTimezone); } else { date_default_timezone_set('UTC'); } if (count($all_data) > 0) { print '<div id="chart6" class="chart" width="100%"></div> <script> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart6); function drawChart6() { var data = google.visualization.arrayToDataTable([ ["Hour","Altitude"], '; $altitude_data = ''; foreach ($all_data as $data) {