From 4f4da9e54a43ce60c9272e6b04c59ac3b37763ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 21 Apr 2009 08:48:59 +0000 Subject: [PATCH] --- cis/private/lehre/abgabe_lektor_details.php | 50 ++++++++++++++------ cis/private/lehre/abgabe_student_details.php | 2 +- 2 files changed, 37 insertions(+), 15 deletions(-) diff --git a/cis/private/lehre/abgabe_lektor_details.php b/cis/private/lehre/abgabe_lektor_details.php index da46ab435..8cbad4203 100644 --- a/cis/private/lehre/abgabe_lektor_details.php +++ b/cis/private/lehre/abgabe_lektor_details.php @@ -48,7 +48,7 @@ if(!isset($_POST['uid'])) $command = ''; $paabgabe_id = ''; $fixtermin = false; - $datum = '01.01.1980'; + $datum = ''; $kurzbz = ''; } else @@ -76,7 +76,19 @@ if($uid==-1 && $projektarbeit_id==-1&& $titel==-1) //echo "Fehler bei der Datenübergabe"; exit; } - + +if(isset($_GET['id']) && isset($_GET['uid'])) +{ + if(!is_numeric($_GET['id']) || $_GET['id']=='') + die('Fehler bei Parameteruebergabe'); + + $file = $_GET['id'].'_'.$_GET['uid'].'.pdf'; + $filename = PAABGABE_PATH.$file; + header('Content-Type: application/octet-stream'); + header('Content-disposition: attachment; filename="'.$file.'"'); + readfile($filename); + exit; +} echo ' @@ -85,7 +97,7 @@ echo ' Abgabe Lektor Details - + - +

Abgabe Studentenbereich

'; //Einlesen der Termine