コード例 #1
0
ファイル: common_admin.php プロジェクト: beaver-dev/featherbb
function generate_admin_menu($page = '')
{
    global $lang_admin_common, $feather;
    $is_admin = $feather->user->g_id == FEATHER_ADMIN ? true : false;
    // See if there are any plugins
    $plugins = forum_list_plugins($is_admin);
    $feather->render('admin/menu.php', array('page' => $page, 'is_admin' => $is_admin, 'lang_admin_common' => $lang_admin_common, 'feather_config' => $feather->config, 'feather_user' => $feather->user, 'plugins' => $plugins));
}
コード例 #2
0
function load_admin_nav($section, $page)
{
    global $luna_user, $luna_config, $is_admin;
    // What page are we on?
    if ($page == 'index') {
        $page_title = '<span class="fa fa-fw fa-tachometer"></span> ' . __('Backstage', 'luna');
    } elseif ($page == 'stats') {
        $page_title = '<span class="fa fa-fw fa-info-circle"></span> ' . __('System info', 'luna');
    } elseif ($page == 'update') {
        $page_title = '<span class="fa fa-fw fa-cloud-upload"></span> ' . __('Luna software update', 'luna');
    } elseif ($page == 'about') {
        $page_title = '<span class="fa fa-fw fa-moon-o"></span> ' . __('About Luna', 'luna');
    } elseif ($page == 'board') {
        $page_title = '<span class="fa fa-fw fa-sort-amount-desc"></span> ' . __('Board', 'luna');
    } elseif ($page == 'moderate') {
        $page_title = '<span class="fa fa-fw fa-tasks"></span> ' . __('Moderate', 'luna');
    } elseif ($page == 'censoring') {
        $page_title = '<span class="fa fa-fw fa-eye-slash"></span> ' . __('Censoring', 'luna');
    } elseif ($page == 'reports') {
        $page_title = '<span class="fa fa-fw fa-exclamation-triangle"></span> ' . __('Reports', 'luna');
    } elseif ($page == 'users') {
        $page_title = '<span class="fa fa-fw fa-search"></span> ' . __('Search', 'luna');
    } elseif ($page == 'tools') {
        $page_title = '<span class="fa fa-fw fa-wrench"></span> ' . __('Tools', 'luna');
    } elseif ($page == 'ranks') {
        $page_title = '<span class="fa fa-fw fa-chevron-up"></span> ' . __('Ranks', 'luna');
    } elseif ($page == 'groups') {
        $page_title = '<span class="fa fa-fw fa-group"></span> ' . __('Groups', 'luna');
    } elseif ($page == 'permissions') {
        $page_title = '<span class="fa fa-fw fa-check-circle"></span> ' . __('Permissions', 'luna');
    } elseif ($page == 'bans') {
        $page_title = '<span class="fa fa-fw fa-ban"></span> ' . __('Bans', 'luna');
    } elseif ($page == 'settings') {
        $page_title = '<span class="fa fa-fw fa-cogs"></span> ' . __('Settings', 'luna');
    } elseif ($page == 'features') {
        $page_title = '<span class="fa fa-fw fa-sliders"></span> ' . __('Features', 'luna');
    } elseif ($page == 'appearance') {
        $page_title = '<span class="fa fa-fw fa-eye"></span> ' . __('Appearance', 'luna');
    } elseif ($page == 'registration') {
        $page_title = '<span class="fa fa-fw fa-plus-circle"></span> ' . __('Registration', 'luna');
    } elseif ($page == 'email') {
        $page_title = '<span class="fa fa-fw fa-envelope"></span> ' . __('Email', 'luna');
    } elseif ($page == 'menu') {
        $page_title = '<span class="fa fa-fw fa-bars"></span> ' . __('Menu', 'luna');
    } elseif ($page == 'theme') {
        $page_title = '<span class="fa fa-fw fa-paint-brush"></span> ' . __('Theme', 'luna');
    } elseif ($page == 'maintenance') {
        $page_title = '<span class="fa fa-fw fa-coffee"></span> ' . __('Maintenance', 'luna');
    } elseif ($page == 'prune') {
        $page_title = '<span class="fa fa-fw fa-recycle"></span> ' . __('Prune', 'luna');
    } elseif ($page == 'database') {
        $page_title = '<span class="fa fa-fw fa-database"></span> ' . __('Database management', 'luna');
    } elseif ($page == 'info') {
        $page_title = '<span class="fa fa-fw fa-info-circle"></span> ' . __('Info', 'luna');
    } else {
        $page_title = $page;
    }
    ?>
<nav class="navbar navbar-fixed-top navbar-default" role="navigation">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="../index.php"><span class="fa fa-fw fa-arrow-left hidden-xs"></span><span class="visible-xs-inline"><?php 
    echo $page_title;
    ?>
</span></a>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="<?php 
    if ($section == 'backstage') {
        echo 'active';
    }
    ?>
"><a href="index.php"><span class="fa fa-fw fa-dashboard"></span> <?php 
    _e('Backstage', 'luna');
    ?>
</a></li>
				<?php 
    if ($is_admin) {
        ?>
					<li class="<?php 
        if ($section == 'content') {
            echo 'active';
        }
        ?>
"><a href="board.php"><span class="fa fa-fw fa-file"></span> <?php 
        _e('Content', 'luna');
        ?>
</a></li>
				<?php 
    } else {
        ?>
					<li class="<?php 
        if ($section == 'content') {
            echo 'active';
        }
        ?>
"><a href="reports.php"><span class="fa fa-fw fa-file"></span> <?php 
        _e('Content', 'luna');
        ?>
</a></li>
				<?php 
    }
    ?>
				<li class="<?php 
    if ($section == 'users') {
        echo 'active';
    }
    ?>
"><a href="users.php"><span class="fa fa-fw fa-users"></span> <?php 
    _e('Users', 'luna');
    ?>
</a></li>
				<?php 
    if ($is_admin) {
        ?>
<li class="<?php 
        if ($section == 'settings') {
            echo 'active';
        }
        ?>
"><a href="settings.php"><span class="fa fa-fw fa-cog"></span> <?php 
        _e('Settings', 'luna');
        ?>
</a></li><?php 
    }
    ?>
				<?php 
    if ($is_admin) {
        ?>
<li class="<?php 
        if ($section == 'maintenance') {
            echo 'active';
        }
        ?>
"><a href="maintenance.php"><span class="fa fa-fw fa-coffee"></span> <?php 
        _e('Maintenance', 'luna');
        ?>
</a></li>	<?php 
    }
    // See if there are any plugins
    $plugins = forum_list_plugins($is_admin);
    // Did we find any plugins?
    if (!empty($plugins)) {
        ?>
				<li class="dropdown<?php 
        if ($section == ' extensions') {
            echo 'active';
        }
        ?>
">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						<span class="fa fa-fw fa-cogs"></span> <?php 
        _e('Extensions', 'luna');
        ?>
 <span class="fa fa-fw fa-angle-down">
					</a>
					<ul class="dropdown-menu">
<?php 
        foreach ($plugins as $plugin_name => $plugin) {
            echo "\t\t\t\t\t" . '<li><a href="loader.php?plugin=' . $plugin_name . '">' . str_replace('_', ' ', $plugin) . '</a></li>' . "\n";
        }
        ?>
					</ul>
				</li>
<?php 
    }
    ?>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown usermenu">
					<a href="#" class="dropdown-toggle dropdown-user" data-toggle="dropdown">
						<span class="hidden-sm"><?php 
    print luna_htmlspecialchars($luna_user['username']);
    ?>
 </span><?php 
    echo draw_user_avatar($luna_user['id'], true, 'avatar');
    ?>
 <span class="fa fa-fw fa-angle-down"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="../profile.php?id=<?php 
    echo $luna_user['id'];
    ?>
"><?php 
    _e('Profile', 'luna');
    ?>
</a></li>
						<li><a href="../settings.php?id=<?php 
    echo '' . $luna_user['id'];
    ?>
"><?php 
    _e('Settings', 'luna');
    ?>
</a></li>
						<li class="divider"></li>
						<li><a href="../help.php"><?php 
    _e('Help', 'luna');
    ?>
</a></li>
						<li><a href="http://getluna.org"><?php 
    _e('Support', 'luna');
    ?>
</a></li>
						<li class="divider"></li>
						<li><a href="../login.php?action=out&amp;id=<?php 
    echo '' . $luna_user['id'] . '&amp;csrf_token=' . luna_hash($luna_user['id'] . luna_hash(get_remote_address()));
    ?>
"><?php 
    _e('Logout', 'luna');
    ?>
</a></li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
</nav>
<div class="jumbotron jumboheader">
	<div class="container">
		<div class="row">
			<h2 class="hidden-xs">
				<?php 
    echo $page_title;
    if ($luna_config['o_update_ring'] > 1) {
        echo '<span class="pull-right" style="font-size: 70%;">Core ' . Version::FORUM_CORE_VERSION . '</span>';
    }
    ?>
			</h2>
			<?php 
    if ($section == 'backstage') {
        ?>
			<ul class="nav nav-tabs" role="tablist">
				<li<?php 
        if ($page == 'index') {
            echo ' class="active"';
        }
        ?>
><a href="index.php"><span class="fa fa-fw fa-tachometer"></span><span class="hidden-xs"> <?php 
        _e('Backstage', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'stats') {
            echo ' class="active"';
        }
        ?>
><a href="system.php"><span class="fa fa-fw fa-info-circle"></span><span class="hidden-xs"> <?php 
        _e('System info', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'update') {
            echo ' class="active"';
        }
        ?>
><a href="update.php"><span class="fa fa-fw fa-cloud-upload"></span><span class="hidden-xs"> <?php 
        _e('Update', 'luna');
        ?>
</span></a></li>
				<li class="pull-right<?php 
        if ($page == 'about') {
            echo ' active';
        }
        ?>
"><a href="about.php"><span class="fa fa-fw fa-moon-o"></span><span class="hidden-xs"> <?php 
        _e('About', 'luna');
        ?>
</span></a></li>
			</ul>
			<?php 
    }
    if ($section == 'content') {
        ?>
			<ul class="nav nav-tabs" role="tablist">
				<li<?php 
        if ($page == 'board') {
            echo ' class="active"';
        }
        ?>
><a href="board.php"><span class="fa fa-fw fa-sort-amount-desc"></span><span class="hidden-xs"> <?php 
        _e('Board', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'moderate') {
            echo ' class="active"';
        }
        ?>
><a href="moderate.php"><span class="fa fa-fw fa-tasks"></span><span class="hidden-xs"> <?php 
        _e('Moderate', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'censoring') {
            echo ' class="active"';
        }
        ?>
><a href="censoring.php"><span class="fa fa-fw fa-eye-slash"></span><span class="hidden-xs"> <?php 
        _e('Censoring', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'reports') {
            echo ' class="active"';
        }
        ?>
><a href="reports.php"><span class="fa fa-fw fa-exclamation-triangle"></span><span class="hidden-xs"> <?php 
        _e('Reports', 'luna');
        ?>
</span></a></li>
			</ul>
			<?php 
    }
    if ($section == 'users') {
        ?>
			<ul class="nav nav-tabs" role="tablist">
				<li<?php 
        if ($page == 'users') {
            echo ' class="active"';
        }
        ?>
><a href="users.php"><span class="fa fa-fw fa-search"></span><span class="hidden-xs"> <?php 
        _e('Search', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'tools') {
            echo ' class="active"';
        }
        ?>
><a href="tools.php"><span class="fa fa-fw fa-wrench"></span><span class="hidden-xs"> <?php 
        _e('Tools', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'ranks') {
            echo ' class="active"';
        }
        ?>
><a href="ranks.php"><span class="fa fa-fw fa-chevron-up"></span><span class="hidden-xs"> <?php 
        _e('Ranks', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'groups') {
            echo ' class="active"';
        }
        ?>
><a href="groups.php"><span class="fa fa-fw fa-group"></span><span class="hidden-xs"> <?php 
        _e('Groups', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'permissions') {
            echo ' class="active"';
        }
        ?>
><a href="permissions.php"><span class="fa fa-fw fa-check-circle"></span><span class="hidden-xs"> <?php 
        _e('Permissions', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'bans') {
            echo ' class="active"';
        }
        ?>
><a href="bans.php"><span class="fa fa-fw fa-ban"></span><span class="hidden-xs"> <?php 
        _e('Bans', 'luna');
        ?>
</span></a></li>
			</ul>
			<?php 
    }
    if ($section == 'settings') {
        ?>
			<ul class="nav nav-tabs" role="tablist">
				<li<?php 
        if ($page == 'settings') {
            echo ' class="active"';
        }
        ?>
><a href="settings.php"><span class="fa fa-fw fa-cogs"></span><span class="hidden-xs"> <?php 
        _e('Settings', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'features') {
            echo ' class="active"';
        }
        ?>
><a href="features.php"><span class="fa fa-fw fa-sliders"></span><span class="hidden-xs"> <?php 
        _e('Features', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'appearance') {
            echo ' class="active"';
        }
        ?>
><a href="appearance.php"><span class="fa fa-fw fa-eye"></span><span class="hidden-xs"> <?php 
        _e('Appearance', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'registration') {
            echo ' class="active"';
        }
        ?>
><a href="registration.php"><span class="fa fa-fw fa-plus-circle"></span><span class="hidden-xs"> <?php 
        _e('Registration', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'email') {
            echo ' class="active"';
        }
        ?>
><a href="email.php"><span class="fa fa-fw fa-envelope"></span><span class="hidden-xs"> <?php 
        _e('Email', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'menu') {
            echo ' class="active"';
        }
        ?>
><a href="menu.php"><span class="fa fa-fw fa-bars"></span><span class="hidden-xs"> <?php 
        _e('Menu', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'theme') {
            echo ' class="active"';
        }
        ?>
><a href="theme.php"><span class="fa fa-fw fa-paint-brush"></span><span class="hidden-xs"> <?php 
        _e('Theme', 'luna');
        ?>
</span></a></li>
			</ul>
			<?php 
    }
    if ($section == 'maintenance') {
        ?>
			<ul class="nav nav-tabs" role="tablist">
				<li<?php 
        if ($page == 'maintenance') {
            echo ' class="active"';
        }
        ?>
><a href="maintenance.php"><span class="fa fa-fw fa-coffee"></span><span class="hidden-xs"> <?php 
        _e('Maintenance', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'prune') {
            echo ' class="active"';
        }
        ?>
><a href="prune.php"><span class="fa fa-fw fa-recycle"></span><span class="hidden-xs"> <?php 
        _e('Prune', 'luna');
        ?>
</span></a></li>
				<li<?php 
        if ($page == 'database') {
            echo ' class="active"';
        }
        ?>
><a href="database.php"><span class="fa fa-fw fa-database"></span><span class="hidden-xs"> <?php 
        _e('Database', 'luna');
        ?>
</span></a></li>
			</ul>
			<?php 
    }
    ?>
		</div>
	</div>
</div>
<div class="content">
	<div class="container">
		<div class="row">
<?php 
}
コード例 #3
0
function generate_admin_menu($page = '')
{
    global $panther_config, $panther_user, $lang_admin_common, $admins, $panther_url, $updater;
    $admin_menu = array();
    if ($panther_user['is_admin']) {
        if ($admins[$panther_user['id']]['admin_options'] == '1') {
            $admin_menu[] = array('page' => 'options', 'href' => panther_link($panther_url['admin_options']), 'title' => $lang_admin_common['Options']);
        }
        if ($admins[$panther_user['id']]['admin_archive'] == '1') {
            $admin_menu[] = array('page' => 'archive', 'href' => panther_link($panther_url['admin_archive']), 'title' => $lang_admin_common['Archive']);
        }
        if ($admins[$panther_user['id']]['admin_permissions'] == '1') {
            $admin_menu[] = array('page' => 'permissions', 'href' => panther_link($panther_url['admin_permissions']), 'title' => $lang_admin_common['Permissions']);
        }
        if ($admins[$panther_user['id']]['admin_categories'] == '1') {
            $admin_menu[] = array('page' => 'categories', 'href' => panther_link($panther_url['admin_categories']), 'title' => $lang_admin_common['Categories']);
        }
        if ($admins[$panther_user['id']]['admin_forums'] == '1') {
            $admin_menu[] = array('page' => 'forums', 'href' => panther_link($panther_url['admin_forums']), 'title' => $lang_admin_common['Forums']);
        }
        if ($admins[$panther_user['id']]['admin_groups'] == '1') {
            $admin_menu[] = array('page' => 'groups', 'href' => panther_link($panther_url['admin_groups']), 'title' => $lang_admin_common['User groups']);
        }
        if ($admins[$panther_user['id']]['admin_censoring'] == '1') {
            $admin_menu[] = array('page' => 'censoring', 'href' => panther_link($panther_url['admin_censoring']), 'title' => $lang_admin_common['Censoring']);
        }
        if ($admins[$panther_user['id']]['admin_ranks'] == '1') {
            $admin_menu[] = array('page' => 'ranks', 'href' => panther_link($panther_url['admin_ranks']), 'title' => $lang_admin_common['Ranks']);
        }
        if ($admins[$panther_user['id']]['admin_robots'] == '1') {
            $admin_menu[] = array('page' => 'robots', 'href' => panther_link($panther_url['admin_robots']), 'title' => $lang_admin_common['Robots']);
        }
        if ($admins[$panther_user['id']]['admin_smilies'] == '1' && $panther_config['o_smilies'] == '1') {
            $admin_menu[] = array('page' => 'smilies', 'href' => panther_link($panther_url['admin_smilies']), 'title' => $lang_admin_common['Smilies']);
        }
        if ($admins[$panther_user['id']]['admin_warnings'] == '1' && $panther_config['o_warnings'] == '1') {
            $admin_menu[] = array('page' => 'warnings', 'href' => panther_link($panther_url['admin_warnings']), 'title' => $lang_admin_common['Warnings']);
        }
        if ($admins[$panther_user['id']]['admin_moderate'] == '1') {
            $admin_menu[] = array('page' => 'moderate', 'href' => panther_link($panther_url['admin_moderate']), 'title' => $lang_admin_common['Moderate']);
        }
        if ($admins[$panther_user['id']]['admin_attachments'] == '1' && $panther_config['o_attachments'] == '1') {
            $admin_menu[] = array('page' => 'attachments', 'href' => panther_link($panther_url['admin_attachments']), 'title' => $lang_admin_common['Attachments']);
        }
        if ($admins[$panther_user['id']]['admin_restrictions'] == '1') {
            $admin_menu[] = array('page' => 'restrictions', 'href' => panther_link($panther_url['admin_restrictions']), 'title' => $lang_admin_common['Restrictions']);
        }
        if ($admins[$panther_user['id']]['admin_tasks'] == '1') {
            $admin_menu[] = array('page' => 'tasks', 'href' => panther_link($panther_url['admin_tasks']), 'title' => $lang_admin_common['Tasks']);
        }
        if ($admins[$panther_user['id']]['admin_addons'] == '1') {
            $admin_menu[] = array('page' => 'extensions', 'href' => panther_link($panther_url['admin_addons']), 'title' => $lang_admin_common['Extensions']);
        }
        if ($admins[$panther_user['id']]['admin_maintenance'] == '1') {
            $admin_menu[] = array('page' => 'maintenance', 'href' => panther_link($panther_url['admin_maintenance']), 'title' => $lang_admin_common['Maintenance']);
        }
        if ($admins[$panther_user['id']]['admin_updates'] == '1' && version_compare($panther_config['o_cur_version'], $updater->panther_updates['version'], '<') && $panther_config['o_update_type'] != 0) {
            $admin_menu[] = array('page' => 'updates', 'href' => panther_link($panther_url['admin_updates']), 'title' => $lang_admin_common['Updates']);
        }
    }
    $plugin_menu = array();
    $plugins = forum_list_plugins($panther_user['is_admin']);
    if (!empty($plugins) && $admins[$panther_user['id']]['admin_plugins'] == '1') {
        foreach ($plugins as $plugin_name => $plugin) {
            $plugin_menu[] = array('page' => $plugin_name, 'href' => panther_link($panther_url['admin_loader'], array($plugin_name)), 'title' => str_replace('_', ' ', $plugin));
        }
    }
    $tpl = load_template('admin_sidebar.tpl');
    echo $tpl->render(array('lang_admin_common' => $lang_admin_common, 'panther_user' => $panther_user, 'panther_config' => $panther_config, 'page' => $page, 'ban_link' => panther_link($panther_url['admin_bans']), 'index_link' => panther_link($panther_url['admin_index']), 'users_link' => panther_link($panther_url['admin_users']), 'announce_link' => panther_link($panther_url['admin_announcements']), 'posts_link' => panther_link($panther_url['admin_posts']), 'reports_link' => panther_link($panther_url['admin_reports']), 'deleted_link' => panther_link($panther_url['admin_deleted']), 'admin_menu' => $admin_menu, 'plugin_menu' => $plugin_menu));
}
コード例 #4
0
function generate_admin_menu($page = '')
{
    global $pun_config, $pun_user, $lang_admin_common;
    $is_admin = $pun_user['g_id'] == PUN_ADMIN ? true : false;
    ?>
<div id="adminconsole" class="block2col">
	<div id="adminmenu" class="blockmenu">
		<h2><span><?php 
    echo $lang_admin_common['Moderator menu'];
    ?>
</span></h2>
		<div class="box">
			<div class="inbox">
				<ul>
					<li<?php 
    if ($page == 'index') {
        echo ' class="isactive"';
    }
    ?>
><a href="admin_index.php"><?php 
    echo $lang_admin_common['Index'];
    ?>
</a></li>
					<li<?php 
    if ($page == 'users') {
        echo ' class="isactive"';
    }
    ?>
><a href="admin_users.php"><?php 
    echo $lang_admin_common['Users'];
    ?>
</a></li>
<?php 
    if ($is_admin || $pun_user['g_mod_ban_users'] == '1') {
        ?>
					<li<?php 
        if ($page == 'bans') {
            echo ' class="isactive"';
        }
        ?>
><a href="admin_bans.php"><?php 
        echo $lang_admin_common['Bans'];
        ?>
</a></li>
<?php 
    }
    if ($is_admin || $pun_config['o_report_method'] == '0' || $pun_config['o_report_method'] == '2') {
        ?>
					<li<?php 
        if ($page == 'reports') {
            echo ' class="isactive"';
        }
        ?>
><a href="admin_reports.php"><?php 
        echo $lang_admin_common['Reports'];
        ?>
</a></li>
<?php 
    }
    ?>
				</ul>
			</div>
		</div>
<?php 
    if ($is_admin) {
        ?>
		<h2 class="block2"><span><?php 
        echo $lang_admin_common['Admin menu'];
        ?>
</span></h2>
		<div class="box">
			<div class="inbox">
				<ul>
					<li<?php 
        if ($page == 'options') {
            echo ' class="isactive"';
        }
        ?>
><a href="admin_options.php"><?php 
        echo $lang_admin_common['Options'];
        ?>
</a></li>
					<li<?php 
        if ($page == 'permissions') {
            echo ' class="isactive"';
        }
        ?>
><a href="admin_permissions.php"><?php 
        echo $lang_admin_common['Permissions'];
        ?>
</a></li>
					<li<?php 
        if ($page == 'categories') {
            echo ' class="isactive"';
        }
        ?>
><a href="admin_categories.php"><?php 
        echo $lang_admin_common['Categories'];
        ?>
</a></li>
					<li<?php 
        if ($page == 'forums') {
            echo ' class="isactive"';
        }
        ?>
><a href="admin_forums.php"><?php 
        echo $lang_admin_common['Forums'];
        ?>
</a></li>
					<li<?php 
        if ($page == 'groups') {
            echo ' class="isactive"';
        }
        ?>
><a href="admin_groups.php"><?php 
        echo $lang_admin_common['User groups'];
        ?>
</a></li>
					<li<?php 
        if ($page == 'censoring') {
            echo ' class="isactive"';
        }
        ?>
><a href="admin_censoring.php"><?php 
        echo $lang_admin_common['Censoring'];
        ?>
</a></li>
					<li<?php 
        if ($page == 'maintenance') {
            echo ' class="isactive"';
        }
        ?>
><a href="admin_maintenance.php"><?php 
        echo $lang_admin_common['Maintenance'];
        ?>
</a></li>
				</ul>
			</div>
		</div>
<?php 
    }
    // See if there are any plugins
    $plugins = forum_list_plugins($is_admin);
    // Did we find any plugins?
    if (!empty($plugins)) {
        ?>
		<h2 class="block2"><span><?php 
        echo $lang_admin_common['Plugins menu'];
        ?>
</span></h2>
		<div class="box">
			<div class="inbox">
				<ul>
<?php 
        foreach ($plugins as $plugin_name => $plugin) {
            echo "\t\t\t\t\t" . '<li' . ($page == $plugin_name ? ' class="isactive"' : '') . '><a href="admin_loader.php?plugin=' . $plugin_name . '">' . str_replace('_', ' ', $plugin) . '</a></li>' . "\n";
        }
        ?>
				</ul>
			</div>
		</div>
<?php 
    }
    ?>
	</div>

<?php 
}