cvs: php-gtk-web / docs-rss.php index.php news.rss

From: Date: Thu, 05 Aug 2004 00:53:52 +0000
Subject: cvs: php-gtk-web / docs-rss.php index.php news.rss
Groups: php.gtk.webmaster 
Request: Send a blank email to php-gtk-webmaster+get-2555@lists.php.net to get a copy of this message
ramsey Wed Aug 4 20:53:52 2004 EDT Added files: /php-gtk-web docs-rss.php Modified files: /php-gtk-web index.php news.rss Log: Added news posting about documentation update listing, as well as a dynamically generated RSS feed for documentation updates. http://cvs.php.net/diff.php/php-gtk-web/index.php?r1=1.77&r2=1.78&ty=u Index: php-gtk-web/index.php diff -u php-gtk-web/index.php:1.77 php-gtk-web/index.php:1.78 --- php-gtk-web/index.php:1.77 Tue Aug 3 22:48:57 2004 +++ php-gtk-web/index.php Wed Aug 4 20:53:52 2004 @@ -1,6 +1,6 @@ <?php /* - * $Id: index.php,v 1.77 2004/08/04 02:48:57 andrei Exp $ + * $Id: index.php,v 1.78 2004/08/05 00:53:52 ramsey Exp $ */ // Start output buffering in order to grab the data from the documentation @@ -53,6 +53,17 @@ commonHeader(); ?> +<h1>Documentation updates listed on PHP-GTK Web site</h1> + +<p><span class="newsdate">[05-Aug-2004]</span> The PHP-GTK Web site now features + a regularly updated listing of documentation updates. The listing is + displayed on the home page and is updated every night when the manual is + updated from CVS. Any pages in the manual found with changes are listed. + In addition, a <a href="docs-rss.php">documentation update feed</a> is + available in RSS format.</p> + +<?php hdelim(); ?> + <h1>PHP-GTK 2 is go for GTK+ 2.4</h1> <p><span class="newsdate">[29-Jul-2004]</span> In a thread on http://cvs.php.net/diff.php/php-gtk-web/news.rss?r1=1.6&r2=1.7&ty=u Index: php-gtk-web/news.rss diff -u php-gtk-web/news.rss:1.6 php-gtk-web/news.rss:1.7 --- php-gtk-web/news.rss:1.6 Wed Jul 28 19:45:10 2004 +++ php-gtk-web/news.rss Wed Aug 4 20:53:52 2004 @@ -10,6 +10,7 @@ <description>The PHP-GTK extension Web site</description> <items> <rdf:Seq> + <rdf:li rdf:resource="http://gtk.php.net/docs-rss.php" /> <rdf:li rdf:resource="http://marc.theaimsgroup.com/?l=php-gtk-dev&amp;m=109104992017688&amp;w=2" /> <rdf:li rdf:resource="http://gtk.php.net/news.rss" /> <rdf:li rdf:resource="http://gtk.php.net/" /> @@ -21,6 +22,13 @@ </rdf:Seq> </items> </channel> + +<item rdf:about="http://gtk.php.net/docs-rss.php"> + <title>Documentation updates listed on PHP-GTK Web site</title> + <link>http://gtk.php.net/docs-rss.php</link> + <description>The PHP-GTK Web site now features a regularly updated listing of documentation updates. The listing is displayed on the home page and is updated every night when the manual is updated from CVS. Any pages in the manual found with changes are listed. In addition, a documentation update feed is available in RSS format.</description> + <dc:date>2004-08-05</dc:date> +</item> <item rdf:about="http://marc.theaimsgroup.com/?l=php-gtk-dev&amp;m=109104992017688&amp;w=2"> <title>PHP-GTK 2 is go for GTK+ 2.4</title> http://cvs.php.net/co.php/php-gtk-web/docs-rss.php?r=1.1&p=1 Index: php-gtk-web/docs-rss.php +++ php-gtk-web/docs-rss.php <?php /* * $Id: docs-rss.php,v 1.1 2004/08/05 00:53:52 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(); echo '<?xml version=\'1.0\' standalone=\'yes\'?>' . "\n"; include_once 'http://gtk.php.net/manual/en/updates.php'; $xmlstr = ob_get_clean(); $xml = simplexml_load_string($xmlstr); echo '<?xml version="1.0" encoding="UTF-8"?>'; ?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel rdf:about="http://gtk.php.net/manual"> <title>PHP-GTK Manual</title> <link>http://gtk.php.net/manual</link> <description>The PHP-GTK on-line manual</description> <items> <rdf:Seq> <?php foreach ($xml->a as $link) { echo ' <rdf:li rdf:resource="' . $link->attributes() . '" />'; echo "\n"; } ?> </rdf:Seq> </items> </channel> <?php foreach ($xml->a as $link) { foreach ($link->attributes() as $key => $value) { if ($key == 'date') { $date = date('Y-m-d', strtotime($value)); } else { $url = $value; } } ?> <item rdf:about="<?php echo $url; ?>"> <title><?php echo $link; ?></title> <link><?php echo $url; ?></link> <description>Documentation update: <?php echo $link; ?></description> <dc:date><?php echo $date; ?></dc:date> </item> <?php } ?> </rdf:RDF>

« previous php.gtk.webmaster (#2555) next »