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