<?php
require "global.php";
header('Content-Type: application/rss+
xml');
?>
<?
xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">
<channel>
<title><?php print BLOG_CAPTION; ?></title>
<description><?php print BLOG_SUBTITLE; ?></description>
<link><?php print BLOG_URL; ?></link>
<lastBuildDate><?php print date("r"); ?></lastBuildDate>
<generator><?php print "BlogSystem by CSD-Software"; ?></generator>
<language>de</language>
<?php
$querystring = 'SELECT * FROM ' . TABLE_BLOG . ' ORDER BY timeStamp DESC LIMIT 0,15';
$result = $
sql->
query($querystring);
foreach ($
sql->query_data[$result] as $row) {
?>
<item>
<title><?php print $row['charTitle']; ?></title>
<link><?php print BLOG_URL; ?>index.php?showid=<?php print $row['intID']; ?></link>
<description><?php print parse_content(htmlentities($row['textContent'])); ?></description>
<comments><?php print BLOG_URL; ?>index.php?showid=<?php print $row['intID']; ?></comments>
<pubDate><?php print date("r", $row['timeStamp']); ?></pubDate>
<
guid><?php print BLOG_URL; ?>index.php?showid=<?php print $row['intID']; ?></
guid>
</item>
<?php
}
?>
</channel>
</rss>