From 638188aa4c17cb34acf7a5707d429cf3f00a98d6 Mon Sep 17 00:00:00 2001 From: Rudolf Hangl Date: Wed, 20 Jan 2010 12:19:37 +0000 Subject: [PATCH] --- cis/private/lehre/abgabe_student_details.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cis/private/lehre/abgabe_student_details.php b/cis/private/lehre/abgabe_student_details.php index 8b915a8bf..678ab0ba9 100644 --- a/cis/private/lehre/abgabe_student_details.php +++ b/cis/private/lehre/abgabe_student_details.php @@ -168,13 +168,8 @@ if($command=="update" && $error!=true) move_uploaded_file($_FILES['datei']['tmp_name'], PAABGABE_PATH.$paabgabe_id.'_'.$user.'.pdf'); if(file_exists(PAABGABE_PATH.$paabgabe_id.'_'.$user.'.pdf')) { - if(!stristr($uploadfile, '.php') && !stristr($uploadfile, '.cgi') && !stristr($uploadfile, '.pl')) - { - if(copy($_FILES[$file]['tmp_name'], $uploadfile)) - { - exec('chmod 644 "'.$uploadfile.'"'); - } - } + exec('chmod 640 "'.PAABGABE_PATH.$paabgabe_id.'_'.$user.'.pdf'.'"'); + $qry="UPDATE campus.tbl_paabgabe SET abgabedatum = now(), updatevon = '".$user."',