Ejemplo n.º 1
0
 /**
  * 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);
     }
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     javascript::add('editarea/edit_area_full.js');
     javascript::add('featurecode.js');
     stylesheet::add('featurecode.css');
 }
Ejemplo n.º 3
0
    public function __construct()
    {
        parent::__construct();

        stylesheet::add('autoattendant', 50);

        javascript::add('mustache');
    }
Ejemplo n.º 4
0
 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('/');
     }
 }
Ejemplo n.º 5
0
Archivo: xmpp.php Proyecto: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     javascript::add(array('jquery.dependClass.js'), 50);
 }
Ejemplo n.º 6
0
    public function __construct()
    {
        parent::__construct();

        javascript::add('mustache');
    }
Ejemplo n.º 7
0
 public function __construct()
 {
     parent::__construct();
     $this->uploadPath = Kohana::config('upload.directory') . "/" . $this->session->get('user_id') . "/";
 }
Ejemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('powerdns', 50);
 }
Ejemplo n.º 9
0
 public function __construct()
 {
     jquery::addPlugin('uiCSS');
     javascript::add('mustache');
     parent::__construct();
 }
Ejemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('callcenter_agents', 50);
 }
Ejemplo n.º 11
0
Archivo: fax.php Proyecto: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('fax', 50);
 }
Ejemplo n.º 12
0
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('callmanager', 50);
 }
Ejemplo n.º 13
0
    public function __construct()
    {
        parent::__construct();

        stylesheet::add('netlist', 40);
    }
Ejemplo n.º 14
0
Archivo: user.php Proyecto: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     $this->authentic = new Auth();
 }
Ejemplo n.º 15
0
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 16
0
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('jslider', 50);
     javascript::add(array('jquery.dependClass.js', 'jquery.slider.js'), 50);
 }
Ejemplo n.º 17
0
 public function __construct()
 {
     parent::__construct();
     stylesheet::add("directory.css");
 }
Ejemplo n.º 18
0
 public function __construct()
 {
     parent::__construct();
     Doctrine::getTable('User')->getRecordListener()->get('MultiTenant')->setOption('disabled', true);
     Doctrine::getTable('Location')->getRecordListener()->get('MultiTenant')->setOption('disabled', true);
 }