define('SYSTEM_DEBUG', false); } //Include all needed classes require_once dirname(__FILE__) . '/../cms_rc_frontend.php'; //Get RSS object $error = 0; $ttl = '1440'; $data = $label = $rssTitle = $description = $link = $categoriesTags = $copyrightTag = $emailTag = ''; $namespaces = 'xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom"'; $hash = md5(serialize($_REQUEST)); $cache = new CMS_cache($hash, 'polymod', 'auto', true); if ($cache->exist()) { //Get content from cache $content = $cache->load(); } else { $cache->start(); if (!isset($_REQUEST['id']) || !sensitiveIO::isPositiveInteger($_REQUEST['id'])) { $error = 1; } else { if (!CMS_poly_rss_definitions::exists($_REQUEST['id'])) { $error = 2; } else { $RSSDefinition = new CMS_poly_rss_definitions($_REQUEST['id']); if ($RSSDefinition->hasError()) { $error = 2; } //Create RSS Content ob_start(); eval(sensitiveIO::stripPHPTags($RSSDefinition->getValue('compiledDefinition'))); $data = ob_get_contents(); ob_end_clean();