<?php
include_once "./lastRSS.php";
$rss = new lastRSS;
$rss->cache_dir = './temp';
$rss->cache_time = 14400;
$s = $_GET["s"];
if (isset($s)) {
 $st = urldecode(strtolower($s));
 $state = $state_list[$s];
echo "<ul title='Podcasts' selected='true'>\n";
//echo $st;
//echo $state;
//$feedurl = 'http://pipes.yahoo.com/pipes/pipe.run?_id=ulER4Mzk2xG54hulnkartA&_render=rss';
$feedurl = 'http://www.am570radio.com/podcast/LAKERS.xml';
//echo $feedurl;
//foreach($state_list as $st){ echo "$st"; }
//echo $state_list['CA'];
if ($rs = $rss->get($feedurl)) {
foreach($rs['items'] as $item) {
echo "<li style='padding:8px'><a target=\"_self\" class=\"podcast\" href='".$item[enclosure][url]."'>".str_replace('&lt;br&gt;','',strip_tags($item['title']))."</a><span style='font-size:13px;color:#000;'>".$item['description']."</span></li>";
} } } else { echo "<li>Error with feed</li>"; }
echo "</ul>\n";
?>
