<?php
$TBS = new clsTinyButStrong;
$TBS->LoadTemplate(basename($_SERVER['SCRIPT_NAME'], ".php").".html") ;
global $xmlobj;
// RSS parser to build data object http://keithdevens.com/software/phpxml.
include ("./xml_parser_KD.php");
//$list[] = "http://cruisingsailor.org/component/option,com_rss/feed,RSS2.0/no_html,1";
//$list[] = "http://rss.azstarnet.com/index.php?section=s1a"; // Feb 2008, throwing errors
$list[] = "http://www.messing-about.com/forums/index.php?action=.xml;type=rss2;sa=recent;boards=2.0,7";
$list[] = "http://rss.nascar.com/rss/news_cup.rss";
$list[] = "http://services.devx.com/outgoing/webdevfeed.xml";
foreach ($list as $key=>$url){
$xml = implode('', file($url));
$xmlobj[] = XML_unserialize(&$xml);
$debug .= $url."<br>";
unset($xml);
}
$print_xmlobj = print_r($xmlobj,true);
$TBS->MergeBlock('main', 'array', 'xmlobj' );
$TBS->MergeBlock('sub', 'array', 'xmlobj[%p1%][rss][channel][item]' );
$TBS->Show();
?>