コード例 #1
0
ファイル: installer.php プロジェクト: swk/bluebox
 /**
  * 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);
     }
 }
コード例 #2
0
ファイル: featurecode.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     javascript::add('editarea/edit_area_full.js');
     javascript::add('featurecode.js');
     stylesheet::add('featurecode.css');
 }
コード例 #3
0
ファイル: autoattendant.php プロジェクト: Jaybee-/bluebox
    public function __construct()
    {
        parent::__construct();

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

        javascript::add('mustache');
    }
コード例 #4
0
ファイル: sipinterface.php プロジェクト: swk/bluebox
 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('/');
     }
 }
コード例 #5
0
ファイル: xmpp.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     javascript::add(array('jquery.dependClass.js'), 50);
 }
コード例 #6
0
ファイル: ringgroup.php プロジェクト: Jaybee-/bluebox
    public function __construct()
    {
        parent::__construct();

        javascript::add('mustache');
    }
コード例 #7
0
ファイル: globalmedia.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     $this->uploadPath = Kohana::config('upload.directory') . "/" . $this->session->get('user_id') . "/";
 }
コード例 #8
0
ファイル: powerdns.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('powerdns', 50);
 }
コード例 #9
0
ファイル: simpleroute.php プロジェクト: swk/bluebox
 public function __construct()
 {
     jquery::addPlugin('uiCSS');
     javascript::add('mustache');
     parent::__construct();
 }
コード例 #10
0
ファイル: callcenter_agents.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('callcenter_agents', 50);
 }
コード例 #11
0
ファイル: fax.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('fax', 50);
 }
コード例 #12
0
ファイル: callmanager.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('callmanager', 50);
 }
コード例 #13
0
ファイル: netlistmanager.php プロジェクト: Jaybee-/bluebox
    public function __construct()
    {
        parent::__construct();

        stylesheet::add('netlist', 40);
    }
コード例 #14
0
ファイル: user.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     $this->authentic = new Auth();
 }
コード例 #15
0
ファイル: callcenter.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
 }
コード例 #16
0
ファイル: timeofday.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     stylesheet::add('jslider', 50);
     javascript::add(array('jquery.dependClass.js', 'jquery.slider.js'), 50);
 }
コード例 #17
0
ファイル: directory.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     stylesheet::add("directory.css");
 }
コード例 #18
0
ファイル: permission.php プロジェクト: swk/bluebox
 public function __construct()
 {
     parent::__construct();
     Doctrine::getTable('User')->getRecordListener()->get('MultiTenant')->setOption('disabled', true);
     Doctrine::getTable('Location')->getRecordListener()->get('MultiTenant')->setOption('disabled', true);
 }