Location: PHPKode > projects > Enigma > Enigma2/Enigma2_Install/modules/ModuleControls.php
<?php
/*
*****************************************************************

 ModuleControls.php
 
*****************************************************************
LSP: Lunabyte Systems Portal
Open-Source Project Inspired by Zef Hemel (hide@address.com)
*****************************************************************
Software Version:                  LSP 2.0 "Enigma 2"
Software by:                         Lunabyte Systems (http://www.lunabyte.net)
Copyright 2002-2005 by:       Lunabyte Systems (http://www.lunabyte.net)
Support, News, Updates at:    http://www.lunabyte.net
*****************************************************************
This program is free software; you may redistribute it and/or modify it 
under the terms of the provided license as published by Lunabyte Systems.

This program is distributed in the hope that it is and will be useful,                  
but WITHOUT ANY WARRANTIES; without even any implied warranty of           
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                        

See the "LSP_license.txt" file for details of the LSP license.
The latest version can always be found at http://www.lunabyte.net.
*****************************************************************
*/

if (!defined('ENIGMA'))
{
	die('<b>Access Violation</b><br />Direct Access to this location is not allowed.');
}

loadMLanguage('ModuleControls');

$modulesHeadingAllowed = array('admin_forum', 'manage_downloads', 'manage_guestbook', 'manage_quotes', 'manage_faqs', 'manage_links','manage_polls');

if (allowedTo($modulesHeadingAllowed))
{
	$portaladmin_areas['modulecontrol'] = array(
		'title' => $txt['ModuleIndex'],
		'areas' => array()
	);
}
if (allowedTo('manage_downloads'))
	$portaladmin_areas['modulecontrol']['areas']['Downloads_Management'] = '<a href="' . $scripturl . '?module=DownloadsManagement">' . $txt['Downloads_Management'] . '</a>';
if (allowedTo('manage_guestbook'))
	$portaladmin_areas['modulecontrol']['areas']['GuestBook_Management'] = '<a href="' . $scripturl . '?module=Guestbook;sa=Admin">' . $txt['GuestBook_Management'] . '</a>';
if (allowedTo('manage_quotes'))
	$portaladmin_areas['modulecontrol']['areas']['Quotes_Management'] = '<a href="' . $scripturl . '?module=QuotesManagement">' . $txt['Quotes_Management'] . '</a>';
if (allowedTo('manage_faqs'))
	$portaladmin_areas['modulecontrol']['areas']['Faq_Management'] = '<a href="' . $scripturl . '?module=FaqManagement">' . $txt['Faq_Management'] . '</a>';
if (allowedTo('manage_links'))
	$portaladmin_areas['modulecontrol']['areas']['Links_Management'] = '<a href="' . $scripturl . '?module=LinksManagement">' . $txt['Links_Management'] . '</a>';
if (allowedTo('manage_polls'))
	$portaladmin_areas['modulecontrol']['areas']['Polls_Management'] = '<a href="' . $scripturl . '?module=PollsManagement">' . $txt['Polls_Management'] . '</a>';

?>
Return current item: Enigma