Flightguy123 Posted November 15, 2010 Report Posted November 15, 2010 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 Quote
Administrators simpilot Posted November 15, 2010 Administrators Report Posted November 15, 2010 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} 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.