if (!$sql->select('rss', '*', "rss_class!=2 AND rss_url='" . $content_type . "' " . $check_topic . " AND rss_limit>0 ")) { // Check if wildcard present for topic_id $check_topic = $topic_id ? " AND rss_topicid = '" . str_replace($topic_id, "*", $topic_id) . "' " : ""; if (!$sql->select('rss', '*', "rss_class!=2 AND rss_url='" . $content_type . "' " . $check_topic . " AND rss_limit>0 ")) { require_once HEADERF; $ns->tablerender('', RSS_LAN_ERROR_1); require_once FOOTERF; exit; } else { $row = $sql->fetch(); } } else { $row = $sql->fetch(); } // ---------------------------------------------------------------------------- if ($rss = new rssCreate($content_type, $rss_type, $topic_id, $row)) { $rss_title = $rss->contentType ? $rss->contentType : ucfirst($content_type); if (E107_DEBUG_LEVEL > 0) { define('e_IFRAME', true); require_once HEADERF; $rss->debug(); require_once FOOTERF; exit; } else { $rss->buildRss($rss_title); } } else { require_once HEADERF; $ns->tablerender(RSS_LAN_ERROR_0, RSS_LAN_ERROR_1); require_once FOOTERF; exit;
if (!$sql->db_Select('rss', '*', "rss_class!=2 AND rss_url='" . $content_type . "' " . $check_topic . " AND rss_limit>0 ")) { // Check if wildcard present for topic_id $check_topic = $topic_id ? " AND rss_topicid = '" . str_replace($topic_id, "*", $topic_id) . "' " : ""; if (!$sql->db_Select('rss', '*', "rss_class!=2 AND rss_url='" . $content_type . "' " . $check_topic . " AND rss_limit>0 ")) { require_once HEADERF; $ns->tablerender('', RSS_LAN_ERROR_1); require_once FOOTERF; exit; } else { $row = $sql->db_Fetch(); } } else { $row = $sql->db_Fetch(); } // ---------------------------------------------------------------------------- if ($rss = new rssCreate($content_type, $rss_type, $topic_id, $row)) { $rss_title = $rss->contentType ? $rss->contentType : ucfirst($content_type); $rss->buildRss($rss_title); } else { require_once HEADERF; $ns->tablerender(RSS_LAN_ERROR_0, RSS_LAN_ERROR_1); require_once FOOTERF; exit; } class rssCreate { protected $e107; var $contentType; var $rssType; var $path; var $parm;