/** * Konstruktor * @return boolean */ public function __construct() { if (\fpcm\classes\baseconfig::installerEnabled()) { return false; } $this->config = \fpcm\classes\baseconfig::$fpcmConfig; $this->lang = \fpcm\classes\baseconfig::$fpcmLanguage; $this->config->setUserSettings(); }
/** * Konstruktor * @param int $id * @return void */ public function __construct() { $this->dbcon = \fpcm\classes\baseconfig::$fpcmDatabase; $this->events = \fpcm\classes\baseconfig::$fpcmEvents; $this->cache = new \fpcm\classes\cache($this->cacheName ? $this->cacheName : md5(microtime(false)), $this->cacheModule); if (\fpcm\classes\baseconfig::installerEnabled()) { return false; } $this->config = \fpcm\classes\baseconfig::$fpcmConfig; $this->language = \fpcm\classes\baseconfig::$fpcmLanguage; if (is_object($this->config)) { $this->config->setUserSettings(); } }
/** * Konstruktor * @return void */ public function __construct() { $this->events = \fpcm\classes\baseconfig::$fpcmEvents; $this->cache = new \fpcm\classes\cache($this->cacheName ? $this->cacheName : md5(microtime(false)), $this->cacheModule); if (!\fpcm\classes\baseconfig::dbConfigExists()) { return; } $this->session = \fpcm\classes\baseconfig::$fpcmSession; $this->config = \fpcm\classes\baseconfig::$fpcmConfig; $this->language = \fpcm\classes\baseconfig::$fpcmLanguage; if (is_object($this->config)) { $this->config->setUserSettings(); } }
/** * Konstruktor */ public function __construct() { if (\fpcm\classes\baseconfig::installerEnabled() && !\fpcm\classes\baseconfig::dbConfigExists()) { $this->redirect('installer'); } if (\fpcm\classes\baseconfig::installerEnabled()) { return false; } $this->events = \fpcm\classes\baseconfig::$fpcmEvents; $this->cache = new \fpcm\classes\cache($this->cacheName ? $this->cacheName : md5(microtime(false)), $this->cacheModule); $this->config = \fpcm\classes\baseconfig::$fpcmConfig; $this->session = \fpcm\classes\baseconfig::$fpcmSession; $this->crons = new \fpcm\model\crons\cronlist(); $moduleList = new \fpcm\model\modules\modulelist(); $this->enabledModules = $moduleList->getEnabledInstalledModules(); if ($this->session->getCurrentUser()) { $this->permissions = new \fpcm\model\system\permissions($this->session->currentUser->getRoll()); } $this->config->setUserSettings(); $this->lang = \fpcm\classes\baseconfig::$fpcmLanguage; }
/** * Konstruktor * @param string $filename * @param string $filepath * @param string $content */ public function __construct($filename = '', $filepath = '', $content = '') { $this->escapeFileName($filename); $this->dbcon = \fpcm\classes\baseconfig::$fpcmDatabase; if (\fpcm\classes\baseconfig::installerEnabled()) { return false; } $this->cache = new \fpcm\classes\cache($this->cacheName ? $this->cacheName : md5(microtime(false)), $this->cacheModule); $this->events = \fpcm\classes\baseconfig::$fpcmEvents; $this->config = \fpcm\classes\baseconfig::$fpcmConfig; $this->language = \fpcm\classes\baseconfig::$fpcmLanguage; $this->config->setUserSettings(); $this->filename = $filename; $this->filepath = $filepath; $this->fullpath = $filepath . $filename; $this->content = $content; if ($this->exists()) { $ext = pathinfo($this->fullpath, PATHINFO_EXTENSION); $this->extension = $ext ? $ext : ''; $this->filesize = filesize($this->fullpath); } }