function spa_render_forums_panel($formid)
{
    ?>
	<div class="clearboth"></div>

	<div class="wrap sfatag">
		<?php 
    spa_render_sidemenu();
    ?>
		<div id='sfmsgspot'></div>
		<div id="sfmaincontainer">
			<?php 
    spa_render_forums_container($formid);
    ?>
		</div>
			<div class="clearboth"></div>
	</div>
<?php 
}
}
include_once SF_PLUGIN_DIR . '/admin/panel-forums/spa-forums-display.php';
include_once SF_PLUGIN_DIR . '/admin/panel-forums/support/spa-forums-prepare.php';
include_once SF_PLUGIN_DIR . '/admin/panel-forums/support/spa-forums-save.php';
include_once SF_PLUGIN_DIR . '/admin/library/spa-tab-support.php';
global $adminhelpfile;
$adminhelpfile = 'admin-forums';
# --------------------------------------------------------------------
# ----------------------------------
# Check Whether User Can Manage Forums
if (!sp_current_user_can('SPF Manage Forums')) {
    spa_etext('Access denied - you do not have permission');
    die;
}
if (isset($_GET['loadform'])) {
    spa_render_forums_container($_GET['loadform']);
    die;
}
if (isset($_GET['saveform'])) {
    if ($_GET['saveform'] == 'creategroup') {
        echo spa_save_forums_create_group();
        die;
    }
    if ($_GET['saveform'] == 'createforum') {
        echo spa_save_forums_create_forum();
        die;
    }
    if ($_GET['saveform'] == 'globalperm') {
        echo spa_save_forums_global_perm();
        die;
    }