Jump to content

Recommended Posts

Posted

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

  • Administrators
Posted

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}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...