Example #1
0
header('Content-type: text/xml');

// include lastRSS
include_once('htdocs/javascript/jQuery/rsstickerajax/lastrss/lastRSS.php'); //path to lastRSS.php on your server from this script ("bridge.php")

// Create lastRSS object
$rss = new lastRSS();

// proxy support
$proxy_ip = $environment->getConfiguration('c_proxy_ip');
if ( !empty($proxy_ip) ) {
   $rss->setProxyIP($proxy_ip);
}
$proxy_port = $environment->getConfiguration('c_proxy_port');
if ( !empty($proxy_port) ) {
   $rss->setProxyPort($proxy_port);
}

$rss->cache_dir = 'cache'; //path to cache directory on your server from this script. Chmod 777!
$rss->date_format = 'M d, Y g:i:s A'; //date format of RSS item. See PHP date() function for possible input.

// List of RSS URLs
$portlet_array = $context_item->getPortletRSSArray();
$rsslist=array();
foreach($portlet_array as $rss_item){
   $rsslist[$rss_item['title']] = $rss_item['adress'];
}

////Beginners don't need to configure past here////////////////////

$rssid=$_GET['id'];