Jump to content

Display login admin's


OzFlyer

Recommended Posts

This will show Admins that are logged onto the website but not necessarily the admin panel

<?php
$shown = array();
$staff = StatsData::UsersOnline();
foreach($staff as $pilot)
{
if(PilotGroups::group_has_perm(PilotGroups::getUserGroups($pilot->pilotid), ACCESS_ADMIN))
{
if(in_array($pilot->pilotid, $shown))
													 continue;
					 else
													 $shown[] = $pilot->pilotid;
?>
<a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname?></a><br />

Link to comment
Share on other sites

Sorry I should have add it is just for other admins to see who is login and doing PIREP's.(Well at least login any way).

So do you know where and which file displays the list of pending PIREP's

Again thank you for all our help.

David.

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