. * */ define('NO_SESSION', '1'); require_once 'lib/init.php'; /* Check Perms */ if (!AmpConfig::get('use_rss') || AmpConfig::get('demo_mode')) { UI::access_denied(); exit; } // Add in our base hearder defining the content type header("Content-Type: application/xml; charset=" . AmpConfig::get('site_charset')); $type = $_REQUEST['type']; $rss = new Ampache_RSS($type); $params = null; if ($type === "podcast") { $params = array(); $params['object_type'] = $_REQUEST['object_type']; $params['object_id'] = $_REQUEST['object_id']; } echo $rss->get_xml($params);