From 088a2b71fbe1a89f5f3bae82ba9b54e8191c30fc Mon Sep 17 00:00:00 2001 From: martin <martin> Date: Sun, 1 Sep 2002 14:31:14 +0000 Subject: [PATCH] Documentation on file sizes --- user/edit.html | 7 +++++-- user/edit.php | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/user/edit.html b/user/edit.html index 159e51fc48..e21de03775 100644 --- a/user/edit.html +++ b/user/edit.html @@ -48,8 +48,11 @@ if (isadmin()) { <td><P><? print_string("newpicture") ?>:</td> <td> <INPUT type="hidden" name="MAX_FILE_SIZE" value="4000000"> - <input type="file" name="imagefile" size=40> ( .jpg / .png ) <? helpbutton("picture", get_string("helppicture") ) ?> - <? formerr($err["imagefile"]) ?> + <input type="file" name="imagefile" size=40> + <? helpbutton("picture", get_string("helppicture")); + print_string("maxsize", "", display_size(get_max_upload_file_size())); + formerr($err["imagefile"]); + ?> </td> </tr> <tr valign=top> diff --git a/user/edit.php b/user/edit.php index 3de6d84516..106a0b5409 100644 --- a/user/edit.php +++ b/user/edit.php @@ -43,7 +43,6 @@ $user = $usernew; } else { - $timenow = time(); if ($filename = valid_uploaded_file($imagefile)) { -- 2.39.5