Ejemplo n.º 1
0
 private function processModuleSpecificExtensions($objUser)
 {
     // add a category in the digital asset management module
     if (contrexx_isModuleInstalled('Downloads')) {
         $this->processDigitalAssetManagementExtension($objUser);
     }
     if (isset($_GET['source'])) {
         switch ($_GET['source']) {
             case 'Newsletter':
                 \Cx\Core\Csrf\Controller\Csrf::header('Location:
                     index.php?cmd=Newsletter&act=users&store=true' . (!empty($_GET['newsletterListId']) ? '&newsletterListId=' . contrexx_input2raw($_GET['newsletterListId']) : '') . (!empty($_GET['filterkeyword']) ? '&filterkeyword=' . contrexx_input2raw($_GET['filterkeyword']) : '') . (!empty($_GET['filterattribute']) ? '&filterattribute=' . contrexx_input2raw($_GET['filterattribute']) : '') . (!empty($_GET['filterStatus']) ? '&filterStatus=' . contrexx_input2raw($_GET['filterStatus']) : ''));
                 exit;
         }
     }
 }
Ejemplo n.º 2
0
 private function moduleExists($module)
 {
     if (empty($module)) {
         return true;
     }
     if (contrexx_isCoreModule($module)) {
         return true;
     } else {
         return contrexx_isModuleInstalled($module);
     }
 }