/**
  * Constructor
  *
  * @todo   Replace $this->config with the real rcube_config object
  */
 public function __construct($task = null, $framed = false)
 {
     parent::__construct();
     //$this->framed = $framed;
     $this->set_env('task', $task);
     $this->set_env('x_frame_options', $this->config->get('x_frame_options', 'sameorigin'));
     // add cookie info
     $this->set_env('cookie_domain', ini_get('session.cookie_domain'));
     $this->set_env('cookie_path', ini_get('session.cookie_path'));
     $this->set_env('cookie_secure', ini_get('session.cookie_secure'));
     // load the correct skin (in case user-defined)
     $skin = $this->config->get('skin');
     $this->set_skin($skin);
     $this->set_env('skin', $skin);
     if (!empty($_REQUEST['_extwin'])) {
         $this->set_env('extwin', 1);
     }
     // add common javascripts
     $this->add_script('var ' . rcmail::JS_OBJECT_NAME . ' = new rcube_webmail();', 'head_top');
     // don't wait for page onload. Call init at the bottom of the page (delayed)
     $this->add_script(rcmail::JS_OBJECT_NAME . '.init();', 'docready');
     $this->scripts_path = 'program/js/';
     $this->include_script('jquery.min.js');
     $this->include_script('common.js');
     $this->include_script('app.js');
     // register common UI objects
     $this->add_handlers(array('loginform' => array($this, 'login_form'), 'preloader' => array($this, 'preloader'), 'username' => array($this, 'current_username'), 'message' => array($this, 'message_container'), 'charsetselector' => array($this, 'charset_selector'), 'aboutcontent' => array($this, 'about_content')));
 }
 /**
  * Object constructor
  */
 public function __construct($task = null, $framed = false)
 {
     parent::__construct();
 }
Example #3
0
 /**
  * Object constructor
  */
 public function __construct($task = null, $framed = false)
 {
     parent::__construct();
     $this->devel_mode = (bool) $this->config->get('devel_mode');
 }