From ad6b540038f6c755aa743e73e5ab2247e32d95b2 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 21 Oct 2007 18:58:09 +0000 Subject: [PATCH] Test d'utilisation de php5-clamavlib --- htdocs/html.form.class.php | 63 +++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index e51f3d97450..02755a24de4 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2229,48 +2229,49 @@ class Form { global $conf,$langs; - if ($conf->upload != 0) - { - print "\n\n\n"; - - if (! $titre) $titre=$langs->trans("AttachANewFile"); - print_titre($titre); + if ($conf->upload != 0) + { + print "\n\n\n"; + + if (! $titre) $titre=$langs->trans("AttachANewFile"); + print_titre($titre); print '
'; print ''; - print '"; - print "
'; + print '
'; $max=$conf->upload; // En Kb $maxphp=@ini_get('upload_max_filesize'); // En inconnu - if (eregi('m$',$maxphp)) $maxphp=$maxphp*1024; - if (eregi('k$',$maxphp)) $maxphp=$maxphp; - // Now $max and $maxphp are in Kb + if (eregi('m$',$maxphp)) $maxphp=$maxphp*1024; + if (eregi('k$',$maxphp)) $maxphp=$maxphp; + // Now $max and $maxphp are in Kb if ($maxphp > 0) $max=min($max,$maxphp); - - if ($conf->upload > 0) - { - print ''; - } - print ''; - print '   '; - print ''; - - if ($addcancel) - { - print '   '; - print ''; - } - - print ' ('.$langs->trans("MaxSize").': '.$max.' '.$langs->trans("Kb").')'; - print "
"; + + if ($conf->upload > 0) + { + print ''; + } + print ''; + print '   '; + print ''; + + if ($addcancel) + { + print '   '; + print ''; + } + + print ' ('.$langs->trans("MaxSize").': '.$max.' '.$langs->trans("Kb").')'; + if ($conf->global->MAIN_USE_AVSCAN) print cl_info(); + print ""; + print ""; print '
'; print '
'; - - print "\n\n\n"; - } + + print "\n\n\n"; + } return 1; }