| | |
| | | | Author: Thomas Bruederli <roundcube@gmail.com> | |
| | | +-----------------------------------------------------------------------+ |
| | | |
| | | $Id: $ |
| | | $Id$ |
| | | |
| | | */ |
| | | |
| | |
| | | class rcube_json_output |
| | | { |
| | | private $config; |
| | | private $charset = 'UTF-8'; |
| | | private $charset = RCMAIL_CHARSET; |
| | | private $env = array(); |
| | | private $texts = array(); |
| | | private $commands = array(); |
| | |
| | | public function set_pagetitle($title) |
| | | { |
| | | $name = $this->config->get('product_name'); |
| | | $this->command('set_pagetitle', JQ(empty($name) ? $title : $name.' :: '.$title)); |
| | | $this->command('set_pagetitle', empty($name) ? $title : $name.' :: '.$title); |
| | | } |
| | | |
| | | /** |
| | |
| | | $s_header_sent = true; |
| | | send_nocacheing_headers(); |
| | | header('Content-Type: text/plain; charset=' . $this->get_charset()); |
| | | print '/** ajax response ['.date('d/M/Y h:i:s O')."] **/\n"; |
| | | } |
| | | |
| | | // unset default env vars |
| | |
| | | private function get_js_commands() |
| | | { |
| | | $out = ''; |
| | | |
| | | |
| | | foreach ($this->commands as $i => $args) { |
| | | $method = array_shift($args); |
| | | foreach ($args as $i => $arg) { |