<?php /** * AVE.cms * * @package AVE.cms * @subpackage admin * @filesource */ if (!defined('ACP')) { header('Location:index.php'); exit; } require BASE_DIR . '/class/class.modules.php'; $AVE_Module = new AVE_Module(); $AVE_Template->config_load(BASE_DIR . '/admin/lang/' . $_SESSION['admin_language'] . '/modules.txt', 'modules'); if (!empty($_REQUEST['moduleaction'])) { if (!check_permission('mod_' . $_REQUEST['mod'])) { echo $AVE_Template->get_config_vars('MAIN_NO_PERM_MODULES'); exit; } } if (!empty($_REQUEST['module'])) { $module_path = preg_replace('/[^\\w]/', '', $_REQUEST['module']); if (!empty($module_path)) { define('MODULE_PATH', $module_path); } } switch ($_REQUEST['action']) { case '': if (check_permission_acp('modules')) {