|
@@ 431-440 (lines=10) @@
|
| 428 |
|
return $config_vars; |
| 429 |
|
|
| 430 |
|
// Saving? |
| 431 |
|
if (isset($_GET['save'])) |
| 432 |
|
{ |
| 433 |
|
saveDBSettings($config_vars); |
| 434 |
|
$_SESSION['adm-save'] = true; |
| 435 |
|
|
| 436 |
|
call_integration_hook('integrate_save_general_security_settings'); |
| 437 |
|
|
| 438 |
|
writeLog(); |
| 439 |
|
redirectexit('action=admin;area=serversettings;sa=security;' . $context['session_var'] . '=' . $context['session_id']); |
| 440 |
|
} |
| 441 |
|
|
| 442 |
|
$context['post_url'] = $scripturl . '?action=admin;area=serversettings;save;sa=security'; |
| 443 |
|
$context['settings_title'] = $txt['security_settings']; |
|
@@ 509-521 (lines=13) @@
|
| 506 |
|
return $config_vars; |
| 507 |
|
|
| 508 |
|
// Saving again? |
| 509 |
|
if (isset($_GET['save'])) |
| 510 |
|
{ |
| 511 |
|
call_integration_hook('integrate_save_cache_settings'); |
| 512 |
|
|
| 513 |
|
saveSettings($config_vars); |
| 514 |
|
$_SESSION['adm-save'] = true; |
| 515 |
|
|
| 516 |
|
// We need to save the $cache_enable to $modSettings as well |
| 517 |
|
updatesettings(array('cache_enable' => (int) $_POST['cache_enable'])); |
| 518 |
|
|
| 519 |
|
// exit so we reload our new settings on the page |
| 520 |
|
redirectexit('action=admin;area=serversettings;sa=cache;' . $context['session_var'] . '=' . $context['session_id']); |
| 521 |
|
} |
| 522 |
|
|
| 523 |
|
loadLanguage('ManageMaintenance'); |
| 524 |
|
createToken('admin-maint'); |