Look: Tous les champs de soumission de fichiers utilisent la limite $conf->maxfilesize

This commit is contained in:
Laurent Destailleur 2006-07-13 16:18:46 +00:00
parent 2b7228a56a
commit 64030993c3
11 changed files with 18 additions and 17 deletions

View File

@ -316,8 +316,8 @@ else
print '<td valign="top">Vignette</td><td colspan="2">';
echo '<FORM NAME="userfile" ACTION="fiche.php?id='.$id.'" ENCTYPE="multipart/form-data" METHOD="POST">';
print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input type="file" name="userfile" size="40" maxlength="80"><br>';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<input type="file" name="userfile" size="80"><br>';
print '<input type="submit" value="Upload File!" name="sendit">';
print '<input type="submit" value="'.$langs->trans("Cancel").'" name="cancelit"><BR>';
print '</form>';

View File

@ -191,8 +191,8 @@ if ($_GET["id"] > 0)
print '<table class="noborder" width="100%">';
print '<tr><td width="50%" valign="top">';
print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input class="flat" type="file" name="userfile" size="40" maxlength="80">';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<input class="flat" type="file" name="userfile" size="80">';
print ' &nbsp; ';
print '<input type="submit" class="button" value="'.$langs->trans("Add").'" name="sendit">';

View File

@ -171,8 +171,8 @@ if ($propalid > 0)
print '<table width="100%" class="noborder">';
print '<tr><td width="50%" valign="top">';
print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input class="flat" type="file" name="userfile" size="40" maxlength="80">';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<input class="flat" type="file" name="userfile" size="80">';
print ' &nbsp; ';
print '<input type="submit" class="button" value="'.$langs->trans("Add").'" name="sendit">';

View File

@ -173,8 +173,8 @@ if ($facid > 0)
print '<table width="100%" class="noborder">';
print '<tr><td width="50%" valign="top">';
print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input class="flat" type="file" name="userfile" size="40" maxlength="80">';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<input class="flat" type="file" name="userfile" size="80">';
print ' &nbsp; ';
print '<input type="submit" class="button" value="'.$langs->trans("Add").'" name="sendit">';

View File

@ -196,7 +196,8 @@ if ($_GET["id"])
print $html->select_array("methode",$bon->methodes_trans);
print '</td></tr>';
print '<tr><td width="20%">Fichier</td><td>';
print '<input type="file" name="userfile" size="30" maxlength="80"><br />';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<input class="flat" type="file" name="userfile" size="80"><br />';
print '</td></tr>';
print '<tr><td colspan="2" align="center">';
print '<input type="submit" class="button" value="'.$langs->trans("Send").'">';

View File

@ -175,8 +175,8 @@ if ($socid > 0)
print '<table class="noborder" width="100%">';
print '<tr><td width="50%" valign="top">';
print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input class="flat" type="file" name="userfile" size="40" maxlength="80">';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<input class="flat" type="file" name="userfile" size="80">';
print ' &nbsp; ';
print '<input type="submit" class="button" value="'.$langs->trans("Add").'" name="sendit">';

View File

@ -165,7 +165,7 @@ if ($facid > 0)
print '<form name="userfile" action="document.php?facid='.$facture->id.'" enctype="multipart/form-data" method="POST">';
print '<table width="100%" class="noborder">';
print '<tr><td width="50%" valign="top">';
print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<input class="flat" type="file" name="userfile" size="80">';
print ' &nbsp; ';
print '<input type="submit" class="button" value="'.$langs->trans('Add').'" name="sendit">';

View File

@ -123,7 +123,7 @@ if ($_GET["id"])
print_titre($langs->trans("AddPhoto"));
print '<form name="userfile" action="photos.php?id='.$product->id.'" enctype="multipart/form-data" METHOD="POST">';
print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<table class="border" width="100%"><tr>';
print '<td>'.$langs->trans("File").'</td>';

View File

@ -255,8 +255,8 @@ if ($product->id)
print '<table class="noborder" width="100%">';
print '<tr><td width="50%" valign="top">';
print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input class="flat" type="file" name="userfile" size="40" maxlength="80">';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<input class="flat" type="file" name="userfile" size="80">';
print ' &nbsp; ';
print '<input type="submit" class="button" value="'.$langs->trans("Add").'" name="sendit">';

View File

@ -242,7 +242,7 @@ if ($_GET["id"] || $_GET["ref"])
print '<table class="border" width="100%"><tr>';
print '<td>'.$langs->trans("File").' ('.$langs->trans("Size").' <= '.$conf->maxfilesize.')</td>';
print '<td><input type="file" class="flat" name="photofile"></td></tr>';
print '<td><input type="file" class="flat" name="photofile" size="80"></td></tr>';
print '<tr><td colspan="2" align="center">';
print '<input type="submit" class="button" name="sendit" value="'.$langs->trans("Upload").'"> &nbsp; ';

View File

@ -103,7 +103,7 @@ else
print '<br>';
print '<form name="userfile" action="index.php" enctype="multipart/form-data" METHOD="POST">';
print '<input type="hidden" name="max_file_size" value="2000000">';
print '<input type="hidden" name="max_file_size" value="'.$conf->maxfilesize.'">';
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre"><td>Charger un fichier de retour</td></tr>';