if(isset($_COOKIE['mcastsReg'])) {
$cookie = $_COOKIE['mcastsReg'];
} else {
$cookie = "";
}
$i = 0;
foreach( $item as $value ) {
$figs = $value->getElementsByTagName("fig");
$figcontent[$i] = $figs->item(0)->nodeValue;
$descriptions = $value->getElementsByTagName("description");
$descriptioncontent[$i] = $descriptions->item(0)->nodeValue;
$links = $value->getElementsByTagName("link");
$linkcontent[$i] = $links->item(0)->nodeValue;
$filename = strrchr($linkcontent[$i], '/');
$filename = str_replace("/", "", $filename);
$filename = str_replace(".mp3", "", $filename);
$titles = $value->getElementsByTagName("title");
$titlecontent[$i] = $titles->item(0)->nodeValue;
$pubDates = $value->getElementsByTagName("pubDate");
$pubDatecontent[$i] = $pubDates->item(0)->nodeValue;
echo "
";
echo "$titlecontent[$i]";
echo "
$pubDatecontent[$i]"; echo "
$descriptioncontent[$i]"; echo "
"; echo ""; if (strpos($cookie, $filename) !== false) { $newCookie = $cookie; echo ""; } else { $newCookie = $cookie . $filename; echo "
$i++;
}
?>
$pubDatecontent[$i]"; echo "
$descriptioncontent[$i]"; echo "
"; echo ""; if (strpos($cookie, $filename) !== false) { $newCookie = $cookie; echo ""; } else { $newCookie = $cookie . $filename; echo "
";
echo "Register and download this episode
";
?>
}
?>