Exemple #1
0
 public function initialize()
 {
     parent::initialize();
     require_once "{$this->dir}/CMSPageProvider.php";
     require_once "{$this->dir}/CMSNodeTemplateProvider.php";
     $this->site->addCallback('onPostConfig', array($this, 'onPostConfig'));
 }
Exemple #2
0
 public function initialize()
 {
     parent::initialize();
     $this->path = $this->dir . '/phpmailer';
     require_once "{$this->path}/class.phpmailer.php";
     $this->site->config->addFile($this->dir . '/defaults.ini');
 }
Exemple #3
0
 public function initialize()
 {
     parent::initialize();
     require_once $this->dir . '/LangPack.php';
     $this->site->addCallback('onPostConfig', array($this, 'onPostConfig'));
     $this->site->addCallback('onRequestStart', array($this, 'onRequestStart'));
 }
 public function initialize()
 {
     parent::initialize();
     require_once $this->dir . '/Page.php';
     require_once $this->dir . '/HTMLPage.php';
     require_once $this->dir . '/PageProvider.php';
     require_once $this->dir . '/ContentPageProvider.php';
     require_once $this->dir . '/ExceptionPage.php';
     require_once $this->dir . '/NotFoundPage.php';
     $this->site->config->addFile($this->dir . '/defaults.ini');
     $this->site->addCallback('onPostConfig', array($this, 'onPostConfig'));
 }
Exemple #5
0
 public function initialize()
 {
     parent::initialize();
     $lifetime = $this->site->config->get('session.expire', 0);
     $path = $this->site->config->get('session.path', $this->site->url);
     if ($path[strlen($path) - 1] != '/') {
         $path .= '/';
     }
     session_set_cookie_params($lifetime, $path);
     $this->site->addCallback('onPostConfig', array($this, 'onPostConfig'));
     $this->site->addCallback('onInitialize', array($this, 'start'));
     $this->site->addCallback('onAccessCheck', array($this, 'check'));
 }
 public function initialize()
 {
     parent::initialize();
     require_once "{$this->dir}/php-stl/PHPSTL.php";
     require_once "{$this->dir}/FrameworkCompiler.php";
     require_once "{$this->dir}/Template.php";
     if ($this->hasModule('PageSystem')) {
         require_once "{$this->dir}/ContentPageTemplateProvider.php";
     }
     PHPSTL::registerNamespace('urn:redtree:ui:form:v1.0', 'TemplateFormHandler', dirname(__FILE__) . '/TemplateFormHandler.php');
     if ($this->hasModule('PageSystem')) {
         PHPSTL::registerNamespace('urn:redtree:ui:page:v1.0', 'TemplatePageHandler', dirname(__FILE__) . '/TemplatePageHandler.php');
     }
     $this->site->addCallback('onPostConfig', array($this, 'onPostConfig'));
 }
Exemple #7
0
 public function initialize()
 {
     parent::initialize();
     require_once "{$this->dir}/DatabaseException.php";
     require_once "{$this->dir}/DatabaseObject.php";
     require_once "{$this->dir}/DatabaseObjectLink.php";
     $this->site->addCallback('onPostConfig', array($this, 'onPostConfig'));
 }