session_start();
$errCode = 2;
// prüfe ob Formular gesendet wurde
if ($_POST['downloadCode'])
{
if($_SESSION['downloadCode'] == $_POST['downloadCode'])
{
$errCode = 0;
} else {
$errCode = 1;
}
}
unset($_SESSION['downloadCode']);
if($errCode > 0)
{
?>
include("../templates/phead_de.htm");
?>
bitcontrol® multimedia software
include("../templates/pss.htm");
?>
include("../templates/pthead_de.htm");
?>
include("../templates/pahead_down_de.htm");
?>
|
|
|
| bitcontrol® MPEG-2 Video Decoder - Beispiele |
 |
|
|
if($errCode == 1)
{
echo 'Falscher Code!';
} else {
include('./samples_dlForm.php');
}
?>
|
|
include("../templates/pfoot.htm");
?>
} else {
if(!file_exists('./samples/'.$_POST['sampleDatei']))
{
die('Datei nicht gefunden! / File not found!');
} else {
header('Content-type: video/mpeg');
header('Content-Disposition: attachment; filename="'.$_POST['sampleDatei'].'"');
readfile('./samples/'.$_POST['sampleDatei']);
}
}
?>