No feeds given!"); } //Make sure all feeds are valid for ($i = 0; $i < count($feed); $i++) { if (isset($feed[$i]) && (!$feedcont[$i] = file_get_contents($feed[$i]))) die("Feed does not exist!"); if (isset($feed[$i]) && (!strstr($feedcont[$i], 'Only RSS v2 feeds currently supported!"); } //Create the feed, and merge in all the other feeds given //We could also have specified a second Sort-By parameter when constructing the RSSfeeder element $rss = new RSSfeeder($feed[0]); for ($i = 1; $i < count($feed); $i++) { if (isset($feed[$i])) $rss->mergeWith($feed[$i]); } //Get an array with all the feeds (with sorting enabled) $items = $rss->get(TRUE); //die if no elements are returned if (!is_array($items)) die("Failed to retrieve feed!"); //And now we simply print the feeds $ret = ''."\n"; $colors = array('#BBD9EE', '#C9E7FC'); $ccount = 0; for ($i = 0; $i < $maxelements; $i++) { $ret .= "\t".''."\n"; $ret .= "\t\t".''."\n"; $ret .= "\t".''."\n"; $ccount++; } $ret .= '
'."\n"; $ret .= "\t\t\t".''.$items[$i+$offset]['title'].'
'."\n"; $ret .= "\t\t\t".$items[$i+$offset]['description']."\n"; $ret .= "\t\t".'
'."\n"; echo $ret; ?>