roundcubemail/program/include/rcmail.php
public function load_gui($framed = false)
    {
        // init output page
        if (!($this->output instanceof rcmail_output_html)) {
            $this->output = new rcmail_output_html($this->task, $framed);
        }

        // set refresh interval
        $this->output->set_env('refresh_interval', $this->config->get('refresh_interval', 0));
        $this->output->set_env('session_lifetime', $this->config->get('session_lifetime', 0) * 60);

        if ($framed) {
            $this->comm_path .= '&_framed=1';
            $this->output->set_env('framed', true);
        }

        $this->output->set_env('task', $this->task);
        $this->output->set_env('action', $this->action);
        $this->output->set_env('comm_path', $this->comm_path);
        $this->output->set_charset(RCUBE_CHARSET);

        if ($this->user && $this->user->ID) {
            $this->output->set_env('user_id', $this->user->get_hash());
        }

        // set compose mode for all tasks (message compose step can be triggered from everywhere)
        $this->output->set_env('compose_extwin', $this->config->get('compose_extwin',false));

        // add some basic labels to client
        $this->output->add_label('loading', 'servererror', 'connerror', 'requesttimedout',
            'refreshing', 'windowopenerror', 'uploadingmany', 'close');

        return $this->output;
    }
public function load_gui($framed = false)
    {
        // init output page
        if (!($this->output instanceof rcmail_output_html)) {
            $this->output = new rcmail_output_html($this->task, $framed);
        }

        // set refresh interval
        $this->output->set_env('refresh_interval', $this->config->get('refresh_interval', 0));
        $this->output->set_env('session_lifetime', $this->config->get('session_lifetime', 0) * 60);

        if ($framed) {
            $this->comm_path .= '&_framed=1';
            $this->output->set_env('framed', true);
        }

        $this->output->set_env('task', $this->task);
        $this->output->set_env('action', $this->action);
        $this->output->set_env('comm_path', $this->comm_path);
        $this->output->set_charset(RCUBE_CHARSET);

        if ($this->user && $this->user->ID) {
            $this->output->set_env('user_id', $this->user->get_hash());
        }

        // set compose mode for all tasks (message compose step can be triggered from everywhere)
        $this->output->set_env('compose_extwin', $this->config->get('compose_extwin',false));

        // add some basic labels to client
        $this->output->add_label('loading', 'servererror', 'connerror', 'requesttimedout',
            'refreshing', 'windowopenerror', 'uploadingmany', 'close');

        return $this->output;
    }
public function load_gui ( $ framed = false ) { // init output page if ( ! ( $ this -> output instanceof rcmail_output_html ) ) { $ this -> output = new rcmail_output_html ( $ this -> task , $ framed ) ; } // set refresh interval $ this -> output -> set_env ( 'refresh_interval' , $ this -> config -> get ( 'refresh_interval' , 0 ) ) ; $ this -> output -> set_env ( 'session_lifetime' , $ this -> config -> get ( 'session_lifetime' , 0 ) * 60 ) ; if ( $ framed ) { $ this -> comm_path .= '&_framed=1' ; $ this -> output -> set_env ( 'framed' , true ) ; } $ this -> output -> set_env ( 'task' , $ this -> task ) ; $ this -> output -> set_env ( 'action' , $ this -> action ) ; $ this -> output -> set_env ( 'comm_path' , $ this -> comm_path ) ; $ this -> output -> set_charset ( RCUBE_CHARSET ) ; if ( $ this -> user && $ this -> user -> ID ) { $ this -> output -> set_env ( 'user_id' , $ this -> user -> get_hash ( ) ) ; } // set compose mode for all tasks (message compose step can be triggered from everywhere) $ this -> output -> set_env ( 'compose_extwin' , $ this -> config -> get ( 'compose_extwin' , false ) ) ; // add some basic labels to client $ this -> output -> add_label ( 'loading' , 'servererror' , 'connerror' , 'requesttimedout' , 'refreshing' , 'windowopenerror' , 'uploadingmany' , 'close' ) ; return $ this -> output ; }
Init output object for GUI and add common scripts.
This will instantiate a rcmail_output_html object and set
environment vars according to the current session and configuration

@param boolean $framed True if this request is loaded in a (i)frame

@return rcube_output Reference to HTML output object
Init output object for GUI and add common scripts . This will instantiate a rcmail_output_html object and set environment vars according to the current session and configuration