# New Pilots | Recent Pireps

**URL:** <https://forum.phpvms.net/t/new-pilots-recent-pireps/3663>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [November 15, 2010, 4:54am UTC](https://forum.phpvms.net/t/new-pilots-recent-pireps/3663 "2010-11-15T04:54:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flightguy123](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@Flightguy123](https://forum.phpvms.net/u/Flightguy123)\
**Post date:** [November 15, 2010, 4:54am UTC](https://forum.phpvms.net/t/new-pilots-recent-pireps/3663/1 "2010-11-15T04:54:24Z")

</div>

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](http://AAVirtual.net), it shows both AAL and EGF pilots, would it be possible just to show pireps from EGF or pilots from EGF?

Ada

---

<div class="post-metadata">

**Author:** ![simpilot](https://forum.phpvms.net/user_avatar/forum.phpvms.net/simpilot/32/26_2.png) [@simpilot](https://forum.phpvms.net/u/simpilot)\
**Post date:** [November 15, 2010, 10:03pm UTC](https://forum.phpvms.net/t/new-pilots-recent-pireps/3663/2 "2010-11-15T22:03:50Z")

</div>

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}

```
