<?
$login_check = "n";
include "../inc/_conf.php";
include "../inc/_lib.php";
include "../inc/_db.php";
echo"<?xml version=\"1.0\" encoding=\"euc-kr\" ?>";
?>

<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> 
	<channel> 
		<title>경북연합방송 : 최근 뉴스</title> 
		<link></link> 
		<description>경북연합방송 :: 최신뉴스 목록입니다.</description> 
		<language>ko</language> 
		<lastBuildDate>Thu, 10 Nov 2011 10:31:14 +0900</lastBuildDate> 
		<ttl>5</ttl> 
		<image> 
			<title>경북연합방송 :: 뉴스피드</title> 
			<link>http://www.gbyhnews.com/news/News.xml</link> 
			<url>http://www.gbyhnews.com/banner/data/banner_1_1318576807.jpg</url> 
		</image>
<?
$PrevMonthHitResult = mysql_query("SELECT news.no,news.mem_name,newscat_info.cat_name,news.subject,news.content,news.input_date FROM newscat_info inner join news on news.section=newscat_info.cat_code WHERE news.use_open = 'y' ORDER BY news.input_date DESC LIMIT 50");
while($RowData = mysql_fetch_array($PrevMonthHitResult)){
?>
		<item> 
		<title><?=trim(htmlspecialchars(stripslashes($RowData[subject])));?></title> 
		<link>http://www.gbyhnews.com/news/?section=<?=$RowData[section]?>&amp;no=<?=$RowData[no]?></link> 
		<description><?=trim(htmlspecialchars(str_replace("&nbsp;"," ", cut_str(strip_tags(stripslashes($RowData[content])),400))));?></description> 
		<pubDate><?=date("D, d M Y H:i:s", $RowData[input_date])?> +0900</pubDate> 
		<author><?=$RowData[mem_name]?></author>
		<category><?=$RowData[cat_name]?></category> 
		</item>
<?}?>
	</channel> 
</rss>
