|
@@ -61,8 +61,13 @@ if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) {
|
|
|
dol_print_error($db);
|
|
|
}
|
|
|
} elseif ($action == 'updateform') {
|
|
|
- $res1 = dolibarr_set_const($db, "MAIN_APPLICATION_TITLE", GETPOST("MAIN_APPLICATION_TITLE", 'alphanohtml'), 'chaine', 0, '', $conf->entity);
|
|
|
- $res2 = dolibarr_set_const($db, "MAIN_SESSION_TIMEOUT", GETPOST("MAIN_SESSION_TIMEOUT", 'alphanohtml'), 'chaine', 0, '', $conf->entity);
|
|
|
+ $res1 = 1; $res2 = 1;
|
|
|
+ if (GETPOSTISSET('MAIN_APPLICATION_TITLE')) {
|
|
|
+ $res1 = dolibarr_set_const($db, "MAIN_APPLICATION_TITLE", GETPOST("MAIN_APPLICATION_TITLE", 'alphanohtml'), 'chaine', 0, '', $conf->entity);
|
|
|
+ }
|
|
|
+ if (GETPOSTISSET('MAIN_SESSION_TIMEOUT')) {
|
|
|
+ $res2 = dolibarr_set_const($db, "MAIN_SESSION_TIMEOUT", GETPOST("MAIN_SESSION_TIMEOUT", 'alphanohtml'), 'chaine', 0, '', $conf->entity);
|
|
|
+ }
|
|
|
if ($res1 && $res2) {
|
|
|
setEventMessages($langs->trans("RecordModifiedSuccessfully"), null, 'mesgs');
|
|
|
}
|
|
@@ -165,11 +170,11 @@ if (ini_get("session.gc_probability") == 0) {
|
|
|
}
|
|
|
print '</td>';
|
|
|
print '<td class="nowrap">';
|
|
|
-print '<input class="flat" name="MAIN_SESSION_TIMEOUT" type="text" size="6" value="'.dol_escape_htmltag($conf->global->MAIN_SESSION_TIMEOUT).'"> '.strtolower($langs->trans("Seconds"));
|
|
|
+print '<input class="flat right width50" name="MAIN_SESSION_TIMEOUT" type="text" value="'.dol_escape_htmltag($conf->global->MAIN_SESSION_TIMEOUT).'"> '.strtolower($langs->trans("Seconds"));
|
|
|
print '</td>';
|
|
|
print '</tr>';
|
|
|
|
|
|
-
|
|
|
+/*
|
|
|
if (empty($conf->global->MAIN_APPLICATION_TITLE)) {
|
|
|
$conf->global->MAIN_APPLICATION_TITLE = "";
|
|
|
}
|
|
@@ -180,6 +185,7 @@ print '<td class="nowrap">';
|
|
|
print '<input class="flat" name="MAIN_APPLICATION_TITLE" type="text" size="20" value="'.dol_escape_htmltag($conf->global->MAIN_APPLICATION_TITLE).'"> ';
|
|
|
print '</td>';
|
|
|
print '</tr>';
|
|
|
+*/
|
|
|
|
|
|
print '</table>';
|
|
|
|