roundcubemail/program/include/rcmail_output_html.php
public function send($templ = null, $exit = true)
    {
        if ($templ != 'iframe') {
            // prevent from endless loops
            if ($exit != 'recur' && $this->app->plugins->is_processing('render_page')) {
                rcube::raise_error(array('code' => 505, 'type' => 'php',
                  'file' => __FILE__, 'line' => __LINE__,
                  'message' => 'Recursion alert: ignoring output->send()'), true, false);
                return;
            }
            $this->parse($templ, false);
        }
        else {
            $this->framed = true;
            $this->write();
        }

        // set output asap
        ob_flush();
        flush();

        if ($exit) {
            exit;
        }
    }
public function send($templ = null, $exit = true)
    {
        if ($templ != 'iframe') {
            // prevent from endless loops
            if ($exit != 'recur' && $this->app->plugins->is_processing('render_page')) {
                rcube::raise_error(array('code' => 505, 'type' => 'php',
                  'file' => __FILE__, 'line' => __LINE__,
                  'message' => 'Recursion alert: ignoring output->send()'), true, false);
                return;
            }
            $this->parse($templ, false);
        }
        else {
            $this->framed = true;
            $this->write();
        }

        // set output asap
        ob_flush();
        flush();

        if ($exit) {
            exit;
        }
    }
public function send ( $ templ = null , $ exit = true ) { if ( $ templ != 'iframe' ) { // prevent from endless loops if ( $ exit != 'recur' && $ this -> app -> plugins -> is_processing ( 'render_page' ) ) { rcube :: raise_error ( array ( 'code' => 505 , 'type' => 'php' , 'file' => __FILE__ , 'line' => __LINE__ , 'message' => 'Recursion alert: ignoring output->send()' ) , true , false ) ; return ; } $ this -> parse ( $ templ , false ) ; } else { $ this -> framed = true ; $ this -> write ( ) ; } // set output asap ob_flush ( ) ; flush ( ) ; if ( $ exit ) { exit ; } }
Send the request output to the client.
This will either parse a skin tempalte or send an AJAX response

@param string  $templ Template name
@param boolean $exit  True if script should terminate (default)
Send the request output to the client . This will either parse a skin tempalte or send an AJAX response