From c070da629ae57a0e420aaeafceb897d04067f4a5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 29 Jun 2005 01:35:00 +0000 Subject: [PATCH] =?UTF-8?q?Look:=20Mise=20aux=20normes=20esth=E9tiques.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/propal/document.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php index 16077fba1ea..1101560f509 100644 --- a/htdocs/comm/propal/document.php +++ b/htdocs/comm/propal/document.php @@ -43,14 +43,14 @@ llxHeader(); $propalid=empty($_GET['propalid']) ? 0 : intVal($_GET['propalid']); $action=empty($_GET['action']) ? (empty($_POST['action']) ? '' : $_POST['action']) : $_GET['action']; + function do_upload ($upload_dir) { global $local_file, $error_msg, $langs; if (! is_dir($upload_dir)) { - umask(0); - mkdir($upload_dir, 0755); + create_exdir($upload_dir); } if (doliMoveFileUpload($_FILES['userfile']['tmp_name'], $upload_dir . '/' . $_FILES['userfile']['name'])) @@ -120,9 +120,9 @@ if ($propalid > 0) print '
'; print ''; - print '
'; - print ''; - print '
'; + print '
'; + print ''; + print '
'; print '

'; clearstatcache(); @@ -131,11 +131,11 @@ if ($propalid > 0) if ($handle) { - print ''; + print '
'; print ''; print ''; - print ''; - print ''; + print ''; + print ''; print ''; print ''; $var=true; @@ -149,7 +149,7 @@ if ($propalid > 0) echo ''.$file.''; print "\n"; print ''; - print ''; + print ''; print '
'.$langs->trans('Document').''.$langs->trans('Size').''.$langs->trans('Date').''.$langs->trans('Size').''.$langs->trans('Date').' 
'.filesize($upload_dir.'/'.$file). ' bytes'.strftime('%d %b %Y %H:%M:%S',filemtime($upload_dir.'/'.$file)).''.strftime('%d %b %Y %H:%M:%S',filemtime($upload_dir.'/'.$file)).''; if ($file == $propref . '.pdf') {