Changeset 4c6b662 in github
- Timestamp:
- Apr 30, 2008 10:07:29 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- e090a1a
- Parents:
- 3510d7b
- Location:
- program
- Files:
-
- 2 edited
-
include/rcube_html_page.php (modified) (4 diffs)
-
steps/error.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_html_page.php
r3510d7b r4c6b662 1 1 <?php 2 2 3 /* 3 4 +-----------------------------------------------------------------------+ … … 23 24 * 24 25 * @package HTML 25 *26 * @author Thomas Bruederli <roundcube@gmail.com>27 * @license http://gnu.org GPL28 * @todo See about improving performance (__get, __set, sprintf)29 26 */ 30 27 class rcube_html_page 31 28 { 32 protected $_store = array(); 33 34 /** 35 * Constructor 36 * 37 * @return rcube_html_page 38 * @uses self::reset() 39 */ 40 public function __construct() 41 { 42 $this->reset(); 43 } 29 protected $scripts_path = ''; 30 protected $script_files = array(); 31 protected $scripts = array(); 32 protected $charset = 'UTF-8'; 33 34 protected $script_tag_file = "<script type=\"text/javascript\" src=\"%s%s\"></script>\n"; 35 protected $script_tag = "<script type=\"text/javascript\">\n<!--\n%s\n\n//-->\n</script>\n"; 36 protected $default_template = "<html>\n<head><title></title></head>\n<body></body>\n</html>"; 37 38 protected $title = ''; 39 protected $header = ''; 40 protected $footer = ''; 41 protected $body = ''; 42 43 44 /** Constructor */ 45 public function __construct() {} 44 46 45 47 /** … … 121 123 /** 122 124 * Reset all saved properties 123 *124 * @return void125 * @see self::__construct126 * @uses self::$_store127 125 */ 128 126 public function reset() 129 127 { 130 $this->scripts_path = '';131 128 $this->script_files = array(); 132 $this->external_scripts = array();133 129 $this->scripts = array(); 134 $this->charset = 'UTF-8';135 136 // templates137 $this->script_tag_file = "<script type=\"text/javascript\" src=\"%s%s\"></script>\n";138 $this->script_tag = "<script type=\"text/javascript\">\n<!--\n%s\n\n//-->\n</script>\n";139 $this->default_template = "<html>\n<head><title></title></head>\n<body></body>\n</html>";140 $this->tag_format_external_script = "<script type=\"text/javascript\" src=\"%s\"></script>\n";141 142 // page stuff143 130 $this->title = ''; 144 131 $this->header = ''; … … 265 252 echo rcube_charset_convert($output, 'UTF-8', $this->charset); 266 253 } 267 268 /**269 * __get270 *271 * @param string $var A variable name.272 *273 * @return mixed274 * @uses self::$_store275 */276 public function __get($var)277 {278 return $this->_store[$var];279 }280 281 /**282 * __set283 *284 * @param string $var A variable name.285 * @param mixed $value The value of the variable.286 *287 * @return mixed288 * @uses self::$_store289 */290 public function __set($var, $value)291 {292 return $this->_store[$var] = $value;293 }294 254 } 255 -
program/steps/error.inc
r47124c22 r4c6b662 100 100 if (template_exists('error')) 101 101 { 102 $OUTPUT->scripts = array(); 103 $OUTPUT->script_files = array(); 102 $OUTPUT->reset(); 104 103 $OUTPUT->send('error'); 105 104 }
Note: See TracChangeset
for help on using the changeset viewer.
