website/rss.php
Jeff Teunissen 4e36640c23 Generate a basic RSS feed from the news
It's for Ohloh.
2011-08-09 22:36:03 -04:00

20 lines
538 B
PHP

<?
define ('siteHome', "/home/project-web/quake/htdocs");
require siteHome . "/parts/library.inc"; // Load function library
header ("Content-Type: text/xml");
echo('<?xml version="1.0" encoding="utf-8"?>' . "\n");
?>
<rss version="2.0">
<channel>
<title>QuakeForge News</title>
<description>Latest QuakeForge Project news</description>
<link>http://www.quakeforge.net/</link>
<copyright>Copyright 1999-2011 Contributors of the QuakeForge Project</copyright>
<?
$newsFormat = "RSS";
need ('news');
printLatestNews (5);
?>
</rss>