Location: PHPKode > projects > Multimedia2Multimedia > mm2mm/include/step3.php
<?php
if ( $config['htmlcomm'] == true ) echo ("<!-- step3.php BEGIN -->
");

echo ("				<div id=\"FunctionSource\">
					<h3>".$lang['source-param']." - [ <i><small>".$function_source_config['name']."</small></i> ]</h3>
");
require ("parameter_input.php");
echo ("				</div>
");
if ( $ready2go_source == true ) {
	echo ("			<div id=\"FunctionDestination\">
				<h3>".$lang['destination-param']." - [ <i><small>".$function_destination_config['name']."</small></i> ]</h3>
");
	require ("parameter_output.php");
	echo ("			</div>
");
	}
// if (isset($_POST['source_media_real_path'])) $media_src = $_POST['source_media_real_path']; // Zum Dateinamenvorschlag in step3
$filename_offer_new = "";
if (isset($source_media_real_path)) {
	$filename_offer = explode('/',$source_media_real_path);
	if (isset($filename_offer[(count($filename_offer)-1)])) {
		$filename_offer = $filename_offer[(count($filename_offer)-1)];
		$filename_offer = str_replace("/","_",$filename_offer);
		$filename_offer = str_replace(".","_",$filename_offer);
		$filename_offer = str_replace(" ","_",$filename_offer);
		$filename_offer = explode("_",$filename_offer);
		for ( $i = 0 ; $i < ( count($filename_offer) -1 ) ; $i++ ) {
			$filename_offer_new = $filename_offer_new.$filename_offer[$i];
		}
	}
} else {
$filename_offer_new = $lang['filename_not_set'];
}
if ( ( $config['debug_messages'] == true ) AND ( isset($filename_offer_new)) ) echo ("Dateinamenvorschlag: ".$filename_offer_new."<br>");




if  ( $ready2go_destination == true ) {
	if ( $destination_filename == "" ) {
		$destination_filename = $filename_offer_new;
		$ready2go_destination = false;
		}
	echo ("			".$lang['filename']."<br>
			<input type=\"text\" name=\"destination_filename\"size=\"20\" maxlength=\"50\" value=\"$destination_filename\">
			<br>
			");
if ($destination_filename) {
	if (isset($filename_offer)) {
		if ( $destination_filename == $filename_offer_new ) echo ($lang['offer'].": ");
		}
	$ready2go_destination = true;
	$destination_filename = str_replace(array("<", ">", "/", "\\", "|", "="),'',$destination_filename);
	echo ($destination_filename." <img src=\"".$config['ImagesFolder']."/correct.png\" alt=\"correct\"><br>");
	}
echo ("
			<br>
");
	}

echo ("			<input type=\"submit\" name=\"reload\" value=\"".$lang['reload']."\">
			<br><br>
");


if ( $config['htmlcomm'] == true ) echo ("<!-- step3.php END -->
");
?>
Return current item: Multimedia2Multimedia