<?php
if(!defined('IN_GATEWEI')){
	exit('Access Denied'); 
}
?>
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
 <channel>
  <title><?php echo $sitename?></title>
  <link><?php echo site(1)?></link>
  <description><?php echo $sitename?> -- <?php echo $sitekeywords?></description>
  <pubDate><?php echo gmdate('r',$timestamp+3600*8)?></pubDate>
  <language>zh-CN</language>
  <image>
   <link><?php echo site(1)?></link>
   <url><?php echo $sitelogo='<img src="./templates/default/images/sitelogo.gif" alt='.$sitename.'>'?></url>
   <title><?php echo $sitename?></title>
  </image>
  <?php foreach($rssarticles as $key =>$val){ ?>
  <item>
   <title><?php echo $val['articletitle']?></title>
   <link>viewarticle.php?aid=<?php echo $val['aid']?></link>
	 <category><![CDATA[<?php echo <?php echo $articlecategory[$val['categoryid']]['categorytitle']?>?>]]></category>
   <description><![CDATA[<b><?php echo $val['useraccount']?></b><br />
		<?php echo $val['articletitle']?>
  </description>
   <pubDate><?php echo gmdate('r',$val['subtime']+3600*8)?></pubDate>
   <guid>viewarticle.php?aid=<?php echo $val['aid']?></guid>
  </item>
<?php }?>
 </channel>
</rss>