Update of /cvsroot/fink/web
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7617
Modified Files:
index.en.php
Added Files:
package-updates.inc
Log Message:
split out the rss include bit
--- NEW FILE: package-updates.inc ---
<?
include "XML/RSS.php";
$rss =& new XML_RSS("news/rdf/fink-unstable-no-splitoffs.rdf");
$rss->parse();
$count = 0;
foreach($rss->getItems() as $item) {
$date = $item['dc:date'];
$date = ereg_replace('T.*$', '', $date);
echo "<a style=\"text-decoration: none\" href=\"" .
htmlentities($item['link']) . "\" name=\"" . urlencode($item['title']) .
"\"><span class=\"news-date\">" . $date . ": </span><span
class=\"news-headline\">" . $item['title'] . "</span></a><br />\n";
if (++$count > 10) {
break;
}
}
?>
Index: index.en.php
===================================================================
RCS file: /cvsroot/fink/web/index.en.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- index.en.php 13 Apr 2009 20:22:50 -0000 1.26
+++ index.en.php 14 Apr 2009 14:54:35 -0000 1.27
@@ -9,7 +9,6 @@
';
include "header.inc";
-include "XML/RSS.php";
?>
@@ -45,21 +44,8 @@
<h1><a href="http://feeds2.feedburner.com/FinkProjectNews-unstable"
title="Subscribe to my feed, Fink Project News" rel="alternate"
type="application/rss+xml"><img src="img/feed-icon16x16.png" alt=""
style="border:0"/></a>
Recent Package Updates</h1>
-<?
-$rss =& new XML_RSS("news/rdf/fink-unstable-no-splitoffs.rdf");
-$rss->parse();
-
-$count = 0;
-foreach($rss->getItems() as $item) {
- $date = $item['dc:date'];
- $date = ereg_replace('T.*$', '', $date);
- echo "<a style=\"text-decoration: none\" href=\"" .
htmlentities($item['link']) . "\" name=\"" . urlencode($item['title']) .
"\"><span class=\"news-date\">" . $date . ": </span><span
class=\"news-headline\">" . $item['title'] . "</span></a><br />\n";
- if (++$count > 10) {
- break;
- }
-}
+<? include "package-updates.inc" ?>
-?>
<a href="package-updates.php">more...</a>
<h1>Status</h1>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs