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 = '