cgentil Posted July 19, 2012 Report Posted July 19, 2012 Is possible to hide all other flight plans and only show flight plans according the pilot current location? Quote
cgentil Posted July 19, 2012 Report Posted July 19, 2012 I've tried some compilation with realschedule lite, to php code detect present pilot location, but without success... Please anyone help me. Many thanks, and regards. Quote
cgentil Posted July 20, 2012 Report Posted July 20, 2012 With this code: <?php foreach($allroutes as $route) { if (Auth::LoggedIn()) { $last = PIREPData::GetLastReports(Auth::$userinfo->pilotid); if($last->arricao != $route->depicao) {continue;} } Is possible to add for determinate a pilot HUB if he don't have any pirep filed, so for he have flights from his HUB (if he don't have any pirep filed)? Quote
Moderators Kyle Posted July 20, 2012 Moderators Report Posted July 20, 2012 With this code: <?php foreach($allroutes as $route) { if (Auth::LoggedIn()) { $last = PIREPData::GetLastReports(Auth::$userinfo->pilotid); if($last->arricao != $route->depicao) {continue;} } Is possible to add for determinate a pilot HUB if he don't have any pirep filed, so for he have flights from his HUB (if he don't have any pirep filed)? You can do this way... <?php foreach($allroutes as $route) { if (Auth::LoggedIn()) { $last = PIREPData::GetLastReports(Auth::$userinfo->pilotid); if(!$last) $last->arricao = Auth::$userinfo->hub; if($last->arricao != $route->depicao) { {continue;} } } Quote
Denver Posted August 22, 2015 Report Posted August 22, 2015 Guys we implemented this but most of the flight are missing! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.