cvs: php-gtk-web / index.php
| From: | Ben Ramsey | Date: | Sun, 01 Aug 2004 23:04:50 +0000 |
| Subject: | cvs: php-gtk-web / index.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-2544@lists.php.net to get a copy of this message | ||
ramsey Sun Aug 1 19:04:50 2004 EDT
Modified files:
/php-gtk-web index.php
Log:
Added documentation CVS updates to right sidebar of homepage. Used output
buffering to capture the included file (which is normally echoed when
included) so that it can be saved to a variable.
http://cvs.php.net/diff.php/php-gtk-web/index.php?r1=1.73&r2=1.74&ty=u
Index: php-gtk-web/index.php
diff -u php-gtk-web/index.php:1.73 php-gtk-web/index.php:1.74
--- php-gtk-web/index.php:1.73 Wed Jul 28 19:43:18 2004
+++ php-gtk-web/index.php Sun Aug 1 19:04:49 2004
@@ -1,7 +1,15 @@
<?php
/*
- * $Id: index.php,v 1.73 2004/07/28 23:43:18 ramsey Exp $
+ * $Id: index.php,v 1.74 2004/08/01 23:04:49 ramsey Exp $
*/
+
+// Start output buffering in order to grab the data from the documentation
+// CVS updates file (that is echoed when included) and save to a variable
+// instead of echoing it right away.
+ob_start();
+include_once '/manual/en/updates.php';
+$RIGHT_SIDEBAR_DATA = ob_get_clean();
+
$SIDEBAR_DATA = <<< EOF
<h3>What is PHP-GTK?</h3>