"; //print_r($rs); //echo ""; echo "
" . $item['title'] . "
" .html_entity_decode($item['description']). "
" . RSSCACHE_PATH . ") needs to be writable for this plugin to work. Double-check it. Deactivate the aggrss plugin.");
endif;
// create lastRSS object
$lastRSS = new lastRSS;
// setup transparent cache
$lastRSS->cache_dir = RSSCACHE_PATH;
$lastRSS->cache_time = RSSCACHE_TIME;
//
$lastRSS->date_format = 'U';
}
add_filter('wp_head', 'initAggrss');
function aggrss($rssurl,$striptags=false,$num=0) {
global $lastRSS;
$lastRSS->CDATA= ($striptags) ? "strip" : "content" ;
$lastRSS->items_limit=$num;
if ($aggr = $lastRSS->Get($rssurl))
return $aggr;
else
return 0;
}
?>