function spa_render_admins_panel($formid) { ?> <div class="clearboth"></div> <div class="wrap sfatag"> <?php spa_render_sidemenu(); ?> <div id='sfmsgspot'></div> <div id="sfmaincontainer"> <?php spa_render_admins_container($formid); ?> </div> <div class="clearboth"></div> </div> <?php }
include_once SF_PLUGIN_DIR . '/admin/panel-admins/support/spa-admins-prepare.php'; include_once SF_PLUGIN_DIR . '/admin/panel-admins/support/spa-admins-save.php'; include_once SF_PLUGIN_DIR . '/admin/library/spa-tab-support.php'; global $adminhelpfile; $adminhelpfile = 'admin-admins'; # -------------------------------------------------------------------- # ---------------------------------- # Check Whether User Can Manage Options global $spThisUser; $modchk = ($spThisUser->admin || $spThisUser->moderator) && (isset($_GET['saveform']) && $_GET['saveform'] == 'youradmin' || isset($_GET['loadform']) && $_GET['loadform'] == 'youradmin'); if (!sp_current_user_can('SPF Manage Admins') && !$modchk) { spa_etext('Access denied - you do not have permission'); die; } if (isset($_GET['loadform'])) { spa_render_admins_container($_GET['loadform']); die; } if (isset($_GET['saveform'])) { if ($_GET['saveform'] == 'youradmin') { echo spa_save_admins_your_options_data(); die; } if ($_GET['saveform'] == 'globaladmin') { echo spa_save_admins_global_options_data(); die; } if ($_GET['saveform'] == 'manageadmin') { echo spa_save_admins_caps_data(); die; }