Hi, I was wondering if anyone happens to know how I can limit the new pilots area for a certain airline… IE I have AAVirtual.net, it shows both AAL and EGF pilots, would it be possible just to show pireps from EGF or pilots from EGF?
Ada
Hi, I was wondering if anyone happens to know how I can limit the new pilots area for a certain airline… IE I have AAVirtual.net, it shows both AAL and EGF pilots, would it be possible just to show pireps from EGF or pilots from EGF?
Ada
As long as the user is logged in it would be fairly easy.
Some psuedo code for it
if($Auth::$userdata->code == $schedule->code)
{"show the schedule"}
and for pilots
if($Auth::$userdata->code == $pilot->code)
{"show the pilot info"}
If the user is not logged in they will not see anything as the $userdata variable will be empty. You could add something like this so everything could be seen by visitors, but it would be seen by pilots not logged in as well.
if(!Auth::LoggedIn())
{show all the schedules}
else
{use the above ideas here}