| @@ 749-759 (lines=11) @@ | ||
| 746 | $config_vars['language'][4][$lang['filename']] = array($lang['filename'], $lang['name']); |
|
| 747 | ||
| 748 | // Saving settings? |
|
| 749 | if (isset($_REQUEST['save'])) |
|
| 750 | { |
|
| 751 | checkSession(); |
|
| 752 | ||
| 753 | call_integration_hook('integrate_save_language_settings', array(&$config_vars)); |
|
| 754 | ||
| 755 | saveSettings($config_vars); |
|
| 756 | if (!$settings_not_writable && !$settings_backup_fail) |
|
| 757 | $_SESSION['adm-save'] = true; |
|
| 758 | redirectexit('action=admin;area=languages;sa=settings'); |
|
| 759 | } |
|
| 760 | ||
| 761 | // Setup the template stuff. |
|
| 762 | $context['post_url'] = $scripturl . '?action=admin;area=languages;sa=settings;save'; |
|
| @@ 663-676 (lines=14) @@ | ||
| 660 | $context['settings_title'] = $txt['scheduled_tasks_settings']; |
|
| 661 | ||
| 662 | // Saving? |
|
| 663 | if (isset($_GET['save'])) |
|
| 664 | { |
|
| 665 | checkSession(); |
|
| 666 | ||
| 667 | $save_vars = $config_vars; |
|
| 668 | ||
| 669 | call_integration_hook('integrate_save_scheduled_tasks_settings', array(&$save_vars)); |
|
| 670 | ||
| 671 | saveDBSettings($save_vars); |
|
| 672 | ||
| 673 | $_SESSION['adm-save'] = true; |
|
| 674 | ||
| 675 | redirectexit('action=admin;area=scheduledtasks;sa=settings'); |
|
| 676 | } |
|
| 677 | ||
| 678 | prepareDBSettingContext($config_vars); |
|
| 679 | } |
|
| @@ 2231-2247 (lines=17) @@ | ||
| 2228 | } |
|
| 2229 | ||
| 2230 | // Saving? |
|
| 2231 | if (isset($_GET['save'])) |
|
| 2232 | { |
|
| 2233 | checkSession(); |
|
| 2234 | ||
| 2235 | $save_vars = $config_vars; |
|
| 2236 | ||
| 2237 | call_integration_hook('integrate_save_general_mod_settings', array(&$save_vars)); |
|
| 2238 | ||
| 2239 | // This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS! |
|
| 2240 | saveDBSettings($save_vars); |
|
| 2241 | ||
| 2242 | // This line is to remind mod authors that it's nice to let the users know when something has been saved. |
|
| 2243 | $_SESSION['adm-save'] = true; |
|
| 2244 | ||
| 2245 | // This line is to help mod authors do a search/add after if you want to add something here. Keyword: I LOVE TEA! |
|
| 2246 | redirectexit('action=admin;area=modsettings;sa=general'); |
|
| 2247 | } |
|
| 2248 | ||
| 2249 | // This line is to help mod authors do a search/add after if you want to add something here. Keyword: RED INK IS FOR TEACHERS AND THOSE WHO LIKE PAIN! |
|
| 2250 | prepareDBSettingContext($config_vars); |
|