$legend = leoHtml::img("icon_cat_" . $flight->cat . ".png", 0, 0, 'absmiddle', '', 'icons1') . " " . _PILOT . ": <a href=\"javascript:pilotTip.newTip('inline', 60, 19, 'pilot_pos', 200, '" . $flight->userServerID . "_" . $flight->userID . "','" . addslashes(prepare_for_js($flight->userName)) . "' )\" onmouseout=\"pilotTip.hide()\">" . $flight->userName . "</a> " . _DATE_SORT . ": " . formatDate($flight->DATE); $Ltemplate->assign_vars(array('legend' => $legend, 'legendRight' => $legendRight)); if (!$flight->active && mktime() - datetime2UnixTimestamp($flight->dateAdded) > 5) { // 5 secs $flight->activateFlight(); } else { if (!$flight->active) { open_tr(); echo "<TD align=center>" . _FLIGHT_WILL_BE_ACTIVATED_SOON . "<a href=''>" . _TRY_AGAIN . "</a></td>"; close_tr(); close_inner_table(); return; } } if ($_REQUEST['updateMap']) { $flight->getMapFromServer(); } // if ($_REQUEST['updateMap3d']) $flight->getMapFromServer(1); if ($_REQUEST['updateCharts']) { $flight->updateCharts(1); } if ($_REQUEST['updateData']) { $flight->getFlightFromIGC($flight->getIGCFilename()); $flight->updateTakeoffLanding(); $flight->createEncodedPolyline(1); $flight->makeJSON(1); $flight->putFlightToDB(1); // 1== UPDATE } $flight->checkDirs(); //Added 27.11.2011 for localhost installations P.Wild
'legendRight'=>$legendRight, )); if (!$flight->active && (mktime() - datetime2UnixTimestamp($flight->dateAdded) > 5 ) ) { // 5 secs $flight->activateFlight(); } else if (!$flight->active) { open_tr(); echo "<TD align=center>"._FLIGHT_WILL_BE_ACTIVATED_SOON."<a href=''>"._TRY_AGAIN."</a></td>"; close_tr(); close_inner_table(); return; } if ($_REQUEST['updateMap']) $flight->getMapFromServer(); // if ($_REQUEST['updateMap3d']) $flight->getMapFromServer(1); if ($_REQUEST['updateCharts']) $flight->updateCharts(1); if ($_REQUEST['updateData']) { $flight->getFlightFromIGC( $flight->getIGCFilename() ); $flight->updateTakeoffLanding(); $flight->createEncodedPolyline(1); $flight->makeJSON(1); $flight->putFlightToDB(1); // 1== UPDATE } $flight->checkDirs(); //Added 27.11.2011 for localhost installations P.Wild $flight->updateAll(0); //echo "START<br>"; $location=formatLocation(getWaypointName($flight->takeoffID),$flight->takeoffVinicity,$takeoffRadious);