Posted 2022-04-17 16:30 by azri.
Flights Page: Added plot2.tpl so that when clicking the flight link, no markers can be seen
Notes:
$dbh = $common->pdoOpen();
$sql = "SELECT id, icao, firstSeen FROM ".$settings::db_prefix."aircraft WHERE id = :id";
$sth = $dbh->prepare($sql);
$sth->bindParam(':id', $position['aircraft'], PDO::PARAM_INT);
$sth->execute();
$aircraft = $sth->fetch();
$sth = NULL;
$dbh = NULL;
$flightData['flId'] = $flight['id'];
$flightData['acId'] = $aircraft['id'];
$flightData['icao'] = $aircraft['icao'];
$flightData['flight'] = $flight['flight'];