mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Bugtracker #4311 - calculate largest allowable upload file size in admin functions
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $
|
||||
| $Revision: 1.8 $
|
||||
| $Date: 2008-04-10 19:23:41 $
|
||||
| $Revision: 1.9 $
|
||||
| $Date: 2008-05-25 09:04:16 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -251,13 +251,18 @@ class themeHandler{
|
||||
if(!is_writable(e_THEME)) {
|
||||
$ns->tablerender(TPVLAN_16, TPVLAN_15);
|
||||
$text = "";
|
||||
} else {
|
||||
$text = "<div style='text-align:center'>
|
||||
}
|
||||
else
|
||||
{
|
||||
require_once(e_HANDLER.'upload_handler.php');
|
||||
$max_file_size = get_user_max_upload();
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td class='forumheader3' style='width: 50%;'>".TPVLAN_13."</td>
|
||||
<td class='forumheader3' style='width: 50%;'>
|
||||
<input type='hidden' name='MAX_FILE_SIZE' value='1000000' />
|
||||
<input type='hidden' name='MAX_FILE_SIZE' value='{$max_file_size}' />
|
||||
<input type='hidden' name='ac' value='".md5(ADMINPWCHANGE)."' />
|
||||
<input class='tbox' type='file' name='file_userfile[]' size='50' />
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user