Jump to content

New Pilots | Recent Pireps


Flightguy123

Recommended Posts

  • Administrators

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}

Link to comment
Share on other sites

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...