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


// Global
if (isset($_POST['language'])) {
	$language = $_POST['language'];
	$config['Language'] = $_POST['language'];
	echo ("			<input type=\"hidden\" name=\"language\" value=\"".$language."\">
");
	} else $language = $config['Language'];


// Quelle BEGIN
{
$ready2go_source = false;


if (isset($_POST['umount'])) exec("umount ".$_POST['umount']);
if (isset($_POST['mount'])) exec("mount ".$_POST['mount']);


if (isset($_POST['source'])) {
	$source = $_POST['source'];
	echo ("			<input type=\"hidden\" name=\"source\" value=\"".$source."\">
");
	require ($config['InputFolder']."/".$source."/input.php");
	if (file_exists($config['InputFolder']."/".$source."/".$config['Language'].".php"))
		require ($config['InputFolder']."/".$source."/".$config['Language'].".php");
		} else {
		$source = false;
		}


if (isset($_POST['source_media'])) {
	$source_media = $_POST['source_media'];
	echo ("			<input type=\"hidden\" name=\"source_media\" value=\"".$source_media."\">
");
	} else {
	$source_media = false;
	}

if (empty($function_source_config['provide_imageaudio'])) $function_source_config['provide_imageaudio'] = false;
if (empty($function_source_config['provide_image'])) $function_source_config['provide_image'] = false;
if (empty($function_source_config['provide_video'])) $function_source_config['provide_video'] = false;
if (empty($function_source_config['provide_videoaudio'])) $function_source_config['provide_videoaudio'] = false;
if (empty($function_source_config['provide_audio'])) $function_source_config['provide_audio'] = false;


if (isset($_POST['source_media_real_path'])) {
	$source_media_real_path = $_POST['source_media_real_path'];
	$ready2go_source = true;
	echo ("			<input type=\"hidden\" name=\"source_media_real_path\" value=\"".$source_media_real_path."\">
");
	} else $source_media_real_path = "";


if (isset($_POST['set_image_format'])) {
	$set_image_format = $_POST['set_image_format'];
	$ready2go_source = true;
	echo ("			<input type=\"hidden\" name=\"set_image_format\" value=\"".$_POST['set_image_format']."\">
");
	} else $set_image_format = "";


if (isset($_POST['wish_preview'])) {
	$wish_preview = $_POST['wish_preview'];
	echo ("			<input type=\"hidden\" name=\"wish_preview\" value=\"".$_POST['wish_preview']."\">
");
	} else $wish_preview = "";


if (isset($_POST['source_erase_previews'])) unset($_POST['source_create_previews']);


if (isset($_POST['source_create_previews'])) {
	if ( $_POST['source_create_previews'] == $lang_source['create_previews'] ) {
		$create_previews = true;
		echo ("			<input type=\"hidden\" name=\"source_create_previews\" value=\"".$_POST['source_create_previews']."\">
");
		} else $create_previews = false;
	} else $create_previews = false;

// if (isset($_POST['show_cols_file'])) {
// 	if ( $_POST['show_cols_file'] == "on" )		$show_cols_file = " checked";
// 	if ( $_POST['show_cols_file'] == "off" )	$show_cols_file = "";
// 	}

if (isset($_POST['halterelais'])) echo ("			<input type=\"hidden\" name=\"halterelais\" value=\"true\">
");

if (empty($_POST['halterelais'])) {
$show_mountpoint_1 = " checked";
$show_cols_file = " checked";
$show_cols_created = " checked";
$show_cols_playtime = " checked";
$show_cols_imagesize = " checked";
$show_cols_bitrate = " checked";
$show_cols_filesize = " checked";
$show_cols_preview = "";
} else {
if (isset($_POST['show_cols_file'])) {
	$show_cols_file	= " checked";
// 	echo ("			<input type=\"hidden\" name=\"show_cols_file\" value=\"".$_POST['show_cols_file']."\">
// ");
	} else {
	$show_cols_file	= "";
	}
if (isset($_POST['show_cols_created'])) {
	$show_cols_created	= " checked";
// 	echo ("			<input type=\"hidden\" name=\"show_cols_created\" value=\"".$_POST['show_cols_created']."\">
// ");
	} else {
	$show_cols_created	= "";
	}
if (isset($_POST['show_cols_playtime'])) {
	$show_cols_playtime	= " checked";
// 	echo ("			<input type=\"hidden\" name=\"show_cols_playtime\" value=\"".$_POST['show_cols_playtime']."\">
// ");
	} else {
	$show_cols_playtime	= "";
	}
if (isset($_POST['show_cols_bitrate'])) {
	$show_cols_bitrate	= " checked";
// 	echo ("			<input type=\"hidden\" name=\"show_cols_bitrate\" value=\"".$_POST['show_cols_bitrate']."\">
// ");
	} else {
	$show_cols_bitrate	= "";
	}
if (isset($_POST['show_cols_filesize'])) {
	$show_cols_filesize	= " checked";
// 	echo ("			<input type=\"hidden\" name=\"show_cols_filesize\" value=\"".$_POST['show_cols_filesize']."\">
// ");
	} else {
	$show_cols_filesize	= "";
	}
if (isset($_POST['show_cols_preview'])) {
	$show_cols_preview	= " checked";
// 	echo ("			<input type=\"hidden\" name=\"show_cols_preview\" value=\"".$_POST['show_cols_preview']."\">
// ");
	} else {
	$show_cols_preview	= "";
	}
if (isset($_POST['show_cols_imagesize'])) {
	$show_cols_imagesize	= " checked";
// 	echo ("			<input type=\"hidden\" name=\"show_cols_imagesize\" value=\"".$_POST['show_cols_imagesize']."\">
// ");
	} else {
	$show_cols_imagesize	= "";
	}
}
{
/*
if (isset($_POST['show_mountpoint_1']))
	echo ("			<input type=\"hidden\" name=\"show_mountpoint_1\" value=\"".$_POST['show_mountpoint_1']."\">
");
if (isset($_POST['show_mountpoint_2']))
	echo ("			<input type=\"hidden\" name=\"show_mountpoint_2\" value=\"".$_POST['show_mountpoint_2']."\">
");
if (isset($_POST['show_mountpoint_3']))
	echo ("			<input type=\"hidden\" name=\"show_mountpoint_3\" value=\"".$_POST['show_mountpoint_3']."\">
");
if (isset($_POST['show_mountpoint_4']))
	echo ("			<input type=\"hidden\" name=\"show_mountpoint_4\" value=\"".$_POST['show_mountpoint_4']."\">
");
if (isset($_POST['show_mountpoint_5']))
	echo ("			<input type=\"hidden\" name=\"show_mountpoint_5\" value=\"".$_POST['show_mountpoint_5']."\">
");
*/
}


/*
if (isset($_POST['show_cols_file']))		echo ("<input type=\"hidden\" name=\"show_cols_file\" value=\"true\">"); else	;
if (isset($_POST['show_cols_created']))		$show_cols_created	= true;	else	$show_cols_created	= false;
if (isset($_POST['show_cols_playtime']))	$show_cols_playtime	= true;	else	$show_cols_playtime	= false;
if (isset($_POST['show_cols_bitrate']))		$show_cols_bitrate	= true;	else	$show_cols_bitrate	= false;
if (isset($_POST['show_cols_filesize']))	$show_cols_filesize	= true;	else	$show_cols_filesize	= false;
if (isset($_POST['show_cols_preview']))		$show_cols_preview	= true;	else	$show_cols_preview	= false;
*/


if (isset($_POST['ready2go_source'])) {
		$ready2go_source = $_POST['ready2go_source'];
		echo ("			<input type=\"hidden\" name=\"ready2go_source\" value=\"".$ready2go_source."\">
");
		$ready2go_source = true;
		}
// Quelle END
}

// Ziel BEGIN
{
$ready2go_destination = false;

if (isset($_POST['destination'])) {
	$destination = $_POST['destination'];
	echo ("			<input type=\"hidden\" name=\"destination\" value=\"".$destination."\">
");
	require ($config['OutputFolder']."/".$destination."/output.php");
	if(file_exists($config['OutputFolder']."/".$destination."/".$config['Language'].".php"))
		require ($config['OutputFolder']."/".$destination."/".$config['Language'].".php");
	} else {
	$destination = "";
	}


if (isset($_POST['destination_media'])) {
	$destination_media = $_POST['destination_media'];
	echo ("			<input type=\"hidden\" name=\"destination_media\" value=\"".$destination_media."\">
");
	} else {
	$destination_media = false;
	}


if (isset($_POST['destination_video_format'])) {
	$destination_video_format = $_POST['destination_video_format'];
	echo ("			<input type=\"hidden\" name=\"destination_video_format\" value=\"".$destination_video_format."\">
");
	} else $destination_video_format = "";


if (isset($_POST['destination_video'])) {
	$destination_video = $_POST['destination_video'];
	echo ("			<input type=\"hidden\" name=\"destination_video\" value=\"".$destination_video."\">
");
	} else $destination_video = "";


if (isset($_POST['destination_audio'])) {
	$destination_audio = $_POST['destination_audio'];
	echo ("			<input type=\"hidden\" name=\"destination_audio\" value=\"".$destination_audio."\">
");
	} else $destination_audio = "";


if (isset($_POST['destination_video_quality'])) {
	$destination_video_quality = $_POST['destination_video_quality'];
	echo ("			<input type=\"hidden\" name=\"destination_video_quality\" value=\"".$destination_video_quality."\">
");
	} else $destination_video_quality = "";


if (isset($_POST['destination_audio_quality'])) {
	$destination_audio_quality = $_POST['destination_audio_quality'];
	echo ("			<input type=\"hidden\" name=\"destination_audio_quality\" value=\"".$destination_audio_quality."\">
");
	} else $destination_audio_quality = "";


if (isset($_POST['destination_audio_video'])) {
	$destination_audio_video = $_POST['destination_audio_video'];
	$ready2go_destination = true;
	echo ("			<input type=\"hidden\" name=\"destination_audio_video\" value=\"".$destination_audio_video."\">
");
	} else $destination_audio_video = "";


if (isset($_POST['destination_filename'])) {
	$destination_filename = $_POST['destination_filename'];
	$ready2go_destination = true;
	echo ("			<input type=\"hidden\" name=\"destination_filename\" value=\"".$destination_filename."\">
");
	} else $destination_filename = "";


if (isset($_POST['ready2go_destination'])) {
	$ready2go_destination = $_POST['ready2go_destination'];
	echo ("			<input type=\"hidden\" name=\"ready2go_destination\" value=\"".$ready2go_destination."\">
");
		} else $ready2go_destination = "";


if (isset($_POST['destpath'])) {
	$destpath = $_POST['destpath'];
	echo ("			<input type=\"hidden\" name=\"destpath\" value=\"".$destpath."\">
");
	} else $destpath = "";


if (isset($_POST['go'])) {
	$ready2go_final = true;
// 	$step = 5;
	} else $ready2go_final = false;


// Ziel END
}


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