Esempio n. 1
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $this->view->render();
 }
Esempio n. 2
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $this->assignModules($this->moduleList);
     $this->view->addJsLangVars(array('detailsHeadline' => $this->lang->translate('MODULES_LIST_INFORMATIONS')));
     $this->view->addJsVars(array('fpcmJqUploadInit' => 0));
     $this->view->setViewJsFiles(array(\fpcm\classes\baseconfig::$jsPath . 'modulelist.js', \fpcm\classes\baseconfig::$jsPath . 'filemanager.js'));
     if (!$this->permissions->check(array('modules' => 'install'))) {
         unset($this->moduleActions[$this->lang->translate('MODULES_LIST_INSTALL')], $this->moduleActions[$this->lang->translate('MODULES_LIST_UPDATE')]);
     }
     if (!$this->permissions->check(array('modules' => 'uninstall'))) {
         unset($this->moduleActions[$this->lang->translate('MODULES_LIST_UNINSTALL')]);
     }
     if (!$this->permissions->check(array('modules' => 'enable'))) {
         unset($this->moduleActions[$this->lang->translate('MODULES_LIST_ENABLE')], $this->moduleActions[$this->lang->translate('MODULES_LIST_DISABLE')]);
     }
     $this->view->assign('moduleManagerMode', true);
     if (!\fpcm\classes\baseconfig::canConnect()) {
         unset($this->moduleActions[$this->lang->translate('MODULES_LIST_INSTALL')], $this->moduleActions[$this->lang->translate('MODULES_LIST_UPDATE')]);
         $this->view->assign('moduleManagerMode', false);
     }
     $translInfo = array('{{filecount}}' => 1, '{{filesize}}' => \fpcm\classes\tools::calcSize(\fpcm\classes\baseconfig::uploadFilesizeLimit(true), 0));
     $this->view->assign('maxFilesInfo', $this->lang->translate('FILE_LIST_PHPMAXINFO', $translInfo));
     $this->view->assign('actionPath', \fpcm\classes\baseconfig::$rootPath . $this->getControllerLink('modules/list'));
     $this->view->assign('moduleActions', $this->moduleActions);
     $this->view->render();
 }
