require_once dirname(__FILE__) . "/FN_functions.php"; require_once dirname(__FILE__) . "/FN_waypoint.php"; require_once dirname(__FILE__) . "/FN_output.php"; require_once dirname(__FILE__) . "/FN_pilot.php"; // setDEBUGfromGET(); $flightID = makeSane($_GET['id'], 1); if ($flightID <= 0) { exit; } $flight = new flight(); $flight->getFlightFromDB($flightID, 0); $flight->makeJSON(0); // no force // we dont use png files any more //$flight->updateCharts(0,1); // no force update, raw charts if ($flight->is3D() && is_file($flight->getChartfilename("alt", $PREFS->metricSystem, 1))) { $chart1 = $flight->getChartRelPath("alt", $PREFS->metricSystem, 1); $title1 = _Altitude . ' (' . ($PREFS->metricSystem == 1 ? _M : _FT) . ')'; } else { if (is_file($flight->getChartfilename("takeoff_distance", $PREFS->metricSystem, 1))) { $chart1 = $flight->getChartRelPath("takeoff_distance", $PREFS->metricSystem, 1); $title1 = _Distance_from_takeoff . ' (' . ($PREFS->metricSystem == 1 ? _KM_PER_HR : _MPH) . ')'; } } $hlines = $flight->getRawHeader(); foreach ($hlines as $line) { if (strlen($line) == 0) { continue; } eval($line); }
} // always include the comments tab $mapImg.=$commentsHtml; $mapImg.="</div>"; if ($imagesHtml) $mapImg.="<script type='text/javascript' src='$moduleRelPath/js/xns.js'></script>"; $mapImg=$mapImg0.$mapImg; if ($flight->is3D() && is_file($flight->getChartfilename("alt",$PREFS->metricSystem))) $chart1= "<br><br><img src='".$flight->getChartRelPath("alt",$PREFS->metricSystem)."'>"; if ( is_file($flight->getChartfilename("takeoff_distance",$PREFS->metricSystem)) ) $chart2="<br><br><img src='".$flight->getChartRelPath("takeoff_distance",$PREFS->metricSystem)."'>"; if ( is_file($flight->getChartfilename("speed",$PREFS->metricSystem)) ) $chart3="<br><br><img src='".$flight->getChartRelPath("speed",$PREFS->metricSystem)."'>"; if ($flight->is3D() && is_file($flight->getChartfilename("vario",$PREFS->metricSystem))) $chart4="<br><br><img src='".$flight->getChartRelPath("vario",$PREFS->metricSystem)."'>"; $extLinkLanguageStr=""; if ( $CONF['servers']['list'][$flight->serverID]['isLeo'] ) $extLinkLanguageStr="&lng=$currentlang"; $extFlightLegend=_Ext_text1." <i>".$CONF['servers']['list'][$flight->serverID]['name']. "</i>. <a href='".$flight->getOriginalURL().$extLinkLanguageStr."' target='_blank'>"._Ext_text3. leoHtml::img('icon_link.gif',0,0,'',_External_Entry,'icons1 flagIcon')."</a>";