Ejemplo n.º 1
0
function spa_render_users_panel($formid)
{
    ?>
	<div class="clearboth"></div>

	<div class="wrap sfatag">
		<?php 
    spa_render_sidemenu();
    ?>
		<div id='sfmsgspot'></div>
		<div id="sfmaincontainer">
			<?php 
    spa_render_users_container($formid);
    ?>
		</div>
			<div class="clearboth"></div>
	</div>
<?php 
}
*/
if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) {
    die('Access denied - you cannot directly call this file');
}
spa_admin_ahah_support();
global $spStatus;
if ($spStatus != 'ok') {
    echo $spStatus;
    die;
}
include_once SF_PLUGIN_DIR . '/admin/panel-users/spa-users-display.php';
include_once SF_PLUGIN_DIR . '/admin/panel-users/support/spa-users-prepare.php';
include_once SF_PLUGIN_DIR . '/admin/panel-users/support/spa-users-save.php';
include_once SF_PLUGIN_DIR . '/admin/library/spa-tab-support.php';
global $adminhelpfile;
$adminhelpfile = 'admin-users';
# --------------------------------------------------------------------
# ----------------------------------
# Check Whether User Can Manage Users
if (!sp_current_user_can('SPF Manage Users')) {
    spa_etext('Access denied - you do not have permission');
    die;
}
if (isset($_GET['loadform'])) {
    spa_render_users_container($_GET['loadform']);
    die;
}
if (isset($_GET['saveform'])) {
    die;
}
die;