Example #1
0
                 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 {
                     $AVE_Rubric->rubricTemplateSave($Rtemplate, $Htemplate, $Ttemplate, $Atemplate);
                 }
                 break;
         }
     }
     break;
 case 'delete':
     if (check_permission_acp('rubric_del')) {
         $AVE_Rubric->rubricDelete();
     }
     break;
 case 'multi':
     if (check_permission_acp('rubric_multi')) {
         switch ($_REQUEST['sub']) {
             case 'save':
                 $AVE_Rubric->rubricCopy();
Example #2
0
         switch ($_REQUEST['sub']) {
             case '':
                 $AVE_Rubric->rubricTemplateShow();
                 break;
             case 'save':
                 $Rtemplate = $_POST['rubric_template'];
                 $check_code = strtolower($Rtemplate);
                 $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 {
                     $AVE_Rubric->rubricTemplateSave($_POST['rubric_template']);
                 }
                 break;
         }
     }
     break;
 case 'delete':
     if (check_permission_acp('rubric_del')) {
         $AVE_Rubric->rubricDelete();
     }
     break;
 case 'multi':
     if (check_permission_acp('rubric_multi')) {
         switch ($_REQUEST['sub']) {
             case 'save':
                 $AVE_Rubric->rubricCopy();