diff --git a/inc/inc.ClassSettings.php b/inc/inc.ClassSettings.php index 00826e574..32484549f 100644 --- a/inc/inc.ClassSettings.php +++ b/inc/inc.ClassSettings.php @@ -50,6 +50,8 @@ class Settings { /* {{{ */ var $_passwordHistory = 10; // Number of failed logins before account is disabled var $_loginFailure = 0; + // maximum amount of bytes a user may consume, 0 = unlimited + var $_quota = 0; // Restricted access: only allow users to log in if they have an entry in // the local database (irrespective of successful authentication with LDAP). var $_restricted = true; @@ -324,6 +326,7 @@ class Settings { /* {{{ */ $this->_passwordExpiration = intval($tab["passwordExpiration"]); $this->_passwordHistory = intval($tab["passwordHistory"]); $this->_loginFailure = intval($tab["loginFailure"]); + $this->_quota = intval($tab["quota"]); $this->_encryptionKey = strval($tab["encryptionKey"]); $this->_restricted = Settings::boolVal($tab["restricted"]); $this->_enableUserImage = Settings::boolVal($tab["enableUserImage"]); @@ -563,6 +566,7 @@ class Settings { /* {{{ */ $this->setXMLAttributValue($node, "passwordExpiration", $this->_passwordExpiration); $this->setXMLAttributValue($node, "passwordHistory", $this->_passwordHistory); $this->setXMLAttributValue($node, "loginFailure", $this->_loginFailure); + $this->setXMLAttributValue($node, "quota", $this->_quota); $this->setXMLAttributValue($node, "encryptionKey", $this->_encryptionKey); $this->setXMLAttributValue($node, "restricted", $this->_restricted); $this->setXMLAttributValue($node, "enableUserImage", $this->_enableUserImage); diff --git a/op/op.Settings.php b/op/op.Settings.php index 0acd0a995..6c1ccc174 100644 --- a/op/op.Settings.php +++ b/op/op.Settings.php @@ -99,6 +99,7 @@ if ($action == "saveSettings") $settings->_passwordExpiration = intval($_POST["passwordExpiration"]); $settings->_passwordHistory = intval($_POST["passwordHistory"]); $settings->_loginFailure = intval($_POST["loginFailure"]); + $settings->_quota = intval($_POST["quota"]); $settings->_encryptionKey = strval($_POST["encryptionKey"]); // TODO Connectors @@ -156,6 +157,6 @@ if ($action == "saveSettings") } -header("Location:../out/out.AdminTools.php"); +header("Location:../out/out.Settings.php"); ?> diff --git a/views/blue/class.Settings.php b/views/blue/class.Settings.php index 6d0cb59ae..22ccb540f 100644 --- a/views/blue/class.Settings.php +++ b/views/blue/class.Settings.php @@ -320,6 +320,10 @@ if(!is_writeable($settings->_configFilePath)) { : + "> + : + + "> : diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index 840b972a9..2c51b21a6 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -308,6 +308,10 @@ if(!is_writeable($settings->_configFilePath)) { : + "> + : + + "> :