<?
	// Incluindo Kernel do sistema
	require_once ($_SERVER['DOCUMENT_ROOT'] . "/../framework/core.php");
	
	// Iniciando Cache
	$GTICache = new SuperCache();
	$GTICache->IniciaCache();
	
	// Defino que o tipo de arquivo e XML
	header ("Content-Type:text/xml");  
	

?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title><![CDATA[TNOnline.com.br - O Jornal Eletrônico do Norte do Paraná.]]></title>
	<link>http://www.tnonline.com.br</link>
	<description><![CDATA[Últimas Noticias do TNOnline.com.br]]></description>
	<copyright>2006 - 2011 TNNews© Todos os direitos reservados.</copyright>
	<language>pt-BR</language>
	<lastBuildDate><?=date('D');?>, <?=date('j');?> <?=date('M');?> <?=date('Y');?> <?=date('H');?>:<?=date('i');?>:<?=date('s');?> -0300 </lastBuildDate>
	<category>Esportes</category>
	<image>
		<url>http://tnonline.com.br/img/logos/logo.png</url>
		<title><![CDATA[TNOnline.com.br]]></title>
		<link>http://www.tnonline.com.br</link>
	</image>
	<ttl>10</ttl>
	<atom:link href="http://www.tnonline.com.br/noticias/especial/index.xml" rel="self" type="application/rss+xml" />
<?
	$GTIRss = new TNonline_Rss_Editorias();
	$GTIRss->GeraRSS('1','10');
	foreach ($GTIRss->rss_detalha as &$res_rss) {
?>
	<item>
		<title><![CDATA[ <?=$res_rss['titulo'];?> ]]></title>
		<link><?=$res_rss['link'];?></link>
		<? if(!empty($res_rss['subtitulo'])) { ?>
<description><![CDATA[<?=$res_rss['subtitulo'];?>]]></description>

		<? } ?>
<pubDate><?=$res_rss['data'];?></pubDate>
		<guid isPermaLink="false"><![CDATA[<?=$res_rss['link'];?>]]></guid>
	</item>
<? } ?>
</channel>
</rss>
<?
	// Salva Cache
	$GTICache->CriaCache();
?>
