<?php
/************************************************************************/
/* Maximus CMS: Web Portal System                                       */
/* ==============================                                       */
/*                                                                      */
/* Copyright (c) 2002 - 2006                                            */
/* http://www.php-maximus.fr                                            */
/* dev@php-maximus.org                                                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Based on PHP-NUKE: Web Portal System                                 */
/************************************************************************/
if (!defined('ADMIN_ALLOW') && !defined('ADMIN_MAX')) {
	die ("Access Denied");
}
global $admin_file;
$aid = substr("$aid", 0,25);
$row = $GLOBALS['db']->sql_fetchrow($GLOBALS['db']->sql_query("SELECT `radminsuper` FROM `".TABLE_AUTHORS."` WHERE `aid`='$aid'"));
$acces = $GLOBALS['db']->XMFbin($row['radminsuper']);

if ($acces == 1) {

get_adminlang("modules");

if($admintest && $adminsecu)  {
switch ($op){

case 'moduledeinstall':include_once('admin/modules/modules/moduledeinstall.php');break;
case 'moduleinstall':include_once('admin/modules/modules/moduleinstall.php');break;
case 'modules':include_once('admin/modules/modules/modules.php');break;
case 'module_status':include_once('admin/modules/modules/module_status.php');break;
case 'module_edit':include_once('admin/modules/modules/module_edit.php');break;
case 'module_edit_save':include_once('admin/modules/modules/module_edit_save.php');break;
case 'home_module':include_once('admin/modules/modules/home_modules.php');break;

}
}
} else {
	echo "Access Denied";
}