<?php
include('../../../scriptor/common_include.php');
header('Content-type: text/xml; charset=utf-8');
?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>www.deanmadzarovich.com - Blog</title>
<description>Blog Deana Madžaroviča</description>
<link><?=$baseurl?></link>
<atom:link href="<?=$baseurl?>rss/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate><?=date('D, d M Y H:i:s O')?></lastBuildDate>

<?php
	$news_ids[] = 19;


	include_once($basedir.'modules/documents/documents_class.php');
	$docs = new documents();
	
	foreach($news_ids as $n_id){
		$newss = $docs->get_list($n_id,'slo','news',true,true,5);
		if($newss){
		foreach($newss as $news){
			$news['rfc822_date'] = date('D, d M Y H:i:s O',strtotime($news['publishdate']));
		?>
			<item>
			<title><?=$news['title']?></title>
			<link><?=htmlentities($site_baseurl.'index.php?page=news&item='.$n_id.'&id='.$news['id'])?></link>
			<guid><?=htmlentities($site_baseurl.'index.php?page=news&item='.$n_id.'&id='.$news['id'])?></guid>
			<pubDate><?=$news['rfc822_date']?></pubDate>
			</item>
		<?
		}
		} 
	}
?>

</channel>
</rss>


