mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-07 07:09:27 +00:00
This commit is contained in:
@@ -85,6 +85,7 @@ else
|
||||
}
|
||||
|
||||
//$user='if06b172';
|
||||
//$user='ti06m114';
|
||||
$user = get_uid();
|
||||
if($uid=='-1' || $uid!=$user)
|
||||
{
|
||||
@@ -167,6 +168,13 @@ 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.'"');
|
||||
}
|
||||
}
|
||||
$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
updatevon = '".$user."',
|
||||
|
||||
Reference in New Issue
Block a user