From: alex <bin...@li...> - 2001-08-01 22:49:56
|
alex Wed Aug 1 15:49:50 2001 EDT Modified files: /r2/binarycloud/base/core Debug.php Page.php Log: Couple post mods to Page and Debug for caching Index: r2/binarycloud/base/core/Debug.php diff -u r2/binarycloud/base/core/Debug.php:1.5 r2/binarycloud/base/core/Debug.php:1.6 --- r2/binarycloud/base/core/Debug.php:1.5 Wed Aug 1 14:47:53 2001 +++ r2/binarycloud/base/core/Debug.php Wed Aug 1 15:49:50 2001 @@ -1,7 +1,7 @@ <?php // Header {{{ /******************************************************************************* - ** -File $Id: Debug.php,v 1.5 2001/08/01 21:47:53 alex Exp $ + ** -File $Id: Debug.php,v 1.6 2001/08/01 22:49:50 alex Exp $ ** -License LGPL (http://www.gnu.org/copyleft/lesser.html) ** -Copyright 2001, The Turing Studio, Inc. ** -Author alex black, en...@tu... @@ -689,7 +689,11 @@ function _output_globals() { $this->_output_header('GLOBALS Array'); - print_r($GLOBALS); + ob_start(); + print_r($GLOBALS); + $output = ob_get_contents(); + ob_end_clean(); + echo htmlspecialchars($output, ENT_QUOTES); } // }}} Index: r2/binarycloud/base/core/Page.php diff -u r2/binarycloud/base/core/Page.php:1.12 r2/binarycloud/base/core/Page.php:1.13 --- r2/binarycloud/base/core/Page.php:1.12 Wed Aug 1 14:47:53 2001 +++ r2/binarycloud/base/core/Page.php Wed Aug 1 15:49:50 2001 @@ -1,7 +1,7 @@ <?php // Header {{{ /* - * -File $Id: Page.php,v 1.12 2001/08/01 21:47:53 alex Exp $ + * -File $Id: Page.php,v 1.13 2001/08/01 22:49:50 alex Exp $ * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, The Turing Studio, Inc. * -Authors alex black, en...@tu... @@ -201,7 +201,7 @@ echo join('', $this->output); } - if ($this->cache['is_valid'] == false) { + if ($this->caching == true) { $this->_cache_output('pages'); } } |