/** * This constructor sets up session, pulls the current install wizard step and initializes the template * * @return void */ public function __construct() { if (!Kohana::config('config.installer_enabled')) { throw new Exception('The installer has been administratively disabled. (You can re-enable it in Bluebox/config/config.php)'); } Kohana::config_set('core.site_domain', Bluebox_Installer::guess_site_domain()); skins::setSkin($this->template); parent::__construct(); /** * TODO: Remove me when i18n is more stable */ $this->session->set('lang', 'en'); // Attempt to retrieve the current Step $this->currentStepKey = $this->session->get('installer.currentStepKey', 0); $this->currentStep = $this->steps[$this->currentStepKey]; // If this step is before the environment test the disable logging because we dont know if // kohana has write permissions on logs/ if ($this->currentStepKey > 1 && Kohana::config('core.log_threshold') == 0) { Kohana::config_set('core.log_threshold', $this->log_threshold); } // This is the default list of steps to run, modified to work with the wizard $this->pluginEvents = array('core' => Router::$controller, 'coreAction' => Router::$controller . '.' . $this->currentStep); if ($this->currentStep != 'finalize') { $this->_loadAllModules(); } else { Bluebox_Core::bootstrapPackages(TRUE); } }
public function __construct() { parent::__construct(); javascript::add('editarea/edit_area_full.js'); javascript::add('featurecode.js'); stylesheet::add('featurecode.css'); }
public function __construct() { parent::__construct(); stylesheet::add('autoattendant', 50); javascript::add('mustache'); }
public function __construct() { parent::__construct(); if (users::getAttr('user_type') != User::TYPE_SYSTEM_ADMIN) { message::set('You are not authorized to manage sip interfaces!'); $this->returnQtipAjaxForm(NULL); url::redirect('/'); } }
public function __construct() { parent::__construct(); javascript::add(array('jquery.dependClass.js'), 50); }
public function __construct() { parent::__construct(); javascript::add('mustache'); }
public function __construct() { parent::__construct(); $this->uploadPath = Kohana::config('upload.directory') . "/" . $this->session->get('user_id') . "/"; }
public function __construct() { parent::__construct(); stylesheet::add('powerdns', 50); }
public function __construct() { jquery::addPlugin('uiCSS'); javascript::add('mustache'); parent::__construct(); }
public function __construct() { parent::__construct(); stylesheet::add('callcenter_agents', 50); }
public function __construct() { parent::__construct(); stylesheet::add('fax', 50); }
public function __construct() { parent::__construct(); stylesheet::add('callmanager', 50); }
public function __construct() { parent::__construct(); stylesheet::add('netlist', 40); }
public function __construct() { parent::__construct(); $this->authentic = new Auth(); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); stylesheet::add('jslider', 50); javascript::add(array('jquery.dependClass.js', 'jquery.slider.js'), 50); }
public function __construct() { parent::__construct(); stylesheet::add("directory.css"); }
public function __construct() { parent::__construct(); Doctrine::getTable('User')->getRecordListener()->get('MultiTenant')->setOption('disabled', true); Doctrine::getTable('Location')->getRecordListener()->get('MultiTenant')->setOption('disabled', true); }