'._("iTunes cover art").' '._("Podcast cover that will be displayed in the iTunes Store").'

'; if (isset($_GET['action']) AND $_GET['action']=="change") { if (isset($_FILES['image'] ['name']) AND $_FILES['image'] ['name'] != NULL) { $img = $_FILES['image'] ['name']; $img_ext=explode(".",$img); // divide filename from extension if (strtolower($img_ext[1])=="jpg" OR strtolower($img_ext[1])=="jpeg" OR strtolower($img_ext[1])=="png") { // check image format $iTunesCoverNameWithoutExtension = $absoluteurl.$img_dir."itunes_image."; $newNameiTunesCoverUploaded = $iTunesCoverNameWithoutExtension.strtolower($img_ext[1]); //Delete previous covers if (file_exists($iTunesCoverNameWithoutExtension.'jpg')) unlink($iTunesCoverNameWithoutExtension.'jpg'); else if (file_exists($iTunesCoverNameWithoutExtension.'png')) unlink($iTunesCoverNameWithoutExtension.'png'); if (move_uploaded_file($_FILES['image']['tmp_name'], $newNameiTunesCoverUploaded)) { $PG_mainbody .= "

"._("iTunes cover art replaced successfully.")."

"; // If upload is successful. ########## REGENERATE FEED $episodesCounter = generatePodcastFeed(TRUE,NULL,FALSE); //Output in file ########## } else { //if upload NOT successful $PG_mainbody .= "

"._("Error: image NOT sent!")."

"; // $temporaneo= $_FILES['image']['tmp_name']; } } else { // if image extension is NOT valid $PG_mainbody .= "

"._("Image extension not valid. The image extension must end in .jpg or .png")."

"; // $PG_mainbody .= "

"._("You can replace the current image with a new one. To be eligible for featuring on iTunes Store, a podcast must have 1400 x 1400 pixel cover art in JPG or PNG.")."

"; $PG_mainbody .= '
'; } } else { //if new image NOT selected or empty field $PG_mainbody .= "

"._("No file selected. Please go back and select an image.")."

"; $PG_mainbody .= '
'; } ###################### end image upload section } else { // if image is not posted open the form if (file_exists($absoluteurl.$img_dir.'itunes_image.jpg')) { $podcastCoverArt= $url.$img_dir.'itunes_image.jpg'; } else if (file_exists($absoluteurl.$img_dir.'itunes_image.png')) { $podcastCoverArt= $url.$img_dir.'itunes_image.png'; } //time() is added to the img URL so the browser doesn't cache it in the admin section $PG_mainbody .= '

'._("Current image:").'

'._(


'._("You can replace the current image with a new one. To be eligible for featuring on iTunes Store, a podcast must have 1400 x 1400 pixel cover art in JPG or PNG.").'

'; } } ?>