<?php
include_once "./lastRSS.php";
$rss = new lastRSS;
$rss->cache_dir = './temp';
$rss->cache_time = 3600;
$s = $_GET["s"];
if (isset($s)) {
 $st = urldecode(strtolower($s));
 $state = $state_list[$s];
echo "<ul title='Lakers News' selected='true'>\n";
//echo $st;
//echo $state;
//$feedurl = 'http://pipes.yahoo.com/pipes/pipe.run?_id=ulER4Mzk2xG54hulnkartA&_render=rss';
$feedurl = 'http://www.nba.com/lakers/rss.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'><small>".urldecode(str_replace("&amp;","&",$item['title']))."<br><span style='font-size:13px;color:#000;'>".$item['description']."</span></small></li>";
} } } else { echo "<li>Error with feed</li>"; }
echo "</ul>\n";
?>
