\n"; print "\n"; print "\n"; print "\n"; print "" . $titleTAG . "\n"; print "potpourri,podpouri,french,francais,german,deutsch,english,englisch,new zealand,australia,iceland, florian knorn\n"; print "A blend of languages and topics... von einem Synchronsprecher ;-)\n"; print "Florian Knorn\n"; print " ". $descriptionTAG . "\n"; print "\n"; print " \n"; print "\n"; print "\n"; print " \n"; print "\n"; print "\n"; print " \n"; print "\n"; print "" . $linkTAG . "\n"; print "" . $descriptionTAG . "\n"; print "" . date("r") ."\n"; print "" . $languageTAG . "\n"; print "" . $copyrightTAG . "\n"; print "\n"; print " Florian Knorn\n"; print " florian@knorn.org\n"; print "\n"; print "no\n"; print "florian@knorn.org\n"; print "\n"; print " http://podcast.knorn.org/podpourri.jpg\n"; print " Podpourri\n"; print " http://podcast.knorn.org\n"; print "\n"; print "\n"; print "" . $generatorTAG . "\n"; print "" . $webMasterTAG . "\n"; print "" . $ttlTAG . "\n\n"; echo file_get_contents("rssfeed.static"); /* $dirArray = getDir("./"); // Get a list of the current directory while (list($i, $filename) = each($dirArray)AND $maxFeed > 0) { if ($filename == "podpourri_11s_teaser.mp3") continue; if (strrchr(strtolower($filename), ".") == ".mp3") { if (file_exists(substr($filename,0,-3)."nfo")) { $t_ext = explode("|||",file_get_contents(substr($filename,0,-3)."nfo")); $title = utf8_encode($t_ext[0]); $comment = utf8_encode($t_ext[1]); $comment .= "\n\nMore infos at:\n\npodcast.knorn.org"; } else { $mp3file = new id3($filename); if (isset($mp3file->id3v2tag['FRAMES']['TIT2'])) { $title = $mp3file->id3v2tag['FRAMES']['TIT2']['data']; $title = utf8_encode(substr($title,0,-1)); } else { $title = ''; } if (isset($mp3file->id3v2tag['FRAMES']['COMM'])) { $comment = $mp3file->id3v2tag['FRAMES']['COMM']['data']['']; $comment = utf8_encode(str_replace("\x84",'"',str_replace("\x94",'"',substr($comment,0,-1)))); } else { $comment = ''; } } $type = "audio/mpeg"; } elseif (strrchr(strtolower($filename), ".") == ".m4v") { $t_ext = explode("|||",file_get_contents(substr($filename,0,-3)."nfo")); $title = utf8_encode($t_ext[0]); $comment = utf8_encode($t_ext[1]); $comment .= "\n\nMore infos at:\n\npodcast.knorn.org"; $type = "video/m4v"; } if ($title == "Ciao Jona") { // note: three equal signs $explicit = true; } else { $explicit = false; } $length = explode('__',$filename); $length = substr($length[1],0,-10).":".substr($length[1],-9,-7); $filedate = strtotime(substr($filename,0,8)); print "\n"; echo ("".$title."\n"); echo ("".$rootMP3URL."/". htmlentities(str_replace(" ", "%20", $filename)) ."\n"); echo ("".$rootMP3URL."/". htmlentities(str_replace(" ", "%20", $filename)) ."\n"); echo ("".date("r",$filedate)."\n"); echo ("".$comment."\n"); echo ("Florian Knorn\n"); echo ("".$length."\n"); if ($explicit) echo ("yes\n"); else echo ("no\n"); echo ("\n"); // Training slash for XML print "\n\n"; $maxFeed--; } print "\n\n"; // Functions and Classes function stripJunk ($text) { // Strip non-text characters for ($c=0; $c= 32 AND ord($text[$c]) <= 122) $outText.=$text[$c]; } return $outText; } function getDir($mp3Dir) { // Returns directory as array[file]=date in newest to oldest order $dirArray = array(); $i = 0; $diskdir = "./$mp3Dir/"; if (is_dir($diskdir)) { $dh = opendir($diskdir); while (($file = readdir($dh)) != false ) { if (filetype($diskdir . $file) == "file" && $file[0] != ".") { if (strrchr(strtolower($file), ".") == ".mp3" || (strrchr(strtolower($file), ".") == ".m4v")) { // $ftime = filemtime($mp3Dir."/".$file); $i++; $dirArray[$i] = $file; } } } closedir($dh); } asort($dirArray); $dirArray = array_reverse($dirArray); return $dirArray; } */ ?>