Esempio n. 3
0
 /**
  * Controller-Processing
  * @return boolean
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $this->getClasses();
     $this->view->assign('containers', $this->containers);
     $this->view->render();
 }
Esempio n. 4
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $list = $this->smileyList->getDatabaseList();
     $this->view->assign('list', $list);
     $this->view->render();
 }
Esempio n. 5
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $userList = new \fpcm\model\users\userList();
     $this->view->assign('ipList', $this->ipList->getIpAll());
     $this->view->assign('users', $userList->getUsersAll());
     $this->view->render();
 }
Esempio n. 6
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $folderList = new \fpcm\model\files\backuplist();
     $files = $folderList->getFolderList();
     rsort($files);
     $this->view->assign('folderList', $files);
     $this->view->render();
 }
Esempio n. 7
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $cronlist = new \fpcm\model\crons\cronlist();
     $this->view->assign('cronjobList', $cronlist->getCronsData());
     $this->view->assign('currentTime', time());
     $this->view->render();
     $this->view->render();
 }
Esempio n. 8
0
 /**
  * @see \fpcm\controller\abstracts\controller::process()
  * @return mixed
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $this->initCommentPermissions();
     $this->initSearchForm();
     $this->view->assign('comments', $this->list->getCommentsAll());
     $this->view->assign('commentsMode', 1);
     $this->view->render();
 }
Esempio n. 9
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $userRolls = new \fpcm\model\users\userRollList();
     $this->view->assign('userRolls', array_flip($userRolls->getUserRollsTranslated()));
     $this->view->assign('permissions', $this->permissionData->getPermissionsAll());
     $this->view->assign('hideTitle', false);
     $this->view->setViewJsFiles(array(\fpcm\classes\baseconfig::$jsPath . 'permissions.js'));
     $this->view->render();
 }
Esempio n. 10
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     if (!$this->moduleKey) {
         $this->view = new \fpcm\model\view\error();
         $this->view->setMessage('Selected module not found in installed modules!');
         return $this->view->render();
     }
     $this->events->runEvent('acpConfig', $this->moduleKey);
     $this->view->render();
 }
Esempio n. 11
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $userRolls = new \fpcm\model\users\userRollList();
     $this->view->assign('userRolls', $userRolls->getUserRollsTranslated());
     $this->view->assign('author', $this->author);
     $this->view->assign('showDisableButton', false);
     $this->view->setViewJsFiles(array(\fpcm\classes\loader::libGetFileUrl('password-generator', 'password-generator.min.js')));
     $this->view->addJsVars(array('fpcmNavigationActiveItemId' => 'submenu-itemnav-item-users'));
     $this->view->render();
 }
Esempio n. 12
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $userList = new \fpcm\model\users\userList();
     $this->view->assign('userList', $userList->getUsersAll());
     $this->view->assign('sessionList', $this->session->getSessions());
     $this->view->assign('errorLogs', array());
     $this->view->assign('systemLogs', array());
     $this->view->assign('databaseLogs', array());
     $this->view->assign('packagesLogs', array());
     $this->view->assign('customLogs', $this->events->runEvent('logsAddList', array()));
     $this->view->render();
 }
Esempio n. 13
0
 /**
  * Controller-Processing
  * @return boolean
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $this->view->assign('replacementsArticle', $this->getReplacementTranslations('TEMPLATE_ARTICLE_', $this->articleTemplate->getReplacementTags()));
     $this->view->assign('contentArticle', $this->articleTemplate->getContent());
     if ($this->config->articles_template_active != $this->config->article_template_active) {
         $this->view->assign('replacementsArticleSingle', $this->getReplacementTranslations('TEMPLATE_ARTICLE_', $this->articleSingleTemplate->getReplacementTags()));
         $this->view->assign('contentArticleSingle', $this->articleSingleTemplate->getContent());
     }
     $this->view->assign('replacementsComment', $this->getReplacementTranslations('TEMPLATE_COMMMENT_', $this->commentTemplate->getReplacementTags()));
     $this->view->assign('contentComment', $this->commentTemplate->getContent());
     $this->view->assign('replacementsCommentForm', $this->getReplacementTranslations('TEMPLATE_COMMMENTFORM_', $this->commentFormTemplate->getReplacementTags()));
     $this->view->assign('contentCommentForm', $this->commentFormTemplate->getContent());
     $this->view->assign('replacementsLatestNews', $this->getReplacementTranslations('TEMPLATE_ARTICLE_', $this->latestNewsTemplate->getReplacementTags()));
     $this->view->assign('contentLatestNews', $this->latestNewsTemplate->getContent());
     $this->view->assign('replacementsTweet', $this->getReplacementTranslations('TEMPLATE_ARTICLE_', $this->tweetTemplate->getReplacementTags()));
     $this->view->assign('contentTweet', $this->tweetTemplate->getContent());
     $this->view->assign('allowedTags', htmlentities($this->articleTemplate->getAllowedTags(', ')));
     $this->view->addJsVars(array('fpcmTemplateId' => 1, 'fpcmJqUploadInit' => 0));
     $this->view->addJsLangVars(array('previewHeadline' => $this->lang->translate('HL_TEMPLATE_PREVIEW')));
     $tplfilelist = new \fpcm\model\files\templatefilelist();
     $this->view->assign('templateFiles', $tplfilelist->getFolderObjectList());
     $this->view->setViewJsFiles(array(\fpcm\classes\baseconfig::$jsPath . 'filemanager.js', \fpcm\classes\baseconfig::$jsPath . 'templates.js'));
     $translInfo = array('{{filecount}}' => 1, '{{filesize}}' => \fpcm\classes\tools::calcSize(\fpcm\classes\baseconfig::uploadFilesizeLimit(true), 0));
     $this->view->assign('maxFilesInfo', $this->lang->translate('FILE_LIST_PHPMAXINFO', $translInfo));
     $this->view->assign('actionPath', \fpcm\classes\baseconfig::$rootPath . $this->getControllerLink('modules/list'));
     $this->view->render();
 }
Esempio n. 14
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $mode = (int) $this->getRequestVar('mode');
     if ($mode == 2) {
         $this->view->setShowHeader(0);
         $this->view->setShowFooter(0);
     }
     $this->view->setViewJsFiles(array(\fpcm\classes\loader::libGetFileUrl('tinymce4', 'tinymce.min.js'), \fpcm\classes\baseconfig::$jsPath . 'editor_comments.js'));
     $this->view->addJsVars(array('fpcmTinyMceLang' => $this->config->system_lang, 'fpcmTinyMcePlugins' => 'autolink charmap code image link lists media nonbreaking wordcount fpcm_emoticons autoresize', 'fpcmTinyMceToolbar' => 'fontsizeselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist blockquote | link unlink anchor image media emoticons charmap | undo redo removeformat searchreplace fullscreen code', 'fpcmNavigationActiveItemId' => 'itemnav-item-editcomments'));
     if ($this->comment->getChangeuser() && $this->comment->getChangetime()) {
         $changeUser = new \fpcm\model\users\author($this->comment->getChangeuser());
         $this->view->assign('changeInfo', $this->lang->translate('COMMMENT_LASTCHANGE', array('{{username}}' => $changeUser->exists() ? $changeUser->getDisplayname() : $this->lang->translate('GLOBAL_NOTFOUND'), '{{time}}' => date($this->config->system_dtmask, $this->comment->getChangetime()))));
     } else {
         $this->view->assign('changeInfo', $this->lang->translate('GLOBAL_NOCHANGE'));
     }
     $this->view->assign('ipWhoisLink', substr($this->comment->getIpaddress(), -1) === '*' ? false : true);
     $this->view->assign('comment', $this->comment);
     $this->view->assign('commentsMode', $mode);
     $this->view->assign('permApprove', $this->approve);
     $this->view->assign('permPrivate', $this->private);
     $this->view->render();
 }
Esempio n. 15
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $userRolls = new \fpcm\model\users\userRollList();
     $this->view->assign('userRolls', $userRolls->getUserRollsTranslated());
     $this->view->assign('languages', array_flip($this->lang->getLanguages()));
     $timezones = array();
     foreach ($this->getTimeZones() as $area => $zones) {
         foreach ($zones as $zone) {
             $timezones[$area][$zone] = $zone;
         }
     }
     $this->view->assign('timezoneAreas', $timezones);
     $this->view->assign('externalSave', true);
     $this->view->assign('articleLimitList', \fpcm\model\system\config::getAcpArticleLimits());
     $this->view->assign('defaultFontsizes', \fpcm\model\system\config::getDefaultFontsizes());
     $userList = new \fpcm\model\users\userList();
     $showDisableButton = !$this->userEnabled && ($this->userId == $this->session->getUserId() || $userList->countActiveUsers() == 1) ? false : true;
     $this->view->assign('showDisableButton', $showDisableButton);
     $this->view->setViewJsFiles(array(\fpcm\classes\loader::libGetFileUrl('password-generator', 'password-generator.min.js')));
     $this->view->addJsVars(array('fpcmNavigationActiveItemId' => 'submenu-itemnav-item-users', 'fpcmDtMasks' => \fpcm\classes\baseconfig::$dateTimeMasks));
     $this->view->render();
 }
Esempio n. 16
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     if (!is_object($this->smiley)) {
         $this->smiley = new \fpcm\model\files\smiley();
     }
     $smileyList = new \fpcm\model\files\smileylist();
     $files = array();
     foreach ($smileyList->getFolderList() as $file) {
         $files[] = basename($file);
     }
     $this->view->assign('smiley', $this->smiley);
     $this->view->assign('files', $files);
     $this->view->render();
 }
Esempio n. 17
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $this->initCommentPermissions();
     $this->view->assign('ownArticleIds', $this->articleList->getArticleIDsByUser($this->session->getUserId()));
     $this->view->assign('commentsMode', 1);
     $this->view->render();
 }
Esempio n. 18
0
 /**
  * Controller-Processing
  * @return boolean
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $contents = $this->cache->read();
     if ($this->cache->isExpired() || !is_array($contents)) {
         $xml = simplexml_load_string($this->lang->getHelp());
         foreach ($xml->chapter as $chapter) {
             $headline = trim($chapter->headline);
             $contents[$headline] = trim($chapter->text);
         }
     }
     $contents = $this->events->runEvent('extendHelp', $contents);
     $this->view->assign('chapters', $contents);
     $pos = $this->chapterHeadline ? (int) array_search(strtoupper(base64_decode($this->chapterHeadline)), array_keys($contents)) : false;
     $this->view->assign('defaultCapter', $pos);
     $this->view->render();
 }
Esempio n. 19
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     if (!is_writable(\fpcm\classes\baseconfig::$versionFile)) {
         $this->view->addErrorMessage('UPDATE_WRITEERROR');
         $this->view->render();
         return false;
     }
     $this->config->setMaintenanceMode(false);
     $updater = new \fpcm\model\updater\system();
     $updater->checkUpdates();
     $remoteFilePath = $updater->getRemoteData('filepath');
     $params = $this->initPkgManagerData();
     $params['fpcmUpdaterMaxStep'] = 6;
     $params['fpcmUpdaterStartStep'] = $this->forceStep ? $this->forceStep : (\fpcm\classes\baseconfig::canConnect() ? 1 : 4);
     $params['fpcmUpdaterMessages']['1_START'] = $this->lang->translate('PACKAGES_RUN_DOWNLOAD', array('{{pkglink}}' => is_array($remoteFilePath) ? '' : $remoteFilePath));
     $params['fpcmUpdaterMessages']['EXIT_1'] = $this->lang->translate('UPDATES_SUCCESS');
     $this->view->addJsVars($params);
     $this->view->setViewJsFiles(array(\fpcm\classes\baseconfig::$jsPath . 'updater.js'));
     $this->view->render();
 }
Esempio n. 20
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $translatedRolls = $this->rollList->getUserRollsTranslated();
     $this->view->assign('currentUser', $this->session->getUserId());
     $this->view->assign('usersActive', $this->userList->getUsersActive(true));
     $this->view->assign('usersDisabled', $this->userList->getUsersDisabled(true));
     $this->view->assign('usersRollList', $translatedRolls);
     $this->view->assign('usersRolls', array_flip($translatedRolls));
     $this->view->assign('articleCounts', $this->articleList->countArticlesByUsers());
     $this->view->assign('rollPermissions', $this->permissions->check(array('system' => 'rolls')));
     $this->view->render();
 }
Esempio n. 21
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!$this->pageTokenOk && ($this->buttonClicked('reset') || $this->buttonClicked('login'))) {
         $this->view->addErrorMessage('CSRF_INVALID');
     }
     if ($this->iplist->ipIsLocked() || $this->iplist->ipIsLocked('nologin')) {
         $this->view->addErrorMessage('ERROR_IP_LOCKED');
         $this->view->assign('lockedGlobal', true);
     }
     if ($this->loginLocked) {
         $this->view->addErrorMessage('LOGIN_ATTEMPTS_MAX', array('{{logincount}}' => $this->currentAttempts, '{{lockedtime}}' => $this->loginLockedExpire / 60, '{{lockeddate}}' => date($this->config->system_dtmask, $this->loginLockedDate)));
     }
     $this->view->setViewJsFiles(array(\fpcm\classes\baseconfig::$jsPath . 'login.js'));
     $this->view->assign('loginAttempts', $this->currentAttempts);
     $this->view->assign('loginAttemptsMax', $this->config->system_loginfailed_locked);
     $this->view->render();
 }
Esempio n. 22
0
 /**
  * Controller-Processing
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $users = $this->userList->getUsersNameList();
     $this->view->assign('timesMode', true);
     $this->view->assign('users', array_flip($users));
     $this->view->assign('commentEnabledGlobal', $this->config->system_comments_enabled);
     $this->view->assign('showArchiveStatus', $this->mode == -1 ? true : false);
     $this->view->assign('showDraftStatus', false);
     $this->view->assign('isSearch', true);
     $this->view->assign('showPager', false);
     $this->initEditPermisions();
     $commentCounts = $this->commentList->countComments($this->getArticleListIds());
     $this->view->assign('commentCount', $commentCounts);
     $this->view->assign('commentSum', $commentCounts && count($this->articleItems) ? array_sum($commentCounts) : 0);
     $this->view->assign('list', $this->articleItems);
     $this->view->render();
 }
Esempio n. 23
0
 /**
  * Controller-Processing
  * @return boolean
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $timezones = array();
     foreach ($this->getTimeZones() as $area => $zones) {
         foreach ($zones as $zone) {
             $timezones[$area][$zone] = $zone;
         }
     }
     $this->view->assign('timezoneAreas', $timezones);
     $modes = array($this->lang->translate('SYSTEM_OPTIONS_USEMODE_IFRAME') => 0, $this->lang->translate('SYSTEM_OPTIONS_USEMODE_PHPINCLUDE') => 1);
     $this->view->assign('systemModes', $modes);
     $editor = array($this->lang->translate('SYSTEM_OPTIONS_NEWS_EDITOR_STD') => 0, $this->lang->translate('SYSTEM_OPTIONS_NEWS_EDITOR_CLASSIC') => 1);
     $this->view->assign('editors', $editor);
     $sorts = array($this->lang->translate('SYSTEM_OPTIONS_NEWS_BYINTERNALID') => 'id', $this->lang->translate('SYSTEM_OPTIONS_NEWS_BYAUTHOR') => 'createuser', $this->lang->translate('SYSTEM_OPTIONS_NEWS_BYWRITTENTIME') => 'createtime', $this->lang->translate('SYSTEM_OPTIONS_NEWS_BYEDITEDTIME') => 'changetime');
     $this->view->assign('sorts', $sorts);
     $sortOrders = array($this->lang->translate('SYSTEM_OPTIONS_NEWS_ORDERASC') => 'ASC', $this->lang->translate('SYSTEM_OPTIONS_NEWS_ORDERDESC') => 'DESC');
     $this->view->assign('sortsOrders', $sortOrders);
     $templates = new \fpcm\model\pubtemplates\templatelist();
     $this->view->assign('articleTemplates', $templates->getArticleTemplates());
     $this->view->assign('commentTemplates', $templates->getCommentTemplates());
     $this->view->assign('globalConfig', $this->config->getData());
     $this->view->assign('languages', array_flip($this->lang->getLanguages()));
     $notify = array($this->lang->translate('SYSTEM_OPTIONS_COMMENT_NOTIFY_GLOBAL') => 0, $this->lang->translate('SYSTEM_OPTIONS_COMMENT_NOTIFY_AUTHOR') => 1, $this->lang->translate('SYSTEM_OPTIONS_COMMENT_NOTIFY_ALL') => 2);
     $this->view->assign('notify', $notify);
     $this->view->assign('articleLimitList', \fpcm\model\system\config::getArticleLimits());
     $this->view->assign('articleLimitListAcp', \fpcm\model\system\config::getAcpArticleLimits());
     $this->view->assign('defaultFontsizes', \fpcm\model\system\config::getDefaultFontsizes());
     $this->view->addJsVars(array('fpcmDtMasks' => \fpcm\classes\baseconfig::$dateTimeMasks));
     $twitter = new \fpcm\model\system\twitter();
     $showTwitter = $twitter->checkRequirements();
     $this->view->assign('showTwitter', $showTwitter);
     $this->view->assign('twitterIsActive', $twitter->checkConnection());
     $this->view->assign('twitterScreenName', $twitter->getUsername());
     $this->view->setViewJsFiles(array(\fpcm\classes\baseconfig::$jsPath . 'options.js'));
     $this->view->addJsVars(array('showTwitter' => $showTwitter ? 1 : 0, 'syscheck' => $this->syscheck));
     $this->view->render();
 }
Esempio n. 24
0
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $loadAjax = $this->fileList->getDatabaseFileCount() >= 1 ? true : false;
     $this->view->assign('loadAjax', $loadAjax);
     $this->view->addJsVars(array('fpcmBaseUrl' => \fpcm\classes\baseconfig::$rootPath, 'fpcmFmgrMode' => $this->mode, 'fpcmEditorType' => $this->config->system_editor, 'fpcmJqUploadInit' => $this->config->file_uploader_new));
     $this->view->addJsLangVars(array('newNameMsg' => $this->lang->translate('FILE_LIST_RENAME_NEWNAME')));
     $this->view->assign('newUploader', $this->config->file_uploader_new);
     $this->view->assign('jquploadPath', \fpcm\classes\loader::libGetFileUrl('jqupload'));
     $this->view->setViewJsFiles(array(\fpcm\classes\baseconfig::$jsPath . 'filemanager.js'));
     if ($this->config->file_uploader_new) {
         $this->view->assign('actionPath', \fpcm\classes\baseconfig::$rootPath . $this->getControllerLink('ajax/jqupload'));
     } else {
         $this->view->assign('actionPath', \fpcm\classes\baseconfig::$rootPath . $this->getControllerLink('files/list', array('mode' => $this->mode)));
         $translInfo = array('{{filecount}}' => ini_get("max_file_uploads"), '{{filesize}}' => \fpcm\classes\tools::calcSize(\fpcm\classes\baseconfig::uploadFilesizeLimit(true), 0));
         $this->view->assign('maxFilesInfo', $this->lang->translate('FILE_LIST_PHPMAXINFO', $translInfo));
     }
     $this->initViewAssigns(array(), array(), \fpcm\classes\tools::calcPagination(1, 1, 0, 0));
     $this->initPermissions();
     $this->view->render();
 }