Ajout note sur taille max fichier upload interne au php
This commit is contained in:
parent
7b2533a21f
commit
3457a4e971
@ -96,8 +96,12 @@ print "</tr>\n";
|
||||
|
||||
print '<form action="'.$_SERVER["PHP_SELF"].'?action=set_main_upload_doc" method="POST">';
|
||||
print '<tr '.$bc[$var].'>';
|
||||
print '<td>'.$langs->trans("MaxSizeForUploadedFiles").'</td>';
|
||||
print '<td>';
|
||||
print '<td>'.$langs->trans("MaxSizeForUploadedFiles").'.';
|
||||
$max=@ini_get('upload_max_filesize');
|
||||
if ($max) print ' '.$langs->trans("MustBeLowerThanPHPLimit",$max*1024,$langs->trans("Kb")).'.';
|
||||
else print ' '.$langs->trans("NoMaxSizeByPHPLimit").'.';
|
||||
print '</td>';
|
||||
print '<td nowrap="1">';
|
||||
print '<input class="flat" name="MAIN_UPLOAD_DOC" type="text" size="6" value="'.$conf->global->MAIN_UPLOAD_DOC.'"> '.$langs->trans("Kb");
|
||||
print '</td>';
|
||||
print '<td align="center">';
|
||||
|
||||
@ -1765,9 +1765,13 @@ class Form
|
||||
print '<table width="100%" class="noborder">';
|
||||
print '<tr><td width="50%" valign="top">';
|
||||
|
||||
$max=$conf->upload; // En Kb
|
||||
$maxphp=@ini_get('upload_max_filesize'); // En Mb
|
||||
if ($maxphp > 0) $max=min($max,$maxphp*1024);
|
||||
|
||||
if ($conf->upload > 0)
|
||||
{
|
||||
print '<input type="hidden" name="max_file_size" value="'.($conf->upload*1024).'">';
|
||||
print '<input type="hidden" name="max_file_size" value="'.($max*1024).'">';
|
||||
}
|
||||
print '<input class="flat" type="file" name="userfile" size="70">';
|
||||
print ' ';
|
||||
@ -1779,7 +1783,7 @@ class Form
|
||||
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
||||
}
|
||||
|
||||
print ' ('.$langs->trans("MaxSize").': '.$conf->upload.' '.$langs->trans("Kb").')';
|
||||
print ' ('.$langs->trans("MaxSize").': '.$max.' '.$langs->trans("Kb").')';
|
||||
print "</td></tr>";
|
||||
print "</table>";
|
||||
|
||||
|
||||
@ -22,6 +22,8 @@ NotAvailableWhenAjaxDisabled=Not available when Ajax disabled
|
||||
JavascriptDisabled=Javascript disabled
|
||||
UsePopupCalendar=Use popup for dates input
|
||||
NextValue=Next value
|
||||
MustBeLowerThanPHPLimit=Note: your PHP limits upload size to <b>%s</b> %s, whatever is thi sparameter value
|
||||
NoMaxSizeByPHPLimit=Note: No limit are built in your PHP
|
||||
ComptaSetup=Accounting module setup
|
||||
UserSetup=Users' management setup
|
||||
Setup=Setup
|
||||
|
||||
@ -22,6 +22,8 @@ NotAvailableWhenAjaxDisabled=Non disponible quand Ajax d
|
||||
JavascriptDisabled=Javascript désactivé
|
||||
UsePopupCalendar=Utiliser les popups pour la saisie des dates
|
||||
NextValue=Prochaine valeur
|
||||
MustBeLowerThanPHPLimit=Remarque: Votre PHP limite naturellement la taille à <b>%s</b> %s maximum, quelque soit la valeur de ce paramètre
|
||||
NoMaxSizeByPHPLimit=Aucune limite interne à votre serveur PHP
|
||||
ComptaSetup=Configuration du module Comptabilité
|
||||
UserSetup=Configuration gestion des utilisateurs
|
||||
Setup=Configuration
|
||||
|
||||
Loading…
Reference in New Issue
Block a user