|
@@ 602-611 (lines=10) @@
|
| 599 |
|
return $config_vars; |
| 600 |
|
|
| 601 |
|
// Saving? |
| 602 |
|
if (isset($_GET['save'])) |
| 603 |
|
{ |
| 604 |
|
saveDBSettings($config_vars); |
| 605 |
|
$_SESSION['adm-save'] = true; |
| 606 |
|
|
| 607 |
|
call_integration_hook('integrate_save_general_security_settings'); |
| 608 |
|
|
| 609 |
|
writeLog(); |
| 610 |
|
redirectexit('action=admin;area=serversettings;sa=security;' . $context['session_var'] . '=' . $context['session_id']); |
| 611 |
|
} |
| 612 |
|
|
| 613 |
|
$context['post_url'] = $scripturl . '?action=admin;area=serversettings;save;sa=security'; |
| 614 |
|
$context['settings_title'] = $txt['security_settings']; |
|
@@ 680-692 (lines=13) @@
|
| 677 |
|
return $config_vars; |
| 678 |
|
|
| 679 |
|
// Saving again? |
| 680 |
|
if (isset($_GET['save'])) |
| 681 |
|
{ |
| 682 |
|
call_integration_hook('integrate_save_cache_settings'); |
| 683 |
|
|
| 684 |
|
saveSettings($config_vars); |
| 685 |
|
$_SESSION['adm-save'] = true; |
| 686 |
|
|
| 687 |
|
// We need to save the $cache_enable to $modSettings as well |
| 688 |
|
updatesettings(array('cache_enable' => (int) $_POST['cache_enable'])); |
| 689 |
|
|
| 690 |
|
// exit so we reload our new settings on the page |
| 691 |
|
redirectexit('action=admin;area=serversettings;sa=cache;' . $context['session_var'] . '=' . $context['session_id']); |
| 692 |
|
} |
| 693 |
|
|
| 694 |
|
loadLanguage('ManageMaintenance'); |
| 695 |
|
createToken('admin-maint'); |