/** * 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(); }
/** * Request-Handler * @return boolean */ public function request() { if (!$this->maintenanceMode()) { return false; } if ($this->iplist->ipIsLocked()) { return false; } $this->category = defined('FPCM_PUB_CATEGORY_LATEST') ? FPCM_PUB_CATEGORY_LATEST : 0; $this->limit = defined('FPCM_PUB_LIMIT_LATEST') ? FPCM_PUB_LIMIT_LATEST : $this->config->articles_limit; $this->isUtf8 = defined('FPCM_PUB_OUTPUT_UTF8') ? FPCM_PUB_OUTPUT_UTF8 : true; $this->cache = new \fpcm\classes\cache('articlelatest', \fpcm\model\articles\article::CACHE_ARTICLE_MODULE); return true; }
/** * Controller ausführen * @return boolean */ public function process() { parent::process(); $parsed = array(); if (!$this->article) { $this->view->render(); return false; } $parsed = array('articles' => '', 'comments' => ''); if ($this->cache->isExpired()) { $parsed['articles'] = $this->assignArticleData(); $parsed['comments'] = $this->assignCommentsData(); $parsed = $this->events->runEvent('publicShowSingle', $parsed); if (!$this->session->exists()) { $this->cache->write($parsed, $this->config->system_cache_timeout); } } else { $parsed = $this->cache->read(); } if (!$this->isUtf8) { $parsed['articles'] = utf8_decode($parsed['articles']); $parsed['comments'] = utf8_decode($parsed['comments']); } $this->view->assign('article', $parsed['articles']); if ($this->config->system_comments_enabled && $this->article->getComments() && !$this->iplist->ipIsLocked('nocomments')) { $this->view->assign('comments', $parsed['comments']); $this->view->assign('commentform', $this->assignCommentFormData()); } else { $this->view->assign('commentform', false); } $this->view->render(); }
/** * @see \fpcm\controller\abstracts\controller::request() * @return boolean */ public function request() { if (!$this->maintenanceMode(false)) { return false; } if (!$this->config->articles_rss) { die($this->lang->translate('RSSFEED_DISABLED')); } if ($this->iplist->ipIsLocked()) { return false; } $this->category = defined('FPCM_PUB_CATEGORY_LATEST') ? FPCM_PUB_CATEGORY_LATEST : 0; $this->limit = defined('FPCM_PUB_LIMIT_LATEST') ? FPCM_PUB_LIMIT_LATEST : $this->config->articles_limit; $this->cache = new \fpcm\classes\cache('articlefeed', \fpcm\model\articles\article::CACHE_ARTICLE_MODULE); return true; }
/** * 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(); }
/** * Request-Handler * @return boolean */ public function request() { if ($this->iplist->ipIsLocked()) { $this->view->addErrorMessage('ERROR_IP_LOCKED'); $this->view->assign('systemMode', $this->config->system_mode); $this->view->assign('content', ''); $this->view->assign('showToolbars', false); $this->view->render(); return false; } $this->crons->registerCron('postponedArticles'); $this->page = !is_null($this->getRequestVar('page')) ? (int) $this->getRequestVar('page') : 0; $this->category = defined('FPCM_PUB_CATEGORY_LISTALL') ? FPCM_PUB_CATEGORY_LISTALL : 0; $this->isUtf8 = defined('FPCM_PUB_OUTPUT_UTF8') ? FPCM_PUB_OUTPUT_UTF8 : true; if ($this->page > 1) { $this->listShowLimit = ($this->page - 1) * $this->limit; } return true; }