<?php
/*
Simple:Press Forum
Admin ADmins
$LastChangedDate: 2010-03-16 16:28:26 -0700 (Tue, 16 Mar 2010) $
$Rev: 3739 $
*/

if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF']))
{
	echo (__('Access Denied', "sforum"));
	die();
}

# Check Whether User Can Manage Admins
global $sfglobals, $SFSTATUS;

if (!$sfglobals['member']['admin'] && !$sfglobals['member']['moderator'] && !sfc_current_user_can('SPF Manage Admins'))
{
	echo (__('Access Denied', "sforum"));
	die();
}

include_once (SF_PLUGIN_DIR.'/admin/panel-admins/sfa-admins-display.php');
include_once (SF_PLUGIN_DIR.'/admin/panel-admins/support/sfa-admins-prepare.php');
include_once (SF_PLUGIN_DIR.'/admin/library/sfa-tab-support.php');

if($SFSTATUS != 'ok')
{
    include_once (SFINSTALL);
    die();
}

global $adminhelpfile;
$adminhelpfile = 'admin-admins';
# --------------------------------------------------------------------

if(isset($_GET['tab']) ? $tab=$_GET['tab'] : $tab='youradmin');
sfa_header();
sfa_render_admins_panel($tab);
sfa_footer();

?>