cvs: pres2 / display.php
| From: | Derick Rethans | Date: | Tue, 07 Feb 2006 12:44:27 +0000 |
| Subject: | cvs: pres2 / display.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1250@lists.php.net to get a copy of this message | ||
derick Tue Feb 7 12:44:27 2006 UTC
Modified files:
/pres2 display.php
Log:
- Convert output encoding of scripts stored in an external file too when the
encoding attribute is set for an example.
- Added two missing methods (I have no idea why I added those though)
http://cvs.php.net/viewcvs.cgi/pres2/display.php?r1=1.31&r2=1.32&diff_format=u
Index: pres2/display.php
diff -u pres2/display.php:1.31 pres2/display.php:1.32
--- pres2/display.php:1.31 Tue Nov 22 17:29:38 2005
+++ pres2/display.php Tue Feb 7 12:44:27 2006
@@ -490,7 +490,13 @@
system("DISPLAY=localhost:0
$this->slideDir$example->filename");
break;
default:
- include $_html_filename;
+ if (isset($example->encoding)) {
+ ob_start();
+ include $_html_filename;
+ $result = ob_get_contents();
+ ob_end_clean();
+ echo iconv($example->encoding, 'utf8', $result);
+ }
break;
}
} else {
@@ -1922,6 +1928,12 @@
}
}
+ function _div(&$div) {
+ }
+
+ function _div_end(&$div) {
+ }
+
function _divide(&$divide) { /* empty */ }
function _footer(&$footer) {