diff --git a/cms/tinymce_dms.php b/cms/tinymce_dms.php index f32c4a107..e8fa17656 100644 --- a/cms/tinymce_dms.php +++ b/cms/tinymce_dms.php @@ -270,7 +270,7 @@ if($importFile != '') if($dms->save(true)) { - echo 'File wurde erfolgreich hochgeladen. Filename:'.$filename.' ID:'.$dms->dms_id; + echo 'File wurde erfolgreich hochgeladen.
Filename:'.$filename.'
ID: '.$dms->dms_id.''; $dms_id=$dms->dms_id; if($projekt_kurzbz!='' || $projektphase_id!='') @@ -282,10 +282,10 @@ if($importFile != '') else echo 'Fehler beim Speichern der Daten'; - if(!chgrp(DMS_PATH.$filename,'dms')) - echo 'CHGRP failed'; - if(!chmod(DMS_PATH.$filename, 0774)) - echo 'CHMOD failed'; + if(!@chgrp(DMS_PATH.$filename,'dms')) + echo '
CHGRP failed'; + if(!@chmod(DMS_PATH.$filename, 0774)) + echo '
CHMOD failed'; exec('sudo chown wwwrun '.$filename); // Lösche File aus Verzeichnis nachdem es raufgeladen wurde @@ -308,10 +308,10 @@ if(isset($_POST['fileupload'])) if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { - if(!chgrp($uploadfile,'dms')) - echo 'CHGRP failed
'; - if(!chmod($uploadfile, 0774)) - echo 'CHMOD failed
'; + if(!@chgrp($uploadfile,'dms')) + echo '
CHGRP failed'; + if(!@chmod($uploadfile, 0774)) + echo '
CHMOD failed'; exec('sudo chown wwwrun '.$uploadfile); $dms = new dms(); @@ -831,32 +831,43 @@ function drawFilesFromImport() if ($handle = opendir(IMPORT_PATH)) { + echo ''; echo '

Files im Import Ordner

- '; +
+ '; - while (false !== ($file = readdir($handle))) - { - if($file != '.' && $file != '..') - { - echo' - - - - '; - } - } - echo' - + while (false !== ($file = readdir($handle))) + { + if($file != '.' && $file != '..') + { + echo' + + + + '; + } + } + echo' + -
File
- '.$file.' - - | Upload -
+ '.$file.' + + Upload +
'; - closedir($handle); + '; + closedir($handle); } } /** @@ -1018,7 +1029,7 @@ function drawFilesList($rows)
  • Herunterladen
  • '; if($rechte->isberechtigt('basis/dms',null, 'sui', null)) { - echo '
  • dms_id.'/Upload" onclick="window.location=\'#divupload\'; updateBeschreibung(\''; $beschreibungstext = $row->beschreibung; $beschreibungstext = str_replace("'","4nführungsze1ch3n",$beschreibungstext); $beschreibungstext = str_replace('"',"D4n7ührung",$beschreibungstext);