$time = time();
switch ($this -> rssType) {
case 1: // Rss 1.0
echo "<?xml version=\"1.0\" encoding=\"".CHARSET."\" ?>
<rss version=\"0.92\">
<channel>
<title>".$tp->toRss($rss_title)."</title>
<link>".$pref['siteurl']."</link>
<description>".$tp->toRss($pref['sitedescription'])."</description>
<lastBuildDate>".$itemdate = date("r", ($time + $this -> offset))."</lastBuildDate>
<docs>http://backend.userland.com/rss092</docs>\n";
foreach($this -> rssItems as $value)
{
// Multi-language rss links.
$link = (e_LANQRY) ? str_replace("?","?".e_LANQRY,$value['link']) : $value['link'];
echo "
<item>
<title>".$tp->toRss($value['title'])."</title>
<description>".substr($tp->toRss($value['description']),0,150)."</description>
<author>".$value['author']."<".$this->nospam($value['author_email'])."></author>
<link>".$link."</link>
</item>";
}
echo "
</channel>
</rss>";
break;