Jump to content

Recommended Posts

Posted

<li style="padding: 0; margin: 0;"><a class="menu" href="#">
<img src="<?php echo  SITE_URL?>/admin/lib/layout/images/pilots_icon.png" />Pilots & Groups</a>
<ul style="padding: 0; margin: 0;">
	<?php
	if(PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_REGISTRATIONS)) 
	{
	?>
	<li><a href="<?php echo adminurl('/pilotadmin/pendingpilots');?>">Pending Registrations</a></li>
	<?php
	}
	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_PILOTS)) 
	{
	?>
	<li><a href="<?php echo adminurl('/pilotadmin/viewpilots');?>">View All Pilots</a></li>
	<?php
   	        }
	if(PilotGroups::group_has_perm(Auth::$usergroups, FULL_ADMIN)) 
	{
	?>
	<li><a href="<?php echo adminurl('/PilotLogins/');?>">View All Pilot Logins</a></li>
	<?php 
	}
	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_GROUPS)) 
	{
	?>
	<li><a href="<?php echo adminurl('/pilotadmin/pilotgroups');?>">Pilot Groups</a></li>
	<?php 
	}
	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_RANKS)) 
	{
	?>
	<li><a href="<?php echo adminurl('/pilotranking/pilotranks');?>">Pilot Ranks</a></li>
	<?php 
	}
	if(PilotGroups::group_has_perm(Auth::$usergroups, EMAIL_PILOTS)) 
	{
	?>
	<li><a href="<?php echo adminurl('/massmailer'); ?>">Email all Pilots</a></li>
	<?php 
	}
	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_AWARDS)) 
	{
	?>
	<li><a href="<?php echo adminurl('/pilotranking/awards'); ?>">Awards</a></li>
	<?php 
	}
	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_TYPERATING)) 
	{
	?>
	<li><a href="<?php echo adminurl('/pilotranking/awards'); ?>">Typerating</a></li>
	<?php 
	}
	if(PilotGroups::group_has_perm(Auth::$usergroups, FULL_ADMIN)) 
	{
	?>
		<li><a href="<?php echo adminurl('/maintenance/changepilotid'); ?>">Change a Pilot's ID</a></li>
	<?php 
	}
	if(PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_PIREPS)) 
	{
	?>
	<li><a href="<?php echo adminurl('/pilotadmin/viewbids'); ?>">View Bids</a></li>
	<?php 
	}
	?>
	<li></li>
</ul>
</li>

You're going to use this one:

<?php 
	}
	if(PilotGroups::group_has_perm(Auth::$usergroups, FULL_ADMIN)) 
	{
	?>
		<li><a href="<?php echo adminurl('/maintenance/changepilotid'); ?>">Change a Pilot's ID</a></li>

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