//-------------------------------------------------------------------------------------
/**************************************************************************************
* REMOTEDIRCASTER (RDC) *
* (remotedircaster.php) *
* *
* AUTHOR: ZIPO / Grimmet *
* DATE: 2005-07-22 *
* VERSION: 2.1 *
* LICENSE: - free to use, modify, optimize *
* *
* FUNCTION: - creates a xml-rss-file containing mp3-files as items *
* - mp3 files were listed from a remote directory via ftp-connection *
* - the item-tags were generated by the filename of the mp3file. *
* - !!! CHECK THE FOLLOWING NAME-CONVENTION !!! *
* - !!! Every MP3 File must be named like this sample !!! *
###################################################################################
* My_Best_Jokes~The_dog_and_the_lady*000132.mp3 *
###################################################################################
* 1.) title must be seperated from description by a delimiter(usualy: ~)*
* 2.) The Song-duration comes after an asterisk. *
* 3.) follow these format: HHMMSS. *
* - pubDate is generated by the last modified time of the file *
* - underlines '_' will be replaced by space in the xml-tags *
* - fully iTunes compatible *
* - v:2.1= iTunes:duration tag added *
* *
* zord.de * ipodfun.de *
* system@ipodfun.de *
***********************************************************************************
* good script, described in bad english *
**************************************************************************************/
// |\ .~°~. <---- scissors !!
// \ \ <._.°
// - - - -> o- - - - - - start edit here
// / / <~°~.
// |/ °._.°
define("DEBUG", false); //true = enable debug mode
define("FTPSERVER", "ftp.f1gp.it"); //servername/ipadress of the fileserver
define("FTPUSERNAME", "218378@aruba.it"); //ftp username
define("FTPPASSWORD", "su8une"); //ftp password
//----------
//xml - channel tag content
$channel_title = "-F1GrandPrix.it - Radio Box"; //name of your page
$channel_link = "http://www.f1grandprix.it/f12005/news.asp"; //URL to your page
$channel_description = "Radiocronache, notiziari, interviste e servizi esclusivi su F1, GP2, WTCC, A1GP, Moto GP a cura di Fabrizio Corgnati, Anthony Rodella e Alessio Piana"; //description of your page
$channel_language = "it-it"; //language tag
$channel_copyright = "F1GrandPrix.it"; //name of the copyright-holder
$channel_generator = "Design4You.it"; //if not necessary, please dont change
$channel_webmaster = "info@f1grandprix.it"; //mail of the webmaster
$channel_ttl = "60"; //if not necessary, please dont change
$channel_man_editor = "Fabrizio Corgnati, Anthony Rodella, Alessio Piana - info@f1grandprix.it"; //name and email of the managing editor
$channel_category = "Sport"; //Global category
//iTunes - channel tag content
$itunes_author = "Fabrizio Corgnati, Anthony Rodella, Alessio Piana"; //name of the copyright-holder
$itunes_subtitle = "Radio Box by F1GrandPrix.it"; //short Podcast Subtitle
$itunes_summary = "Radiocronache, interviste ed esclusive di F1 e motori"; //short Podcast Summary
$itunes_name = "Radio Box by F1GrandPrix.it";//the name of your Podcast shown in itunes
$itunes_email = "info@f1grandprix.it";
$itunes_explicit = "no"; // explicit content? only 'no' or 'yes' is allowed
$itunes_keywords = "f1 ferrari formula 1 formula uno motori motogp, motori"; // chose up to 6 keywords, seperate by spaces
//iTunes - image tag content
$itunes_img_url = "http://www.f1grandprix.it/public/podcast/logopodcast.jpg"; //The URL the podcast-image should link to
$itunes_img_title = "F1Grandprix.it"; //image alt text
$itunes_img_link = "http://www.f1grandprix.it/public/podcast/logopodcast.jpg"; //300px x 300px Podcast cover image
//iTunes - categorie tag content
$itunes_category = "Sport"; //The main category within itunes
$itunes_sub_category = "Motorsport"; //The sub category within itunes
$linkurl = "http://www.f1gp.it/Podcast/"; //url where the mp3s can be downloaded (via http)
$dirname = "Podcast"; //directory of the mp3s relative to the ftp home directory
$fileext = ".mp3"; //extension of the files which should be listed (including the '.')
$delimiter = '--'; //delimiter between title and description in filename (must be unique)
// |\ .~°~.
// \ \ <._.°
// - - - -> o- - - - - - end edit here
// / / <~°~.
// |/ °._.°
//**************************************************
$mp3array = array();
if (DEBUG)
{
$starttime = time();
echo "