|
@@ 621-630 (lines=10) @@
|
| 618 |
|
return $config_vars; |
| 619 |
|
|
| 620 |
|
// Saving? |
| 621 |
|
if (isset($_GET['save'])) |
| 622 |
|
{ |
| 623 |
|
saveDBSettings($config_vars); |
| 624 |
|
$_SESSION['adm-save'] = true; |
| 625 |
|
|
| 626 |
|
call_integration_hook('integrate_save_general_security_settings'); |
| 627 |
|
|
| 628 |
|
writeLog(); |
| 629 |
|
redirectexit('action=admin;area=serversettings;sa=security;' . $context['session_var'] . '=' . $context['session_id']); |
| 630 |
|
} |
| 631 |
|
|
| 632 |
|
$context['post_url'] = $scripturl . '?action=admin;area=serversettings;save;sa=security'; |
| 633 |
|
$context['settings_title'] = $txt['security_settings']; |
|
@@ 699-711 (lines=13) @@
|
| 696 |
|
return $config_vars; |
| 697 |
|
|
| 698 |
|
// Saving again? |
| 699 |
|
if (isset($_GET['save'])) |
| 700 |
|
{ |
| 701 |
|
call_integration_hook('integrate_save_cache_settings'); |
| 702 |
|
|
| 703 |
|
saveSettings($config_vars); |
| 704 |
|
$_SESSION['adm-save'] = true; |
| 705 |
|
|
| 706 |
|
// We need to save the $cache_enable to $modSettings as well |
| 707 |
|
updatesettings(array('cache_enable' => (int) $_POST['cache_enable'])); |
| 708 |
|
|
| 709 |
|
// exit so we reload our new settings on the page |
| 710 |
|
redirectexit('action=admin;area=serversettings;sa=cache;' . $context['session_var'] . '=' . $context['session_id']); |
| 711 |
|
} |
| 712 |
|
|
| 713 |
|
loadLanguage('ManageMaintenance'); |
| 714 |
|
createToken('admin-maint'); |