select("rss", "*", "rss_class='0' AND rss_limit>0 ORDER BY rss_name")) { $tp = e107::getParser(); $sql = e107::getDb(); while($row = $sql->fetch()) { if(strpos($row['rss_url'], "*") === false) // Wildcard topic_id's should not be listed { $name = $tp->toHTML($row['rss_name'], TRUE, 'no_hook, emotes_off'); $title = htmlspecialchars(SITENAME, ENT_QUOTES, 'utf-8')." ".htmlspecialchars($name, ENT_QUOTES, 'utf-8'); e107::link([ 'rel' => 'alternate', 'type' => 'application/rss+xml', 'title' => $title, 'href' => e107::url('rss_menu','rss', $row, array('mode'=>'full')) ]); e107::link([ 'rel' => 'alternate', 'type' => 'application/atom+xml', 'title' => $title, 'href' => e107::url('rss_menu','atom', $row, array('mode'=>'full')) ]); } } unset($name, $title); }