<?
echo "<"."?xml version=\"1.0\" encoding=\"utf-8\" ?".">\n";
#echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\" \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n";
echo "<rss version=\"0.91\">";
if (preg_match("/RELAUNCH05/",$_SERVER[DOCUMENT_ROOT])) $__INC = "/data/spd/RELAUNCH05/produktion/web/htdocs/_inc";
else $__INC = "/home/www/htdocs/_inc";
if (preg_match("/htdocs$/",$_SERVER[DOCUMENT_ROOT])) $DEVURL = "/lv/nds/js";
include($_SERVER[DOCUMENT_ROOT].$DEVURL."/inc/_config.php");
require_once($__INC."/_functions.php");
if (!$init) $init = init();
?>
	<channel>
		<title><?=$__TITLE1?> Nachrichten</title>
		<link>http://<?=$_SERVER[SERVER_NAME].$DEVURL?>/</link>
		<description>Aktuelle Nachrichten: <?=$__TITLE1?></description>
		<language>de-de</language>
		<copyright>Copyright <?=date("Y")?>, <?=$__TITLE1?></copyright>
<?
if ($init) {
	$re = getnews("/lv/nds/js",'','','','0,10');
	if ($re) {
		$i = 0;
		while ($ro = mysql_fetch_array($re)) {
			if ($i == 0) {
				$lbd = strtotime($ro[datum]." 00:00:00");
?>
		<lastBuildDate><?=date("D, d M Y H:i:s",$lbd)?> <?=date("O",$lbd)?></lastBuildDate>
<?
				$i++;
			}
?>
		<item>
			<title><?=$ro[title]?></title>
			<link>http://<?=$_SERVER[SERVER_NAME].$DEVURL?>/aktuell/nachrichten/meldungen/<?=$ro[filename]?></link>
			<description><![CDATA[<?=nl2br($ro[teaser])?>]]></description>
			<pubDate><?=date("D, d M Y H:i:s",strtotime($ro[datum]." 00:00:00"))?> <?=date("O",strtotime($ro[datum]." 00:00:00"))?></pubDate>
		</item>
<?
		}
	}
}
@mysql_close();
?>
	</channel>
</rss>
