############################################################
# PODCAST GENERATOR
#
# Created by Alberto Betella
# Improved by Tim Wasson
#
# This is Free Software released under the GNU/GPL License.
############################################################
if ($fileData != NULL) { //This IF avoids notice error in PHP4 of undefined variable $fileData[0]
$podcast_filetype = $fileData[0];
if ($file_multimediale[1]=="$podcast_filetype") { // if the extension is the same as specified in config.php
$file_size = filesize("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype");
$file_size = $file_size/1048576;
$file_size = round($file_size, 2);
############
$filedescr = "$absoluteurl"."$upload_dir$file_multimediale[0].xml"; //database file
if (file_exists("$filedescr")) { //if database file exists
//$file_contents=NULL;
# READ the XML database file and parse the fields
include("$absoluteurl"."core/readXMLdb.php");
# File details (duration, bitrate, etc...)
$ThisFileInfo = $getID3->analyze("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype"); //read file tags
$file_duration = @$ThisFileInfo['playtime_string'];
$episode_date = date ($dateformat, $value);
if($file_duration!=NULL) { // display file duration
$episode_details = "$L_duration ";
$episode_details .= @$ThisFileInfo['playtime_string'];
$episode_details .= " $L_episode_minutes - $L_episode_filetype ";
$episode_details .= @$ThisFileInfo['fileformat'];
if($podcast_filetype=="mp3") { //if mp3 show bitrate &co
$episode_details .= " - $L_bitrate ";
$episode_details .= @$ThisFileInfo['bitrate']/1000;
$episode_details .= " $L_episode_kbps - $L_frequency ";
$episode_details .= @$ThisFileInfo['audio']['sample_rate'] ;
$episode_details .= " $L_episode_hz";
$episode_date .= " ";
$episode_date .= " ";
}
$episode_details .= " - File Size: ".$file_size." ".$L_bytes;
}
#Define episode headline
if (isset($isvideo) AND $isvideo == "yes") {
//$episode_date .= "$L_view - ";
$isvideo = "no"; //so variable is assigned on every cicle
}
### Here the output code for the episode is created
# Fields Legend (parsed from XML):
# $text_title = episode title
# $text_shortdesc = short description
# $text_longdesc = long description
# $text_imgpg = image (url) associated to episode
# $text_category1, $text_category2, $text_category3 = categories
# $text_keywordspg = keywords
# $text_explicitpg = explicit podcast (yes or no)
# $text_authornamepg = author's name
# $text_authoremailpg = author's email
$PG_mainbody .= '';
$PG_mainbody .= '
'.$text_title.'';
if ($podcast_filetype=="mpg" OR $podcast_filetype=="mpeg" OR $podcast_filetype=="mov" OR $podcast_filetype=="mp4" OR $podcast_filetype=="wmv" OR $podcast_filetype=="3gp" OR $podcast_filetype=="mp4" OR $podcast_filetype=="avi" OR $podcast_filetype=="flv" OR $podcast_filetype=="m4v") { // if it is a video
$episode_date .= ' ';
$isvideo = "yes";
}
$episode_date .= "";
$PG_mainbody .= '
'.$episode_date.'
';
if(isset($text_imgpg) AND $text_imgpg!=NULL AND file_exists("$img_dir$text_imgpg")) {
$PG_mainbody .= "";
}
if(isset($text_longdesc) AND $text_longdesc!=NULL ) { // if is set long description
$PG_mainbody .= $text_longdesc;
} else {
$PG_mainbody .= $text_shortdesc;
}
if($podcast_filetype=="mp3" AND $_GET['p']!="episode") {
//Update the tracks on the right-hand side.
$trackfeed .= "".$text_title."\r";
//$PG_mainbody .= $trackfeed;
} elseif($isvideo == "yes") {
$PG_mainbody .= '
Update Required
To play the media you will need to either update your browser to a recent version or update your Flash plugin.
';
$loadjavascripts .= '
';
} elseif($podcast_filetype=="mp3" AND isset($_GET['p']) AND $_GET['p']=="episode") {
$PG_mainbody .= '
|
';
$loadjavascripts .= '
';
}
$PG_mainbody .= "";
if ($recent_count == 0) { //use keywords of the most recent episode as meta tags in the home page
$assignmetakeywords = $text_keywordspg;
}
$recent_count++; //increment recents
}
}
}?>
############################################################
# PODCAST GENERATOR
#
# Created by Alberto Betella
# Improved by Tim Wasson
#
# This is Free Software released under the GNU/GPL License.
############################################################
if ($fileData != NULL) { //This IF avoids notice error in PHP4 of undefined variable $fileData[0]
$podcast_filetype = $fileData[0];
if ($file_multimediale[1]=="$podcast_filetype") { // if the extension is the same as specified in config.php
$file_size = filesize("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype");
$file_size = $file_size/1048576;
$file_size = round($file_size, 2);
############
$filedescr = "$absoluteurl"."$upload_dir$file_multimediale[0].xml"; //database file
if (file_exists("$filedescr")) { //if database file exists
//$file_contents=NULL;
# READ the XML database file and parse the fields
include("$absoluteurl"."core/readXMLdb.php");
# File details (duration, bitrate, etc...)
$ThisFileInfo = $getID3->analyze("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype"); //read file tags
$file_duration = @$ThisFileInfo['playtime_string'];
$episode_date = date ($dateformat, $value);
if($file_duration!=NULL) { // display file duration
$episode_details = "$L_duration ";
$episode_details .= @$ThisFileInfo['playtime_string'];
$episode_details .= " $L_episode_minutes - $L_episode_filetype ";
$episode_details .= @$ThisFileInfo['fileformat'];
if($podcast_filetype=="mp3") { //if mp3 show bitrate &co
$episode_details .= " - $L_bitrate ";
$episode_details .= @$ThisFileInfo['bitrate']/1000;
$episode_details .= " $L_episode_kbps - $L_frequency ";
$episode_details .= @$ThisFileInfo['audio']['sample_rate'] ;
$episode_details .= " $L_episode_hz";
$episode_date .= " ";
$episode_date .= " ";
}
$episode_details .= " - File Size: ".$file_size." ".$L_bytes;
}
#Define episode headline
if (isset($isvideo) AND $isvideo == "yes") {
//$episode_date .= "$L_view - ";
$isvideo = "no"; //so variable is assigned on every cicle
}
### Here the output code for the episode is created
# Fields Legend (parsed from XML):
# $text_title = episode title
# $text_shortdesc = short description
# $text_longdesc = long description
# $text_imgpg = image (url) associated to episode
# $text_category1, $text_category2, $text_category3 = categories
# $text_keywordspg = keywords
# $text_explicitpg = explicit podcast (yes or no)
# $text_authornamepg = author's name
# $text_authoremailpg = author's email
$PG_mainbody .= '';
$PG_mainbody .= '
'.$text_title.'';
if ($podcast_filetype=="mpg" OR $podcast_filetype=="mpeg" OR $podcast_filetype=="mov" OR $podcast_filetype=="mp4" OR $podcast_filetype=="wmv" OR $podcast_filetype=="3gp" OR $podcast_filetype=="mp4" OR $podcast_filetype=="avi" OR $podcast_filetype=="flv" OR $podcast_filetype=="m4v") { // if it is a video
$episode_date .= ' ';
$isvideo = "yes";
}
$episode_date .= "";
$PG_mainbody .= '
'.$episode_date.'
';
if(isset($text_imgpg) AND $text_imgpg!=NULL AND file_exists("$img_dir$text_imgpg")) {
$PG_mainbody .= "";
}
if(isset($text_longdesc) AND $text_longdesc!=NULL ) { // if is set long description
$PG_mainbody .= $text_longdesc;
} else {
$PG_mainbody .= $text_shortdesc;
}
if($podcast_filetype=="mp3" AND $_GET['p']!="episode") {
//Update the tracks on the right-hand side.
$trackfeed .= "".$text_title."\r";
//$PG_mainbody .= $trackfeed;
} elseif($isvideo == "yes") {
$PG_mainbody .= '
Update Required
To play the media you will need to either update your browser to a recent version or update your Flash plugin.
';
$loadjavascripts .= '
';
} elseif($podcast_filetype=="mp3" AND isset($_GET['p']) AND $_GET['p']=="episode") {
$PG_mainbody .= '
|
';
$loadjavascripts .= '
';
}
$PG_mainbody .= "";
if ($recent_count == 0) { //use keywords of the most recent episode as meta tags in the home page
$assignmetakeywords = $text_keywordspg;
}
$recent_count++; //increment recents
}
}
}?>
############################################################
# PODCAST GENERATOR
#
# Created by Alberto Betella
# Improved by Tim Wasson
#
# This is Free Software released under the GNU/GPL License.
############################################################
if ($fileData != NULL) { //This IF avoids notice error in PHP4 of undefined variable $fileData[0]
$podcast_filetype = $fileData[0];
if ($file_multimediale[1]=="$podcast_filetype") { // if the extension is the same as specified in config.php
$file_size = filesize("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype");
$file_size = $file_size/1048576;
$file_size = round($file_size, 2);
############
$filedescr = "$absoluteurl"."$upload_dir$file_multimediale[0].xml"; //database file
if (file_exists("$filedescr")) { //if database file exists
//$file_contents=NULL;
# READ the XML database file and parse the fields
include("$absoluteurl"."core/readXMLdb.php");
# File details (duration, bitrate, etc...)
$ThisFileInfo = $getID3->analyze("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype"); //read file tags
$file_duration = @$ThisFileInfo['playtime_string'];
$episode_date = date ($dateformat, $value);
if($file_duration!=NULL) { // display file duration
$episode_details = "$L_duration ";
$episode_details .= @$ThisFileInfo['playtime_string'];
$episode_details .= " $L_episode_minutes - $L_episode_filetype ";
$episode_details .= @$ThisFileInfo['fileformat'];
if($podcast_filetype=="mp3") { //if mp3 show bitrate &co
$episode_details .= " - $L_bitrate ";
$episode_details .= @$ThisFileInfo['bitrate']/1000;
$episode_details .= " $L_episode_kbps - $L_frequency ";
$episode_details .= @$ThisFileInfo['audio']['sample_rate'] ;
$episode_details .= " $L_episode_hz";
$episode_date .= " ";
$episode_date .= " ";
}
$episode_details .= " - File Size: ".$file_size." ".$L_bytes;
}
#Define episode headline
if (isset($isvideo) AND $isvideo == "yes") {
//$episode_date .= "$L_view - ";
$isvideo = "no"; //so variable is assigned on every cicle
}
### Here the output code for the episode is created
# Fields Legend (parsed from XML):
# $text_title = episode title
# $text_shortdesc = short description
# $text_longdesc = long description
# $text_imgpg = image (url) associated to episode
# $text_category1, $text_category2, $text_category3 = categories
# $text_keywordspg = keywords
# $text_explicitpg = explicit podcast (yes or no)
# $text_authornamepg = author's name
# $text_authoremailpg = author's email
$PG_mainbody .= '';
$PG_mainbody .= '
'.$text_title.'';
if ($podcast_filetype=="mpg" OR $podcast_filetype=="mpeg" OR $podcast_filetype=="mov" OR $podcast_filetype=="mp4" OR $podcast_filetype=="wmv" OR $podcast_filetype=="3gp" OR $podcast_filetype=="mp4" OR $podcast_filetype=="avi" OR $podcast_filetype=="flv" OR $podcast_filetype=="m4v") { // if it is a video
$episode_date .= ' ';
$isvideo = "yes";
}
$episode_date .= "";
$PG_mainbody .= '
'.$episode_date.'
';
if(isset($text_imgpg) AND $text_imgpg!=NULL AND file_exists("$img_dir$text_imgpg")) {
$PG_mainbody .= "";
}
if(isset($text_longdesc) AND $text_longdesc!=NULL ) { // if is set long description
$PG_mainbody .= $text_longdesc;
} else {
$PG_mainbody .= $text_shortdesc;
}
if($podcast_filetype=="mp3" AND $_GET['p']!="episode") {
//Update the tracks on the right-hand side.
$trackfeed .= "".$text_title."\r";
//$PG_mainbody .= $trackfeed;
} elseif($isvideo == "yes") {
$PG_mainbody .= '
Update Required
To play the media you will need to either update your browser to a recent version or update your Flash plugin.
';
$loadjavascripts .= '
';
} elseif($podcast_filetype=="mp3" AND isset($_GET['p']) AND $_GET['p']=="episode") {
$PG_mainbody .= '
|
';
$loadjavascripts .= '
';
}
$PG_mainbody .= "";
if ($recent_count == 0) { //use keywords of the most recent episode as meta tags in the home page
$assignmetakeywords = $text_keywordspg;
}
$recent_count++; //increment recents
}
}
}?>
############################################################
# PODCAST GENERATOR
#
# Created by Alberto Betella
# Improved by Tim Wasson
#
# This is Free Software released under the GNU/GPL License.
############################################################
if ($fileData != NULL) { //This IF avoids notice error in PHP4 of undefined variable $fileData[0]
$podcast_filetype = $fileData[0];
if ($file_multimediale[1]=="$podcast_filetype") { // if the extension is the same as specified in config.php
$file_size = filesize("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype");
$file_size = $file_size/1048576;
$file_size = round($file_size, 2);
############
$filedescr = "$absoluteurl"."$upload_dir$file_multimediale[0].xml"; //database file
if (file_exists("$filedescr")) { //if database file exists
//$file_contents=NULL;
# READ the XML database file and parse the fields
include("$absoluteurl"."core/readXMLdb.php");
# File details (duration, bitrate, etc...)
$ThisFileInfo = $getID3->analyze("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype"); //read file tags
$file_duration = @$ThisFileInfo['playtime_string'];
$episode_date = date ($dateformat, $value);
if($file_duration!=NULL) { // display file duration
$episode_details = "$L_duration ";
$episode_details .= @$ThisFileInfo['playtime_string'];
$episode_details .= " $L_episode_minutes - $L_episode_filetype ";
$episode_details .= @$ThisFileInfo['fileformat'];
if($podcast_filetype=="mp3") { //if mp3 show bitrate &co
$episode_details .= " - $L_bitrate ";
$episode_details .= @$ThisFileInfo['bitrate']/1000;
$episode_details .= " $L_episode_kbps - $L_frequency ";
$episode_details .= @$ThisFileInfo['audio']['sample_rate'] ;
$episode_details .= " $L_episode_hz";
$episode_date .= " ";
$episode_date .= " ";
}
$episode_details .= " - File Size: ".$file_size." ".$L_bytes;
}
#Define episode headline
if (isset($isvideo) AND $isvideo == "yes") {
//$episode_date .= "$L_view - ";
$isvideo = "no"; //so variable is assigned on every cicle
}
### Here the output code for the episode is created
# Fields Legend (parsed from XML):
# $text_title = episode title
# $text_shortdesc = short description
# $text_longdesc = long description
# $text_imgpg = image (url) associated to episode
# $text_category1, $text_category2, $text_category3 = categories
# $text_keywordspg = keywords
# $text_explicitpg = explicit podcast (yes or no)
# $text_authornamepg = author's name
# $text_authoremailpg = author's email
$PG_mainbody .= '';
$PG_mainbody .= '
'.$text_title.'';
if ($podcast_filetype=="mpg" OR $podcast_filetype=="mpeg" OR $podcast_filetype=="mov" OR $podcast_filetype=="mp4" OR $podcast_filetype=="wmv" OR $podcast_filetype=="3gp" OR $podcast_filetype=="mp4" OR $podcast_filetype=="avi" OR $podcast_filetype=="flv" OR $podcast_filetype=="m4v") { // if it is a video
$episode_date .= ' ';
$isvideo = "yes";
}
$episode_date .= "";
$PG_mainbody .= '
'.$episode_date.'
';
if(isset($text_imgpg) AND $text_imgpg!=NULL AND file_exists("$img_dir$text_imgpg")) {
$PG_mainbody .= "";
}
if(isset($text_longdesc) AND $text_longdesc!=NULL ) { // if is set long description
$PG_mainbody .= $text_longdesc;
} else {
$PG_mainbody .= $text_shortdesc;
}
if($podcast_filetype=="mp3" AND $_GET['p']!="episode") {
//Update the tracks on the right-hand side.
$trackfeed .= "".$text_title."\r";
//$PG_mainbody .= $trackfeed;
} elseif($isvideo == "yes") {
$PG_mainbody .= '
Update Required
To play the media you will need to either update your browser to a recent version or update your Flash plugin.
';
$loadjavascripts .= '
';
} elseif($podcast_filetype=="mp3" AND isset($_GET['p']) AND $_GET['p']=="episode") {
$PG_mainbody .= '
|
';
$loadjavascripts .= '
';
}
$PG_mainbody .= "";
if ($recent_count == 0) { //use keywords of the most recent episode as meta tags in the home page
$assignmetakeywords = $text_keywordspg;
}
$recent_count++; //increment recents
}
}
}?>
############################################################
# PODCAST GENERATOR
#
# Created by Alberto Betella
# Improved by Tim Wasson
#
# This is Free Software released under the GNU/GPL License.
############################################################
if ($fileData != NULL) { //This IF avoids notice error in PHP4 of undefined variable $fileData[0]
$podcast_filetype = $fileData[0];
if ($file_multimediale[1]=="$podcast_filetype") { // if the extension is the same as specified in config.php
$file_size = filesize("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype");
$file_size = $file_size/1048576;
$file_size = round($file_size, 2);
############
$filedescr = "$absoluteurl"."$upload_dir$file_multimediale[0].xml"; //database file
if (file_exists("$filedescr")) { //if database file exists
//$file_contents=NULL;
# READ the XML database file and parse the fields
include("$absoluteurl"."core/readXMLdb.php");
# File details (duration, bitrate, etc...)
$ThisFileInfo = $getID3->analyze("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype"); //read file tags
$file_duration = @$ThisFileInfo['playtime_string'];
$episode_date = date ($dateformat, $value);
if($file_duration!=NULL) { // display file duration
$episode_details = "$L_duration ";
$episode_details .= @$ThisFileInfo['playtime_string'];
$episode_details .= " $L_episode_minutes - $L_episode_filetype ";
$episode_details .= @$ThisFileInfo['fileformat'];
if($podcast_filetype=="mp3") { //if mp3 show bitrate &co
$episode_details .= " - $L_bitrate ";
$episode_details .= @$ThisFileInfo['bitrate']/1000;
$episode_details .= " $L_episode_kbps - $L_frequency ";
$episode_details .= @$ThisFileInfo['audio']['sample_rate'] ;
$episode_details .= " $L_episode_hz";
$episode_date .= " ";
$episode_date .= " ";
}
$episode_details .= " - File Size: ".$file_size." ".$L_bytes;
}
#Define episode headline
if (isset($isvideo) AND $isvideo == "yes") {
//$episode_date .= "$L_view - ";
$isvideo = "no"; //so variable is assigned on every cicle
}
### Here the output code for the episode is created
# Fields Legend (parsed from XML):
# $text_title = episode title
# $text_shortdesc = short description
# $text_longdesc = long description
# $text_imgpg = image (url) associated to episode
# $text_category1, $text_category2, $text_category3 = categories
# $text_keywordspg = keywords
# $text_explicitpg = explicit podcast (yes or no)
# $text_authornamepg = author's name
# $text_authoremailpg = author's email
$PG_mainbody .= '';
$PG_mainbody .= '
'.$text_title.'';
if ($podcast_filetype=="mpg" OR $podcast_filetype=="mpeg" OR $podcast_filetype=="mov" OR $podcast_filetype=="mp4" OR $podcast_filetype=="wmv" OR $podcast_filetype=="3gp" OR $podcast_filetype=="mp4" OR $podcast_filetype=="avi" OR $podcast_filetype=="flv" OR $podcast_filetype=="m4v") { // if it is a video
$episode_date .= ' ';
$isvideo = "yes";
}
$episode_date .= "";
$PG_mainbody .= '
'.$episode_date.'
';
if(isset($text_imgpg) AND $text_imgpg!=NULL AND file_exists("$img_dir$text_imgpg")) {
$PG_mainbody .= "";
}
if(isset($text_longdesc) AND $text_longdesc!=NULL ) { // if is set long description
$PG_mainbody .= $text_longdesc;
} else {
$PG_mainbody .= $text_shortdesc;
}
if($podcast_filetype=="mp3" AND $_GET['p']!="episode") {
//Update the tracks on the right-hand side.
$trackfeed .= "".$text_title."\r";
//$PG_mainbody .= $trackfeed;
} elseif($isvideo == "yes") {
$PG_mainbody .= '
Update Required
To play the media you will need to either update your browser to a recent version or update your Flash plugin.
';
$loadjavascripts .= '
';
} elseif($podcast_filetype=="mp3" AND isset($_GET['p']) AND $_GET['p']=="episode") {
$PG_mainbody .= '
|
';
$loadjavascripts .= '
';
}
$PG_mainbody .= "";
if ($recent_count == 0) { //use keywords of the most recent episode as meta tags in the home page
$assignmetakeywords = $text_keywordspg;
}
$recent_count++; //increment recents
}
}
}?>
############################################################
# PODCAST GENERATOR
#
# Created by Alberto Betella
# Improved by Tim Wasson
#
# This is Free Software released under the GNU/GPL License.
############################################################
if ($fileData != NULL) { //This IF avoids notice error in PHP4 of undefined variable $fileData[0]
$podcast_filetype = $fileData[0];
if ($file_multimediale[1]=="$podcast_filetype") { // if the extension is the same as specified in config.php
$file_size = filesize("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype");
$file_size = $file_size/1048576;
$file_size = round($file_size, 2);
############
$filedescr = "$absoluteurl"."$upload_dir$file_multimediale[0].xml"; //database file
if (file_exists("$filedescr")) { //if database file exists
//$file_contents=NULL;
# READ the XML database file and parse the fields
include("$absoluteurl"."core/readXMLdb.php");
# File details (duration, bitrate, etc...)
$ThisFileInfo = $getID3->analyze("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype"); //read file tags
$file_duration = @$ThisFileInfo['playtime_string'];
$episode_date = date ($dateformat, $value);
if($file_duration!=NULL) { // display file duration
$episode_details = "$L_duration ";
$episode_details .= @$ThisFileInfo['playtime_string'];
$episode_details .= " $L_episode_minutes - $L_episode_filetype ";
$episode_details .= @$ThisFileInfo['fileformat'];
if($podcast_filetype=="mp3") { //if mp3 show bitrate &co
$episode_details .= " - $L_bitrate ";
$episode_details .= @$ThisFileInfo['bitrate']/1000;
$episode_details .= " $L_episode_kbps - $L_frequency ";
$episode_details .= @$ThisFileInfo['audio']['sample_rate'] ;
$episode_details .= " $L_episode_hz";
$episode_date .= " ";
$episode_date .= " ";
}
$episode_details .= " - File Size: ".$file_size." ".$L_bytes;
}
#Define episode headline
if (isset($isvideo) AND $isvideo == "yes") {
//$episode_date .= "$L_view - ";
$isvideo = "no"; //so variable is assigned on every cicle
}
### Here the output code for the episode is created
# Fields Legend (parsed from XML):
# $text_title = episode title
# $text_shortdesc = short description
# $text_longdesc = long description
# $text_imgpg = image (url) associated to episode
# $text_category1, $text_category2, $text_category3 = categories
# $text_keywordspg = keywords
# $text_explicitpg = explicit podcast (yes or no)
# $text_authornamepg = author's name
# $text_authoremailpg = author's email
$PG_mainbody .= '';
$PG_mainbody .= '
'.$text_title.'';
if ($podcast_filetype=="mpg" OR $podcast_filetype=="mpeg" OR $podcast_filetype=="mov" OR $podcast_filetype=="mp4" OR $podcast_filetype=="wmv" OR $podcast_filetype=="3gp" OR $podcast_filetype=="mp4" OR $podcast_filetype=="avi" OR $podcast_filetype=="flv" OR $podcast_filetype=="m4v") { // if it is a video
$episode_date .= ' ';
$isvideo = "yes";
}
$episode_date .= "";
$PG_mainbody .= '
'.$episode_date.'
';
if(isset($text_imgpg) AND $text_imgpg!=NULL AND file_exists("$img_dir$text_imgpg")) {
$PG_mainbody .= "";
}
if(isset($text_longdesc) AND $text_longdesc!=NULL ) { // if is set long description
$PG_mainbody .= $text_longdesc;
} else {
$PG_mainbody .= $text_shortdesc;
}
if($podcast_filetype=="mp3" AND $_GET['p']!="episode") {
//Update the tracks on the right-hand side.
$trackfeed .= "".$text_title."\r";
//$PG_mainbody .= $trackfeed;
} elseif($isvideo == "yes") {
$PG_mainbody .= '
Update Required
To play the media you will need to either update your browser to a recent version or update your Flash plugin.
';
$loadjavascripts .= '
';
} elseif($podcast_filetype=="mp3" AND isset($_GET['p']) AND $_GET['p']=="episode") {
$PG_mainbody .= '
|
';
$loadjavascripts .= '
';
}
$PG_mainbody .= "";
if ($recent_count == 0) { //use keywords of the most recent episode as meta tags in the home page
$assignmetakeywords = $text_keywordspg;
}
$recent_count++; //increment recents
}
}
}?>
############################################################
# PODCAST GENERATOR
#
# Created by Alberto Betella
# Improved by Tim Wasson
#
# This is Free Software released under the GNU/GPL License.
############################################################
if ($fileData != NULL) { //This IF avoids notice error in PHP4 of undefined variable $fileData[0]
$podcast_filetype = $fileData[0];
if ($file_multimediale[1]=="$podcast_filetype") { // if the extension is the same as specified in config.php
$file_size = filesize("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype");
$file_size = $file_size/1048576;
$file_size = round($file_size, 2);
############
$filedescr = "$absoluteurl"."$upload_dir$file_multimediale[0].xml"; //database file
if (file_exists("$filedescr")) { //if database file exists
//$file_contents=NULL;
# READ the XML database file and parse the fields
include("$absoluteurl"."core/readXMLdb.php");
# File details (duration, bitrate, etc...)
$ThisFileInfo = $getID3->analyze("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype"); //read file tags
$file_duration = @$ThisFileInfo['playtime_string'];
$episode_date = date ($dateformat, $value);
if($file_duration!=NULL) { // display file duration
$episode_details = "$L_duration ";
$episode_details .= @$ThisFileInfo['playtime_string'];
$episode_details .= " $L_episode_minutes - $L_episode_filetype ";
$episode_details .= @$ThisFileInfo['fileformat'];
if($podcast_filetype=="mp3") { //if mp3 show bitrate &co
$episode_details .= " - $L_bitrate ";
$episode_details .= @$ThisFileInfo['bitrate']/1000;
$episode_details .= " $L_episode_kbps - $L_frequency ";
$episode_details .= @$ThisFileInfo['audio']['sample_rate'] ;
$episode_details .= " $L_episode_hz";
$episode_date .= " ";
$episode_date .= " ";
}
$episode_details .= " - File Size: ".$file_size." ".$L_bytes;
}
#Define episode headline
if (isset($isvideo) AND $isvideo == "yes") {
//$episode_date .= "$L_view - ";
$isvideo = "no"; //so variable is assigned on every cicle
}
### Here the output code for the episode is created
# Fields Legend (parsed from XML):
# $text_title = episode title
# $text_shortdesc = short description
# $text_longdesc = long description
# $text_imgpg = image (url) associated to episode
# $text_category1, $text_category2, $text_category3 = categories
# $text_keywordspg = keywords
# $text_explicitpg = explicit podcast (yes or no)
# $text_authornamepg = author's name
# $text_authoremailpg = author's email
$PG_mainbody .= '';
$PG_mainbody .= '
'.$text_title.'';
if ($podcast_filetype=="mpg" OR $podcast_filetype=="mpeg" OR $podcast_filetype=="mov" OR $podcast_filetype=="mp4" OR $podcast_filetype=="wmv" OR $podcast_filetype=="3gp" OR $podcast_filetype=="mp4" OR $podcast_filetype=="avi" OR $podcast_filetype=="flv" OR $podcast_filetype=="m4v") { // if it is a video
$episode_date .= ' ';
$isvideo = "yes";
}
$episode_date .= "";
$PG_mainbody .= '
'.$episode_date.'
';
if(isset($text_imgpg) AND $text_imgpg!=NULL AND file_exists("$img_dir$text_imgpg")) {
$PG_mainbody .= "";
}
if(isset($text_longdesc) AND $text_longdesc!=NULL ) { // if is set long description
$PG_mainbody .= $text_longdesc;
} else {
$PG_mainbody .= $text_shortdesc;
}
if($podcast_filetype=="mp3" AND $_GET['p']!="episode") {
//Update the tracks on the right-hand side.
$trackfeed .= "".$text_title."\r";
//$PG_mainbody .= $trackfeed;
} elseif($isvideo == "yes") {
$PG_mainbody .= '
Update Required
To play the media you will need to either update your browser to a recent version or update your Flash plugin.
';
$loadjavascripts .= '
';
} elseif($podcast_filetype=="mp3" AND isset($_GET['p']) AND $_GET['p']=="episode") {
$PG_mainbody .= '
|
';
$loadjavascripts .= '
';
}
$PG_mainbody .= "";
if ($recent_count == 0) { //use keywords of the most recent episode as meta tags in the home page
$assignmetakeywords = $text_keywordspg;
}
$recent_count++; //increment recents
}
}
}?>
############################################################
# PODCAST GENERATOR
#
# Created by Alberto Betella
# Improved by Tim Wasson
#
# This is Free Software released under the GNU/GPL License.
############################################################
if ($fileData != NULL) { //This IF avoids notice error in PHP4 of undefined variable $fileData[0]
$podcast_filetype = $fileData[0];
if ($file_multimediale[1]=="$podcast_filetype") { // if the extension is the same as specified in config.php
$file_size = filesize("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype");
$file_size = $file_size/1048576;
$file_size = round($file_size, 2);
############
$filedescr = "$absoluteurl"."$upload_dir$file_multimediale[0].xml"; //database file
if (file_exists("$filedescr")) { //if database file exists
//$file_contents=NULL;
# READ the XML database file and parse the fields
include("$absoluteurl"."core/readXMLdb.php");
# File details (duration, bitrate, etc...)
$ThisFileInfo = $getID3->analyze("$absoluteurl"."$upload_dir$file_multimediale[0].$podcast_filetype"); //read file tags
$file_duration = @$ThisFileInfo['playtime_string'];
$episode_date = date ($dateformat, $value);
if($file_duration!=NULL) { // display file duration
$episode_details = "$L_duration ";
$episode_details .= @$ThisFileInfo['playtime_string'];
$episode_details .= " $L_episode_minutes - $L_episode_filetype ";
$episode_details .= @$ThisFileInfo['fileformat'];
if($podcast_filetype=="mp3") { //if mp3 show bitrate &co
$episode_details .= " - $L_bitrate ";
$episode_details .= @$ThisFileInfo['bitrate']/1000;
$episode_details .= " $L_episode_kbps - $L_frequency ";
$episode_details .= @$ThisFileInfo['audio']['sample_rate'] ;
$episode_details .= " $L_episode_hz";
$episode_date .= " ";
$episode_date .= " ";
}
$episode_details .= " - File Size: ".$file_size." ".$L_bytes;
}
#Define episode headline
if (isset($isvideo) AND $isvideo == "yes") {
//$episode_date .= "$L_view - ";
$isvideo = "no"; //so variable is assigned on every cicle
}
### Here the output code for the episode is created
# Fields Legend (parsed from XML):
# $text_title = episode title
# $text_shortdesc = short description
# $text_longdesc = long description
# $text_imgpg = image (url) associated to episode
# $text_category1, $text_category2, $text_category3 = categories
# $text_keywordspg = keywords
# $text_explicitpg = explicit podcast (yes or no)
# $text_authornamepg = author's name
# $text_authoremailpg = author's email
$PG_mainbody .= '';
$PG_mainbody .= '
'.$text_title.'';
if ($podcast_filetype=="mpg" OR $podcast_filetype=="mpeg" OR $podcast_filetype=="mov" OR $podcast_filetype=="mp4" OR $podcast_filetype=="wmv" OR $podcast_filetype=="3gp" OR $podcast_filetype=="mp4" OR $podcast_filetype=="avi" OR $podcast_filetype=="flv" OR $podcast_filetype=="m4v") { // if it is a video
$episode_date .= ' ';
$isvideo = "yes";
}
$episode_date .= "";
$PG_mainbody .= '
'.$episode_date.'
';
if(isset($text_imgpg) AND $text_imgpg!=NULL AND file_exists("$img_dir$text_imgpg")) {
$PG_mainbody .= "";
}
if(isset($text_longdesc) AND $text_longdesc!=NULL ) { // if is set long description
$PG_mainbody .= $text_longdesc;
} else {
$PG_mainbody .= $text_shortdesc;
}
if($podcast_filetype=="mp3" AND $_GET['p']!="episode") {
//Update the tracks on the right-hand side.
$trackfeed .= "".$text_title."\r";
//$PG_mainbody .= $trackfeed;
} elseif($isvideo == "yes") {
$PG_mainbody .= '
Update Required
To play the media you will need to either update your browser to a recent version or update your Flash plugin.
';
$loadjavascripts .= '
';
} elseif($podcast_filetype=="mp3" AND isset($_GET['p']) AND $_GET['p']=="episode") {
$PG_mainbody .= '
|
';
$loadjavascripts .= '
';
}
$PG_mainbody .= "";
if ($recent_count == 0) { //use keywords of the most recent episode as meta tags in the home page
$assignmetakeywords = $text_keywordspg;
}
$recent_count++; //increment recents
}
}
}?>