Beispiel #1
0
         }
         $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;
             case 'save':
                 $Rtemplate = $_POST['rubric_template'];
                 $Htemplate = $_POST['rubric_header_template'];
                 $Ttemplate = $_POST['rubric_teaser_template'];
                 $Atemplate = $_POST['rubric_admin_teaser_template'];
                 $check_code = strtolower($Rtemplate . $Htemplate . $Ttemplate . $Atemplate);
                 $ok = true;
                 if (is_php_code($check_code) && !check_permission('rubric_php')) {
                     $AVE_Template->assign('php_forbidden', 1);
                     $ok = false;
                 }
                 if (!$ok) {
                     $AVE_Rubric->rubricTemplateShow(1);
                 } else {
Beispiel #2
0
require BASE_DIR . "/class/class.docs.php";
require BASE_DIR . "/class/class.rubs.php";
$AVE_Request = new AVE_Request();
$AVE_Document = new AVE_Document();
$AVE_Rubric = new AVE_Rubric();
$AVE_Rubric->rubricPermissionFetch();
$AVE_Template->config_load(BASE_DIR . "/admin/lang/" . $_SESSION['admin_language'] . "/request.txt", 'request');
switch ($_REQUEST['action']) {
    case '':
        if (check_permission_acp('request')) {
            $AVE_Request->requestListShow();
        }
        break;
    case 'edit':
        if (check_permission_acp('request')) {
            $AVE_Rubric->rubricTemplateShow(0, 1);
            $AVE_Request->requestEdit((int) $_REQUEST['Id']);
        }
        break;
    case 'copy':
        if (check_permission_acp('request')) {
            $AVE_Request->requestCopy((int) $_REQUEST['Id']);
        }
        break;
    case 'new':
        if (check_permission_acp('request_new')) {
            $AVE_Rubric->rubricTemplateShow(0, 1);
            $AVE_Request->requestNew();
        }
        break;
    case 'delete_query':