mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
add maxUploadSize
This commit is contained in:
parent
9fad3765e3
commit
2e3b9f474b
|
@ -162,8 +162,10 @@ class Settings { /* {{{ */
|
|||
var $_logFileRotation = "d";
|
||||
// Enable file upload by jumploader
|
||||
var $_enableLargeFileUpload = false;
|
||||
// size of partitions for file upload by jumploader
|
||||
// size of partitions for file uploaded by fine-loader
|
||||
var $_partitionSize = 2000000;
|
||||
// max size of files uploaded by fine-uploader, set to 0 for unlimited
|
||||
var $_maxUploadSize = 0;
|
||||
// enable/disable users images
|
||||
var $_enableUserImage = false;
|
||||
// enable/disable calendar
|
||||
|
@ -440,6 +442,7 @@ class Settings { /* {{{ */
|
|||
$this->_logFileRotation = strval($tab["logFileRotation"]);
|
||||
$this->_enableLargeFileUpload = Settings::boolVal($tab["enableLargeFileUpload"]);
|
||||
$this->_partitionSize = strval($tab["partitionSize"]);
|
||||
$this->_maxUploadSize = strval($tab["maxUploadSize"]);
|
||||
|
||||
// XML Path: /configuration/system/authentication
|
||||
$node = $xml->xpath('/configuration/system/authentication');
|
||||
|
@ -741,6 +744,7 @@ class Settings { /* {{{ */
|
|||
$this->setXMLAttributValue($node, "logFileRotation", $this->_logFileRotation);
|
||||
$this->setXMLAttributValue($node, "enableLargeFileUpload", $this->_enableLargeFileUpload);
|
||||
$this->setXMLAttributValue($node, "partitionSize", $this->_partitionSize);
|
||||
$this->setXMLAttributValue($node, "maxUploadSize", $this->_maxUploadSize);
|
||||
|
||||
// XML Path: /configuration/system/authentication
|
||||
$node = $this->getXMLNode($xml, '/configuration/system', 'authentication');
|
||||
|
|
|
@ -110,6 +110,7 @@ if ($action == "saveSettings")
|
|||
$settings->_logFileRotation = $_POST["logFileRotation"];
|
||||
$settings->_enableLargeFileUpload = getBoolValue("enableLargeFileUpload");
|
||||
$settings->_partitionSize = $_POST["partitionSize"];
|
||||
$settings->_maxUploadSize = $_POST["maxUploadSize"];
|
||||
|
||||
// SETTINGS - SYSTEM - AUTHENTICATION
|
||||
$settings->_enableGuestLogin = getBoolValue("enableGuestLogin");
|
||||
|
|
|
@ -390,6 +390,10 @@ if(!is_writeable($settings->_configFilePath)) {
|
|||
<td><?php printMLText("settings_partitionSize");?>:</td>
|
||||
<td><?php $this->showTextField("partitionSize", $settings->_partitionSize); ?></td>
|
||||
</tr>
|
||||
<tr title="<?php printMLText("settings_maxUploadSize_desc");?>">
|
||||
<td><?php printMLText("settings_maxUploadSize");?>:</td>
|
||||
<td><?php $this->showTextField("maxUploadSize", $settings->_maxUploadSize); ?></td>
|
||||
</tr>
|
||||
<!--
|
||||
-- SETTINGS - SYSTEM - AUTHENTICATION
|
||||
-->
|
||||
|
|
Loading…
Reference in New Issue
Block a user