feed; $hide = rss_plugins_get_option("pfif.hide.feed.$cid"); $channelhide = rss_plugins_get_option("pfif.channel.feed.$cid"); $parsed_feed_url = parse_url($item->url); if (is_array($parsed_feed_url)) $parsed_host = $parsed_feed_url["host"]; #-- must filter be checked in channel view at all? if ($_GET["channel"] && !$channelhide) { return $item; } #-- or hide items on frontpage always? if ($hide && !$_GET["channel"]) { return NULL; } #-- see if url is url on the Gregarius site if ($parsed_host <> $_SERVER['HTTP_HOST']) { // ok #$item->description .= "\n\n"; } else { // hide return NULL; } #-- done return $item; } #-- filter a feed while it gets parsed / before items are written to the DB at all function g_plugin_donotindexyourselffilter_exec_rssitem($item) { $cid = $item["feed"]; $incoming = rss_plugins_get_option("pfif.incoming.feed.$cid"); #-- check for required data if ($cid && $incoming && !empty($item)) { $parsed_feed_url = parse_url($item->url); if (is_array($parsed_feed_url)) $parsed_host = $parsed_feed_url["host"]; #-- kill item if regex DOES NOT match if ($parsed_host == $_SERVER['HTTP_HOST']) { $item = NULL; } } #-- send back return($item); } #-- ??? function g_plugin_exec_feed_list_name($list=NULL) { // $cid = $hide = rss_plugins_get_option("pfif.listhide.feed.$cid"); // ... } ?>