read allowed max-file-size from php.ini in webftp script, fixes #1370
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -37,8 +37,13 @@ $editFileExtensions = array("php[345]?$","sh$","txt$","[ps]?htm[l]?$","tpl$","pl
|
|||||||
$editFileNoExtension = true;
|
$editFileNoExtension = true;
|
||||||
// Which FTP - mode should be used by default?
|
// Which FTP - mode should be used by default?
|
||||||
$default_mode = "FTP_BINARY";
|
$default_mode = "FTP_BINARY";
|
||||||
// Max. uploadsize (0 = unlimited)
|
// Max. uploadsize (0 = unlimited) - read from php.ini
|
||||||
$MAX_FILE_SIZE = 1907300;
|
$_mfs = ini_get('upload_max_filesize');
|
||||||
|
if ($_mfs === false || is_numeric(_mfs) == false) {
|
||||||
|
$MAX_FILE_SIZE = 1907300;
|
||||||
|
} else {
|
||||||
|
$MAX_FILE_SIZE = $_mfs;
|
||||||
|
}
|
||||||
// The color of a marked row
|
// The color of a marked row
|
||||||
$marked_color = '#FFC2CA';
|
$marked_color = '#FFC2CA';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user