mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
add new paramter autoLoginUser
This commit is contained in:
parent
40cd60f985
commit
f35ae2736a
|
@ -50,6 +50,8 @@ class Settings { /* {{{ */
|
|||
var $_passwordHistory = 10;
|
||||
// Number of failed logins before account is disabled
|
||||
var $_loginFailure = 0;
|
||||
// User id that is automatically logged if nobody is logged in
|
||||
var $_autoLoginUser = 0;
|
||||
// maximum amount of bytes a user may consume, 0 = unlimited
|
||||
var $_quota = 0;
|
||||
// comma separated list of undeleteable user ids
|
||||
|
@ -387,6 +389,7 @@ class Settings { /* {{{ */
|
|||
$this->_passwordExpiration = intval($tab["passwordExpiration"]);
|
||||
$this->_passwordHistory = intval($tab["passwordHistory"]);
|
||||
$this->_loginFailure = intval($tab["loginFailure"]);
|
||||
$this->_autoLoginUser = intval($tab["autoLoginUser"]);
|
||||
$this->_quota = intval($tab["quota"]);
|
||||
$this->_undelUserIds = strval($tab["undelUserIds"]);
|
||||
$this->_encryptionKey = strval($tab["encryptionKey"]);
|
||||
|
@ -672,6 +675,7 @@ class Settings { /* {{{ */
|
|||
$this->setXMLAttributValue($node, "passwordExpiration", $this->_passwordExpiration);
|
||||
$this->setXMLAttributValue($node, "passwordHistory", $this->_passwordHistory);
|
||||
$this->setXMLAttributValue($node, "loginFailure", $this->_loginFailure);
|
||||
$this->setXMLAttributValue($node, "autoLoginUser", $this->_autoLoginUser);
|
||||
$this->setXMLAttributValue($node, "quota", $this->_quota);
|
||||
$this->setXMLAttributValue($node, "undelUserIds", $this->_undelUserIds);
|
||||
$this->setXMLAttributValue($node, "encryptionKey", $this->_encryptionKey);
|
||||
|
|
|
@ -111,6 +111,7 @@ if ($action == "saveSettings")
|
|||
$settings->_passwordExpiration = intval($_POST["passwordExpiration"]);
|
||||
$settings->_passwordHistory = intval($_POST["passwordHistory"]);
|
||||
$settings->_loginFailure = intval($_POST["loginFailure"]);
|
||||
$settings->_autoLoginUser = intval($_POST["autoLoginUser"]);
|
||||
$settings->_quota = intval($_POST["quota"]);
|
||||
$settings->_undelUserIds = strval($_POST["undelUserIds"]);
|
||||
$settings->_encryptionKey = strval($_POST["encryptionKey"]);
|
||||
|
|
|
@ -360,6 +360,10 @@ if(!is_writeable($settings->_configFilePath)) {
|
|||
<td><?php printMLText("settings_loginFailure");?>:</td>
|
||||
<td><input type="text" name="loginFailure" value="<?php echo $settings->_loginFailure; ?>" size="2" /></td>
|
||||
</tr>
|
||||
<tr title="<?php printMLText("settings_autoLoginUser_desc");?>">
|
||||
<td><?php printMLText("settings_autoLoginUser");?>:</td>
|
||||
<td><input type="text" name="autoLoginUser" value="<?php echo $settings->_autoLoginUser; ?>" size="3" /></td>
|
||||
</tr>
|
||||
<tr title="<?php printMLText("settings_quota_desc");?>">
|
||||
<td><?php printMLText("settings_quota");?>:</td>
|
||||
<td><input type="text" name="quota" value="<?php echo $settings->_quota; ?>" size="2" /></td>
|
||||
|
|
Loading…
Reference in New Issue
Block a user