blob: 82c821524b4d39c8c2d468fa7e319aba4d574f83 [file] [log] [blame]
Derek Allard2067d1a2008-11-13 22:59:24 +00001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
3 * CodeIgniter
4 *
Greg Aker741de1c2010-11-10 14:52:57 -06005 * An open source application development framework for PHP 5.1.6 or newer
Derek Allard2067d1a2008-11-13 22:59:24 +00006 *
7 * @package CodeIgniter
8 * @author ExpressionEngine Dev Team
Greg Aker0711dc82011-01-05 10:49:40 -06009 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
Derek Allard2067d1a2008-11-13 22:59:24 +000010 * @license http://codeigniter.com/user_guide/license.html
11 * @link http://codeigniter.com
12 * @since Version 1.0
13 * @filesource
14 */
15
16// ------------------------------------------------------------------------
17
18/**
19 * Output Class
20 *
21 * Responsible for sending final output to browser
22 *
23 * @package CodeIgniter
24 * @subpackage Libraries
25 * @category Output
26 * @author ExpressionEngine Dev Team
27 * @link http://codeigniter.com/user_guide/libraries/output.html
28 */
29class CI_Output {
30
Phil Sturgeon60ed1a32011-03-08 21:43:54 +000031 protected $final_output;
32 protected $cache_expiration = 0;
33 protected $headers = array();
34 protected $mime_types = array();
35 protected $enable_profiler = FALSE;
36 protected $parse_exec_vars = TRUE; // whether or not to parse variables like {elapsed_time} and {memory_usage}
Derek Allard2067d1a2008-11-13 22:59:24 +000037
Phil Sturgeon60ed1a32011-03-08 21:43:54 +000038 protected $_zlib_oc = FALSE;
39 protected $_profiler_sections = array();
Derek Jonesee71c802010-03-10 10:05:05 -060040
Greg Akera9263282010-11-10 15:26:43 -060041 function __construct()
Derek Allard2067d1a2008-11-13 22:59:24 +000042 {
Pascal Kriete676e1cd2010-04-09 21:16:16 +020043 $this->_zlib_oc = @ini_get('zlib.output_compression');
Barry Mienydd671972010-10-04 16:33:58 +020044
Phil Sturgeon60ed1a32011-03-08 21:43:54 +000045 // Get mime types for later
bubbafoley0ea04142011-03-17 14:55:41 -050046 if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/mimes'.EXT))
47 {
48 include APPPATH.'config/'.ENVIRONMENT.'/mimes'.EXT;
49 }
50 else
51 {
52 include APPPATH.'config/mimes'.EXT;
53 }
54
55
Phil Sturgeon60ed1a32011-03-08 21:43:54 +000056 $this->mime_types = $mimes;
57
Derek Allard2067d1a2008-11-13 22:59:24 +000058 log_message('debug', "Output Class Initialized");
59 }
Barry Mienydd671972010-10-04 16:33:58 +020060
Derek Allard2067d1a2008-11-13 22:59:24 +000061 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +020062
Derek Allard2067d1a2008-11-13 22:59:24 +000063 /**
64 * Get Output
65 *
66 * Returns the current output string
67 *
68 * @access public
69 * @return string
Barry Mienydd671972010-10-04 16:33:58 +020070 */
Derek Allard2067d1a2008-11-13 22:59:24 +000071 function get_output()
72 {
73 return $this->final_output;
74 }
Barry Mienydd671972010-10-04 16:33:58 +020075
Derek Allard2067d1a2008-11-13 22:59:24 +000076 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +020077
Derek Allard2067d1a2008-11-13 22:59:24 +000078 /**
79 * Set Output
80 *
81 * Sets the output string
82 *
83 * @access public
84 * @param string
85 * @return void
Barry Mienydd671972010-10-04 16:33:58 +020086 */
Derek Allard2067d1a2008-11-13 22:59:24 +000087 function set_output($output)
88 {
89 $this->final_output = $output;
Phil Sturgeon60ed1a32011-03-08 21:43:54 +000090
91 return $this;
Derek Allard2067d1a2008-11-13 22:59:24 +000092 }
93
94 // --------------------------------------------------------------------
95
96 /**
97 * Append Output
98 *
99 * Appends data onto the output string
100 *
101 * @access public
102 * @param string
103 * @return void
Barry Mienydd671972010-10-04 16:33:58 +0200104 */
Derek Allard2067d1a2008-11-13 22:59:24 +0000105 function append_output($output)
106 {
107 if ($this->final_output == '')
108 {
109 $this->final_output = $output;
110 }
111 else
112 {
113 $this->final_output .= $output;
114 }
Phil Sturgeon60ed1a32011-03-08 21:43:54 +0000115
116 return $this;
Derek Allard2067d1a2008-11-13 22:59:24 +0000117 }
118
119 // --------------------------------------------------------------------
120
121 /**
122 * Set Header
123 *
124 * Lets you set a server header which will be outputted with the final display.
125 *
126 * Note: If a file is cached, headers will not be sent. We need to figure out
127 * how to permit header data to be saved with the cache data...
128 *
129 * @access public
130 * @param string
131 * @return void
Barry Mienydd671972010-10-04 16:33:58 +0200132 */
Derek Allard2067d1a2008-11-13 22:59:24 +0000133 function set_header($header, $replace = TRUE)
134 {
Pascal Kriete676e1cd2010-04-09 21:16:16 +0200135 // If zlib.output_compression is enabled it will compress the output,
136 // but it will not modify the content-length header to compensate for
137 // the reduction, causing the browser to hang waiting for more data.
138 // We'll just skip content-length in those cases.
Barry Mienydd671972010-10-04 16:33:58 +0200139
Pascal Kriete676e1cd2010-04-09 21:16:16 +0200140 if ($this->_zlib_oc && strncasecmp($header, 'content-length', 14) == 0)
141 {
142 return;
143 }
Barry Mienydd671972010-10-04 16:33:58 +0200144
Derek Allard2067d1a2008-11-13 22:59:24 +0000145 $this->headers[] = array($header, $replace);
Phil Sturgeon60ed1a32011-03-08 21:43:54 +0000146
147 return $this;
148 }
149
150 // --------------------------------------------------------------------
151
152 /**
153 * Set Content Type Header
154 *
155 * @access public
156 * @param string extension of the file we're outputting
157 * @return void
158 */
159 function set_content_type($mime_type)
160 {
161 if (strpos($mime_type, '/') === FALSE)
162 {
163 $extension = ltrim($mime_type, '.');
164
165 // Is this extension supported?
166 if (isset($this->mime_types[$extension]))
167 {
168 $mime_type =& $this->mime_types[$extension];
169
170 if (is_array($mime_type))
171 {
172 $mime_type = current($mime_type);
173 }
174 }
175 }
176
177 $header = 'Content-Type: '.$mime_type;
178
179 $this->headers[] = array($header, TRUE);
180
181 return $this;
Derek Allard2067d1a2008-11-13 22:59:24 +0000182 }
183
184 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200185
Derek Allard2067d1a2008-11-13 22:59:24 +0000186 /**
187 * Set HTTP Status Header
Derek Jones817163a2009-07-11 17:05:58 +0000188 * moved to Common procedural functions in 1.7.2
Barry Mienydd671972010-10-04 16:33:58 +0200189 *
Derek Allard2067d1a2008-11-13 22:59:24 +0000190 * @access public
Barry Mienydd671972010-10-04 16:33:58 +0200191 * @param int the status code
192 * @param string
Derek Allard2067d1a2008-11-13 22:59:24 +0000193 * @return void
Barry Mienydd671972010-10-04 16:33:58 +0200194 */
Derek Jones46520492010-03-02 13:53:25 -0600195 function set_status_header($code = 200, $text = '')
Derek Allard2067d1a2008-11-13 22:59:24 +0000196 {
Derek Jones817163a2009-07-11 17:05:58 +0000197 set_status_header($code, $text);
Phil Sturgeon60ed1a32011-03-08 21:43:54 +0000198
199 return $this;
Derek Allard2067d1a2008-11-13 22:59:24 +0000200 }
Barry Mienydd671972010-10-04 16:33:58 +0200201
Derek Allard2067d1a2008-11-13 22:59:24 +0000202 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200203
Derek Allard2067d1a2008-11-13 22:59:24 +0000204 /**
205 * Enable/disable Profiler
206 *
207 * @access public
208 * @param bool
209 * @return void
Barry Mienydd671972010-10-04 16:33:58 +0200210 */
Derek Allard2067d1a2008-11-13 22:59:24 +0000211 function enable_profiler($val = TRUE)
212 {
213 $this->enable_profiler = (is_bool($val)) ? $val : TRUE;
Phil Sturgeon60ed1a32011-03-08 21:43:54 +0000214
215 return $this;
Derek Allard2067d1a2008-11-13 22:59:24 +0000216 }
Barry Mienydd671972010-10-04 16:33:58 +0200217
Derek Allard2067d1a2008-11-13 22:59:24 +0000218 // --------------------------------------------------------------------
Derek Jonesee71c802010-03-10 10:05:05 -0600219
220 /**
221 * Set Profiler Sections
222 *
223 * Allows override of default / config settings for Profiler section display
224 *
225 * @access public
226 * @param array
227 * @return void
228 */
229 function set_profiler_sections($sections)
230 {
231 foreach ($sections as $section => $enable)
232 {
233 $this->_profiler_sections[$section] = ($enable !== FALSE) ? TRUE : FALSE;
234 }
Phil Sturgeon60ed1a32011-03-08 21:43:54 +0000235
236 return $this;
Derek Jonesee71c802010-03-10 10:05:05 -0600237 }
238
239 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200240
Derek Allard2067d1a2008-11-13 22:59:24 +0000241 /**
242 * Set Cache
243 *
244 * @access public
245 * @param integer
246 * @return void
Barry Mienydd671972010-10-04 16:33:58 +0200247 */
Derek Allard2067d1a2008-11-13 22:59:24 +0000248 function cache($time)
249 {
250 $this->cache_expiration = ( ! is_numeric($time)) ? 0 : $time;
Phil Sturgeon60ed1a32011-03-08 21:43:54 +0000251
252 return $this;
Derek Allard2067d1a2008-11-13 22:59:24 +0000253 }
Barry Mienydd671972010-10-04 16:33:58 +0200254
Derek Allard2067d1a2008-11-13 22:59:24 +0000255 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200256
Derek Allard2067d1a2008-11-13 22:59:24 +0000257 /**
258 * Display Output
259 *
260 * All "view" data is automatically put into this variable by the controller class:
261 *
262 * $this->final_output
263 *
264 * This function sends the finalized output data to the browser along
265 * with any server headers and profile data. It also stops the
266 * benchmark timer so the page rendering speed and memory usage can be shown.
267 *
268 * @access public
269 * @return mixed
Barry Mienydd671972010-10-04 16:33:58 +0200270 */
Derek Allard2067d1a2008-11-13 22:59:24 +0000271 function _display($output = '')
Barry Mienydd671972010-10-04 16:33:58 +0200272 {
Derek Allard2067d1a2008-11-13 22:59:24 +0000273 // Note: We use globals because we can't use $CI =& get_instance()
274 // since this function is sometimes called by the caching mechanism,
275 // which happens before the CI super object is available.
276 global $BM, $CFG;
Derek Jonesd7633492010-09-28 13:14:57 -0500277
278 // Grab the super object if we can.
Greg Akercc922102010-11-17 20:25:08 -0600279 if (class_exists('CI_Controller'))
Derek Jonesd7633492010-09-28 13:14:57 -0500280 {
281 $CI =& get_instance();
282 }
283
Derek Allard2067d1a2008-11-13 22:59:24 +0000284 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200285
Derek Allard2067d1a2008-11-13 22:59:24 +0000286 // Set the output data
287 if ($output == '')
288 {
289 $output =& $this->final_output;
290 }
Barry Mienydd671972010-10-04 16:33:58 +0200291
Derek Allard2067d1a2008-11-13 22:59:24 +0000292 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200293
Derek Jonesd7633492010-09-28 13:14:57 -0500294 // Do we need to write a cache file? Only if the controller does not have its
295 // own _output() method and we are not dealing with a cache file, which we
296 // can determine by the existence of the $CI object above
297 if ($this->cache_expiration > 0 && isset($CI) && ! method_exists($CI, '_output'))
Derek Allard2067d1a2008-11-13 22:59:24 +0000298 {
299 $this->_write_cache($output);
300 }
Barry Mienydd671972010-10-04 16:33:58 +0200301
Derek Allard2067d1a2008-11-13 22:59:24 +0000302 // --------------------------------------------------------------------
303
304 // Parse out the elapsed time and memory usage,
305 // then swap the pseudo-variables with the data
Barry Mienydd671972010-10-04 16:33:58 +0200306
307 $elapsed = $BM->elapsed_time('total_execution_time_start', 'total_execution_time_end');
Derek Jones46520492010-03-02 13:53:25 -0600308
309 if ($this->parse_exec_vars === TRUE)
310 {
311 $memory = ( ! function_exists('memory_get_usage')) ? '0' : round(memory_get_usage()/1024/1024, 2).'MB';
Barry Mienydd671972010-10-04 16:33:58 +0200312
Derek Jones46520492010-03-02 13:53:25 -0600313 $output = str_replace('{elapsed_time}', $elapsed, $output);
314 $output = str_replace('{memory_usage}', $memory, $output);
315 }
Derek Allard2067d1a2008-11-13 22:59:24 +0000316
317 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200318
Derek Allard2067d1a2008-11-13 22:59:24 +0000319 // Is compression requested?
Pascal Kriete676e1cd2010-04-09 21:16:16 +0200320 if ($CFG->item('compress_output') === TRUE && $this->_zlib_oc == FALSE)
Derek Allard2067d1a2008-11-13 22:59:24 +0000321 {
322 if (extension_loaded('zlib'))
323 {
324 if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) AND strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== FALSE)
325 {
326 ob_start('ob_gzhandler');
327 }
328 }
329 }
330
331 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200332
Derek Allard2067d1a2008-11-13 22:59:24 +0000333 // Are there any server headers to send?
334 if (count($this->headers) > 0)
335 {
336 foreach ($this->headers as $header)
337 {
338 @header($header[0], $header[1]);
339 }
Barry Mienydd671972010-10-04 16:33:58 +0200340 }
Derek Allard2067d1a2008-11-13 22:59:24 +0000341
342 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200343
Derek Jonesd7633492010-09-28 13:14:57 -0500344 // Does the $CI object exist?
Derek Allard2067d1a2008-11-13 22:59:24 +0000345 // If not we know we are dealing with a cache file so we'll
346 // simply echo out the data and exit.
Derek Jonesd7633492010-09-28 13:14:57 -0500347 if ( ! isset($CI))
Derek Allard2067d1a2008-11-13 22:59:24 +0000348 {
349 echo $output;
350 log_message('debug', "Final output sent to browser");
351 log_message('debug', "Total execution time: ".$elapsed);
352 return TRUE;
353 }
Barry Mienydd671972010-10-04 16:33:58 +0200354
Derek Allard2067d1a2008-11-13 22:59:24 +0000355 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200356
Derek Allard2067d1a2008-11-13 22:59:24 +0000357 // Do we need to generate profile data?
358 // If so, load the Profile class and run it.
359 if ($this->enable_profiler == TRUE)
360 {
Barry Mienydd671972010-10-04 16:33:58 +0200361 $CI->load->library('profiler');
362
Derek Jonesee71c802010-03-10 10:05:05 -0600363 if ( ! empty($this->_profiler_sections))
364 {
365 $CI->profiler->set_sections($this->_profiler_sections);
Barry Mienydd671972010-10-04 16:33:58 +0200366 }
Derek Jonesee71c802010-03-10 10:05:05 -0600367
Derek Allard2067d1a2008-11-13 22:59:24 +0000368 // If the output data contains closing </body> and </html> tags
369 // we will remove them and add them back after we insert the profile data
370 if (preg_match("|</body>.*?</html>|is", $output))
371 {
372 $output = preg_replace("|</body>.*?</html>|is", '', $output);
373 $output .= $CI->profiler->run();
374 $output .= '</body></html>';
375 }
376 else
377 {
378 $output .= $CI->profiler->run();
379 }
380 }
Barry Mienydd671972010-10-04 16:33:58 +0200381
Derek Allard2067d1a2008-11-13 22:59:24 +0000382 // --------------------------------------------------------------------
383
384 // Does the controller contain a function named _output()?
385 // If so send the output there. Otherwise, echo it.
386 if (method_exists($CI, '_output'))
387 {
388 $CI->_output($output);
389 }
390 else
391 {
392 echo $output; // Send it to the browser!
393 }
Barry Mienydd671972010-10-04 16:33:58 +0200394
Derek Allard2067d1a2008-11-13 22:59:24 +0000395 log_message('debug', "Final output sent to browser");
Barry Mienydd671972010-10-04 16:33:58 +0200396 log_message('debug', "Total execution time: ".$elapsed);
Derek Allard2067d1a2008-11-13 22:59:24 +0000397 }
Barry Mienydd671972010-10-04 16:33:58 +0200398
Derek Allard2067d1a2008-11-13 22:59:24 +0000399 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200400
Derek Allard2067d1a2008-11-13 22:59:24 +0000401 /**
402 * Write a Cache File
403 *
404 * @access public
405 * @return void
Barry Mienydd671972010-10-04 16:33:58 +0200406 */
Derek Allard2067d1a2008-11-13 22:59:24 +0000407 function _write_cache($output)
408 {
Barry Mienydd671972010-10-04 16:33:58 +0200409 $CI =& get_instance();
Derek Allard2067d1a2008-11-13 22:59:24 +0000410 $path = $CI->config->item('cache_path');
Barry Mienydd671972010-10-04 16:33:58 +0200411
Greg Aker2eaa4072010-12-21 11:44:08 -0600412 $cache_path = ($path == '') ? APPPATH.'cache/' : $path;
Barry Mienydd671972010-10-04 16:33:58 +0200413
Derek Allard2067d1a2008-11-13 22:59:24 +0000414 if ( ! is_dir($cache_path) OR ! is_really_writable($cache_path))
415 {
Greg Akera7f5a942010-09-14 17:20:53 -0500416 log_message('error', "Unable to write cache file: ".$cache_path);
Derek Allard2067d1a2008-11-13 22:59:24 +0000417 return;
418 }
Barry Mienydd671972010-10-04 16:33:58 +0200419
Derek Allard2067d1a2008-11-13 22:59:24 +0000420 $uri = $CI->config->item('base_url').
421 $CI->config->item('index_page').
422 $CI->uri->uri_string();
Barry Mienydd671972010-10-04 16:33:58 +0200423
Derek Allard2067d1a2008-11-13 22:59:24 +0000424 $cache_path .= md5($uri);
425
426 if ( ! $fp = @fopen($cache_path, FOPEN_WRITE_CREATE_DESTRUCTIVE))
427 {
428 log_message('error', "Unable to write cache file: ".$cache_path);
429 return;
430 }
Barry Mienydd671972010-10-04 16:33:58 +0200431
Derek Allard2067d1a2008-11-13 22:59:24 +0000432 $expire = time() + ($this->cache_expiration * 60);
Barry Mienydd671972010-10-04 16:33:58 +0200433
Derek Allard2067d1a2008-11-13 22:59:24 +0000434 if (flock($fp, LOCK_EX))
435 {
436 fwrite($fp, $expire.'TS--->'.$output);
437 flock($fp, LOCK_UN);
438 }
439 else
440 {
441 log_message('error', "Unable to secure a file lock for file at: ".$cache_path);
442 return;
443 }
444 fclose($fp);
Derek Jones172e1612009-10-13 14:32:48 +0000445 @chmod($cache_path, FILE_WRITE_MODE);
Derek Allard2067d1a2008-11-13 22:59:24 +0000446
447 log_message('debug', "Cache file written: ".$cache_path);
448 }
449
450 // --------------------------------------------------------------------
Barry Mienydd671972010-10-04 16:33:58 +0200451
Derek Allard2067d1a2008-11-13 22:59:24 +0000452 /**
453 * Update/serve a cached file
454 *
455 * @access public
456 * @return void
Barry Mienydd671972010-10-04 16:33:58 +0200457 */
Derek Allard2067d1a2008-11-13 22:59:24 +0000458 function _display_cache(&$CFG, &$URI)
459 {
Greg Aker2eaa4072010-12-21 11:44:08 -0600460 $cache_path = ($CFG->item('cache_path') == '') ? APPPATH.'cache/' : $CFG->item('cache_path');
Barry Mienydd671972010-10-04 16:33:58 +0200461
Derek Allard2067d1a2008-11-13 22:59:24 +0000462 // Build the file path. The file name is an MD5 hash of the full URI
463 $uri = $CFG->item('base_url').
464 $CFG->item('index_page').
465 $URI->uri_string;
Barry Mienydd671972010-10-04 16:33:58 +0200466
Derek Allard2067d1a2008-11-13 22:59:24 +0000467 $filepath = $cache_path.md5($uri);
Barry Mienydd671972010-10-04 16:33:58 +0200468
Derek Allard2067d1a2008-11-13 22:59:24 +0000469 if ( ! @file_exists($filepath))
470 {
471 return FALSE;
472 }
Barry Mienydd671972010-10-04 16:33:58 +0200473
Derek Allard2067d1a2008-11-13 22:59:24 +0000474 if ( ! $fp = @fopen($filepath, FOPEN_READ))
475 {
476 return FALSE;
477 }
Barry Mienydd671972010-10-04 16:33:58 +0200478
Derek Allard2067d1a2008-11-13 22:59:24 +0000479 flock($fp, LOCK_SH);
Barry Mienydd671972010-10-04 16:33:58 +0200480
Derek Allard2067d1a2008-11-13 22:59:24 +0000481 $cache = '';
482 if (filesize($filepath) > 0)
483 {
484 $cache = fread($fp, filesize($filepath));
485 }
Barry Mienydd671972010-10-04 16:33:58 +0200486
Derek Allard2067d1a2008-11-13 22:59:24 +0000487 flock($fp, LOCK_UN);
488 fclose($fp);
Barry Mienydd671972010-10-04 16:33:58 +0200489
490 // Strip out the embedded timestamp
Derek Allard2067d1a2008-11-13 22:59:24 +0000491 if ( ! preg_match("/(\d+TS--->)/", $cache, $match))
492 {
493 return FALSE;
494 }
Barry Mienydd671972010-10-04 16:33:58 +0200495
Derek Allard2067d1a2008-11-13 22:59:24 +0000496 // Has the file expired? If so we'll delete it.
497 if (time() >= trim(str_replace('TS--->', '', $match['1'])))
Derek Jonesd99e6032010-03-19 19:57:33 -0500498 {
499 if (is_really_writable($cache_path))
500 {
501 @unlink($filepath);
502 log_message('debug', "Cache file has expired. File deleted");
Barry Mienydd671972010-10-04 16:33:58 +0200503 return FALSE;
Derek Jonesd99e6032010-03-19 19:57:33 -0500504 }
Derek Allard2067d1a2008-11-13 22:59:24 +0000505 }
506
507 // Display the cache
508 $this->_display(str_replace($match['0'], '', $cache));
Barry Mienydd671972010-10-04 16:33:58 +0200509 log_message('debug', "Cache file is current. Sending it to browser.");
Derek Allard2067d1a2008-11-13 22:59:24 +0000510 return TRUE;
511 }
512
513
514}
515// END Output Class
516
517/* End of file Output.php */
Derek Jonesc68dfbf2010-03-02 12:59:23 -0600518/* Location: ./system/core/Output.php */