From 07054353c33ab47a3751917cd15904657d514125 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 21 Oct 2007 19:52:13 +0000 Subject: [PATCH] Test d'utilisation de php5-clamavlib --- htdocs/docsoc.php | 4 ++-- htdocs/langs/en_US/other.lang | 1 + htdocs/langs/fr_FR/other.lang | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/docsoc.php b/htdocs/docsoc.php index 313bdcc4855..da8c7ac4d66 100644 --- a/htdocs/docsoc.php +++ b/htdocs/docsoc.php @@ -55,12 +55,12 @@ if ( $_POST["sendit"] && $conf->upload != 0) if (is_dir($upload_dir)) { $result = doliMoveFileUpload($_FILES['userfile']['tmp_name'], $upload_dir . "/" . $_FILES['userfile']['name']); - if ($result == true) + if ($result == 1) { $mesg = '
'.$langs->trans("FileTransferComplete").'
'; //print_r($_FILES); } - else if ($result == false) + else if (!$result) { // Echec transfert (fichier dépassant la limite ?) $mesg = '
'.$langs->trans("ErrorFileNotUploaded").'
'; diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang index 02e250f7bd5..6c51ca148fc 100644 --- a/htdocs/langs/en_US/other.lang +++ b/htdocs/langs/en_US/other.lang @@ -15,6 +15,7 @@ ErrorFailedToChangePassword=Failed to change password ErrorLoginDoesNotExists=User with login %s could not be found. ErrorLoginHasNoEmail=This user has no email address. Process aborted. ErrorBadValueForCode=Bad value types for code. Try again with a new value... +ErrorFileIsInfectedWith=This file is infected with %s SecurityCode=Security code Calendar=Calendar AddTrip=Add trip diff --git a/htdocs/langs/fr_FR/other.lang b/htdocs/langs/fr_FR/other.lang index 986cbc63b49..6d5b852452b 100644 --- a/htdocs/langs/fr_FR/other.lang +++ b/htdocs/langs/fr_FR/other.lang @@ -15,6 +15,7 @@ ErrorFailedToChangePassword=Echec de modification du mot de passe ErrorLoginDoesNotExists=Le compte utilisateur de login %s n'a pu être trouvé. ErrorLoginHasNoEmail=Cet utilisateur n'a pas d'email. Impossible de continuer. ErrorBadValueForCode=Mauvaise valeur saisie pour le code. Réessayer avec une nouvelle valeur... +ErrorFileIsInfectedWith=Ce fichier est infecté par %s SecurityCode=Code sécurité Calendar=Calendrier AddTrip=Créer déplacement