(GPLv2)
or write to the Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA02110-1301, USA.
********************************************************************************/
if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_rssreader.php")) {
die("
Error: This file cannot be opened directly!
");
}
global $dblink,$userid;
$row = $dblink->get_row("SELECT title,link FROM memht_rssreader_links WHERE inblock=1");
$mtitle = outCode($row['title']);
$link = outCode($row['link']);
define('MAGPIE_CACHE_DIR', 'inc/magpie/cache');
require_once("inc/magpie/rss_fetch.inc");
if ($rss = @fetch_rss($link)) {
echo "
".$rss->channel['title']."
";
foreach ($rss->items as $item) {
$href = @$item['link'];
$mtitle = @$item['title'];
if ($href!="" AND $mtitle!="") {
echo "