You can't set session timeout to 0, fixes #815
This commit is contained in:
@@ -64,6 +64,11 @@ if(($page == 'settings' || $page == 'overview')
|
|||||||
$settings_part = false;
|
$settings_part = false;
|
||||||
$only_enabledisable = true;
|
$only_enabledisable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if the session timeout is too low #815
|
||||||
|
if (isset($_POST['session_sessiontimeout']) && $_POST['session_sessiontimeout'] <= 60) {
|
||||||
|
standard_error($lng['error']['session_timeout'], $lng['error']['session_timeout_desc']);
|
||||||
|
}
|
||||||
|
|
||||||
if(processFormEx(
|
if(processFormEx(
|
||||||
$settings_data,
|
$settings_data,
|
||||||
|
|||||||
@@ -1884,4 +1884,6 @@ $lng['serversettings']['diskquota_enabled'] = 'Quota activated?';
|
|||||||
$lng['serversettings']['diskquota_repquota_path']['description'] = 'Path to repquota';
|
$lng['serversettings']['diskquota_repquota_path']['description'] = 'Path to repquota';
|
||||||
$lng['serversettings']['diskquota_quotatool_path']['description'] = 'Path to quotatool';
|
$lng['serversettings']['diskquota_quotatool_path']['description'] = 'Path to quotatool';
|
||||||
$lng['serversettings']['diskquota_customer_partition']['description'] = 'Partition, on which the customer files are stored';
|
$lng['serversettings']['diskquota_customer_partition']['description'] = 'Partition, on which the customer files are stored';
|
||||||
$lng['tasks']['diskspace_set_quota'] = 'Set quota on filesystem';
|
$lng['tasks']['diskspace_set_quota'] = 'Set quota on filesystem';
|
||||||
|
$lng['error']['session_timeout'] = 'Value too low';
|
||||||
|
$lng['error']['session_timeout_desc'] = 'You should not set the session timeout lower than 1 minute.';
|
||||||
@@ -1615,4 +1615,6 @@ $lng['serversettings']['diskquota_enabled'] = 'Quota aktiviert?';
|
|||||||
$lng['serversettings']['diskquota_repquota_path']['description'] = 'Pfad zu repquota';
|
$lng['serversettings']['diskquota_repquota_path']['description'] = 'Pfad zu repquota';
|
||||||
$lng['serversettings']['diskquota_quotatool_path']['description'] = 'Pfad zu quotatool';
|
$lng['serversettings']['diskquota_quotatool_path']['description'] = 'Pfad zu quotatool';
|
||||||
$lng['serversettings']['diskquota_customer_partition']['description'] = 'Partition, auf welcher die Kundendaten liegen';
|
$lng['serversettings']['diskquota_customer_partition']['description'] = 'Partition, auf welcher die Kundendaten liegen';
|
||||||
$lng['tasks']['diskspace_set_quota'] = 'Quota auf dem Dateisystem setzen';
|
$lng['tasks']['diskspace_set_quota'] = 'Quota auf dem Dateisystem setzen';
|
||||||
|
$lng['error']['session_timeout'] = 'Wert zu niedrig';
|
||||||
|
$lng['error']['session_timeout_desc'] = 'Der Wert der Session Timeout sollte nicht unter einer Minute liegen.';
|
||||||
Reference in New Issue
Block a user