|
@@ 448-457 (lines=10) @@
|
| 445 |
|
return $config_vars; |
| 446 |
|
|
| 447 |
|
// Saving? |
| 448 |
|
if (isset($_GET['save'])) |
| 449 |
|
{ |
| 450 |
|
saveDBSettings($config_vars); |
| 451 |
|
$_SESSION['adm-save'] = true; |
| 452 |
|
|
| 453 |
|
call_integration_hook('integrate_save_general_security_settings'); |
| 454 |
|
|
| 455 |
|
writeLog(); |
| 456 |
|
redirectexit('action=admin;area=serversettings;sa=security;' . $context['session_var'] . '=' . $context['session_id']); |
| 457 |
|
} |
| 458 |
|
|
| 459 |
|
$context['post_url'] = $scripturl . '?action=admin;area=serversettings;save;sa=security'; |
| 460 |
|
$context['settings_title'] = $txt['security_settings']; |
|
@@ 526-538 (lines=13) @@
|
| 523 |
|
return $config_vars; |
| 524 |
|
|
| 525 |
|
// Saving again? |
| 526 |
|
if (isset($_GET['save'])) |
| 527 |
|
{ |
| 528 |
|
call_integration_hook('integrate_save_cache_settings'); |
| 529 |
|
|
| 530 |
|
saveSettings($config_vars); |
| 531 |
|
$_SESSION['adm-save'] = true; |
| 532 |
|
|
| 533 |
|
// We need to save the $cache_enable to $modSettings as well |
| 534 |
|
updatesettings(array('cache_enable' => (int) $_POST['cache_enable'])); |
| 535 |
|
|
| 536 |
|
// exit so we reload our new settings on the page |
| 537 |
|
redirectexit('action=admin;area=serversettings;sa=cache;' . $context['session_var'] . '=' . $context['session_id']); |
| 538 |
|
} |
| 539 |
|
|
| 540 |
|
loadLanguage('ManageMaintenance'); |
| 541 |
|
createToken('admin-maint'); |