<?php
function sendPodcast($path)
{
- global $varDir, $host1;
+ global $varDir, $host1, $enablePodcastProxy;
$file = urldecode($path);
if (strpos($file, '..') !== false) {
$sx = simplexml_load_file($cacheFile);
$listItems = array();
+ $urlHandler = $host1 . 'deredirect.php';
+ if ($enablePodcastProxy) {
+ $urlHandler = $host1 . 'proxy.php';
+ }
+
foreach ($sx->channel->item as $item) {
$title = (string) $item->title;
$desc = (string) $item->description;
$listItems[] = getEpisodeItem(
$title,
- $host1 . 'deredirect.php?url=' . urlencode($url),
+ $urlHandler . '?url=' . urlencode($url),
$desc,
'MP3'
);
}
}
-?>
\ No newline at end of file
+?>