query("SELECT cid,cate_title FROM {$tablepre}xna_category WHERE cate_title='" . $type . "'"); while ($row=$db->row($query)){ $id = $row["cid"]; $types = $row["site_title"]; } if (eregi('^[a-zA-Z]+$', $type)){ $arg = $type > "" ? " and x.rss_cate='$id' ":""; } else{ $arg .= ""; } $type = " for " . $type . ""; } $str = ' '.$options[name].'' . $type . ' XML News Aggregator http://www.ixna.net/ zh-cn iXNA.Net zxswww@gmail.com '.$options['rss_ttl'].' http://www.ixna.com/images/logo.gif http://www.ixna.net/ iXNA.Net '; echo $str; $query = $db->query("SELECT * FROM {$tablepre}xna_feed WHERE state!='0' $arg order by state desc,addtime DESC LIMIT ".($options['rss_num'] ? intval($options['rss_num']) : 50)); while ($row=$db->row($query)){ $row["rss_cate"] = $rss_cate[$row["rss_cate"]]; $row["addtime"] = date("Y-m-d H:i:s",$row["addtime"]); if ( !$options['rss_all_output']) { //$content = $row["feed_description"]; $content = $row['feed_description'].'

Read

'; }else{ $content = $row["feed_content"]; } $str = ' ' . $row["feed_title"] . ' ' . $row["feed_url"] . ' ' . $row["site_name"] . ' ' . $row["addtime"] . ' ' . $row["rss_cate"] . ' '; echo $str; } $str = '
'; @header("Content-type:application/xml; charset=utf-8"); echo $str; ?>