get_cfg(); header("Content-Type: application/xml; charset=UTF-8"); include("../classes/xml.class.php"); include("../classes/rss.class.php"); include("../classes/mime_type.class.php"); $rss_id = (int)$_GET['rss_id']; $rss = new rss($rss_id); if (in_array($rss_id,array(1,3))) echo $rss->getFeed($cfg,'books'); else if (in_array($rss_id,array(2,4))) echo $rss->getFeed($cfg,'reviews'); else echo $rss->getFeed($cfg); ?>