Ejemplo n.º 1
0
if (!defined('ACP')) {
    header('Location:index.php');
    exit;
}
require BASE_DIR . '/class/class.rubs.php';
$AVE_Rubric = new AVE_Rubric();
$AVE_Template->config_load(BASE_DIR . '/admin/lang/' . $_SESSION['admin_language'] . '/rubs.txt', 'rubs');
switch ($_REQUEST['action']) {
    case '':
        if (check_permission_acp('rubrics')) {
            switch ($_REQUEST['sub']) {
                case 'quicksave':
                    $AVE_Rubric->quickSave();
                    break;
            }
            $AVE_Rubric->rubricList();
            $AVE_Template->assign('templates', get_all_templates());
        }
        $AVE_Template->assign('content', $AVE_Template->fetch('rubs/rubs.tpl'));
        break;
    case 'new':
        if (check_permission_acp('rubric_new')) {
            $AVE_Rubric->rubricNew();
        }
        break;
    case 'template':
        if (check_permission_acp('rubric_edit')) {
            switch ($_REQUEST['sub']) {
                case '':
                    $AVE_Rubric->rubricTemplateShow();
                    break;