Sources/ManageCalendar.php 1 location
|
@@ 395-408 (lines=14) @@
|
| 392 |
|
$context['settings_title'] = $txt['calendar_settings']; |
| 393 |
|
|
| 394 |
|
// Saving the settings? |
| 395 |
|
if (isset($_GET['save'])) |
| 396 |
|
{ |
| 397 |
|
checkSession(); |
| 398 |
|
call_integration_hook('integrate_save_calendar_settings'); |
| 399 |
|
saveDBSettings($config_vars); |
| 400 |
|
|
| 401 |
|
// Update the stats in case. |
| 402 |
|
updateSettings(array( |
| 403 |
|
'calendar_updated' => time(), |
| 404 |
|
)); |
| 405 |
|
|
| 406 |
|
$_SESSION['adm-save'] = true; |
| 407 |
|
redirectexit('action=admin;area=managecalendar;sa=settings'); |
| 408 |
|
} |
| 409 |
|
|
| 410 |
|
// We need this for the inline permissions |
| 411 |
|
createToken('admin-mp'); |
Sources/ManageSearchEngines.php 1 location
|
@@ 135-144 (lines=10) @@
|
| 132 |
|
$context['sub_template'] = 'show_settings'; |
| 133 |
|
|
| 134 |
|
// Are we saving them - are we?? |
| 135 |
|
if (isset($_GET['save'])) |
| 136 |
|
{ |
| 137 |
|
checkSession(); |
| 138 |
|
|
| 139 |
|
call_integration_hook('integrate_save_search_engine_settings'); |
| 140 |
|
saveDBSettings($config_vars); |
| 141 |
|
recacheSpiderNames(); |
| 142 |
|
$_SESSION['adm-save'] = true; |
| 143 |
|
redirectexit('action=admin;area=sengines;sa=settings'); |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
// Final settings... |
| 147 |
|
$context['post_url'] = $scripturl . '?action=admin;area=sengines;save;sa=settings'; |
Sources/ManageSettings.php 2 locations
|
@@ 352-363 (lines=12) @@
|
| 349 |
|
return $config_vars; |
| 350 |
|
|
| 351 |
|
// Saving? |
| 352 |
|
if (isset($_GET['save'])) |
| 353 |
|
{ |
| 354 |
|
checkSession(); |
| 355 |
|
|
| 356 |
|
call_integration_hook('integrate_save_layout_settings'); |
| 357 |
|
|
| 358 |
|
saveDBSettings($config_vars); |
| 359 |
|
$_SESSION['adm-save'] = true; |
| 360 |
|
writeLog(); |
| 361 |
|
|
| 362 |
|
redirectexit('action=admin;area=featuresettings;sa=layout'); |
| 363 |
|
} |
| 364 |
|
|
| 365 |
|
$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;save;sa=layout'; |
| 366 |
|
$context['settings_title'] = $txt['mods_cat_layout']; |
|
@@ 2305-2314 (lines=10) @@
|
| 2302 |
|
return $config_vars; |
| 2303 |
|
|
| 2304 |
|
// Saving? |
| 2305 |
|
if (isset($_GET['save'])) |
| 2306 |
|
{ |
| 2307 |
|
checkSession(); |
| 2308 |
|
|
| 2309 |
|
call_integration_hook('integrate_save_privacy_settings'); |
| 2310 |
|
|
| 2311 |
|
saveDBSettings($config_vars); |
| 2312 |
|
$_SESSION['adm-save'] = true; |
| 2313 |
|
redirectexit('action=admin;area=featuresettings;sa=privacy'); |
| 2314 |
|
} |
| 2315 |
|
|
| 2316 |
|
$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;save;sa=privacy'; |
| 2317 |
|
$context['settings_title'] = $txt['privacy']; |
Sources/ManageBoards.php 1 location
|
@@ 892-901 (lines=10) @@
|
| 889 |
|
$context['force_form_onsubmit'] = 'if(document.getElementById(\'recycle_enable\').checked && document.getElementById(\'recycle_board\').value == 0) { return confirm(\'' . $txt['recycle_board_unselected_notice'] . '\');} return true;'; |
| 890 |
|
|
| 891 |
|
// Doing a save? |
| 892 |
|
if (isset($_GET['save'])) |
| 893 |
|
{ |
| 894 |
|
checkSession(); |
| 895 |
|
|
| 896 |
|
call_integration_hook('integrate_save_board_settings'); |
| 897 |
|
|
| 898 |
|
saveDBSettings($config_vars); |
| 899 |
|
$_SESSION['adm-save'] = true; |
| 900 |
|
redirectexit('action=admin;area=manageboards;sa=settings'); |
| 901 |
|
} |
| 902 |
|
|
| 903 |
|
// We need this for the in-line permissions |
| 904 |
|
createToken('admin-mp'); |
Sources/ManageMembergroups.php 1 location
|
@@ 1216-1225 (lines=10) @@
|
| 1213 |
|
|
| 1214 |
|
call_integration_hook('integrate_modify_membergroup_settings', array(&$config_vars)); |
| 1215 |
|
|
| 1216 |
|
if (isset($_REQUEST['save'])) |
| 1217 |
|
{ |
| 1218 |
|
checkSession(); |
| 1219 |
|
call_integration_hook('integrate_save_membergroup_settings'); |
| 1220 |
|
|
| 1221 |
|
// Yeppers, saving this... |
| 1222 |
|
saveDBSettings($config_vars); |
| 1223 |
|
$_SESSION['adm-save'] = true; |
| 1224 |
|
redirectexit('action=admin;area=membergroups;sa=settings'); |
| 1225 |
|
} |
| 1226 |
|
|
| 1227 |
|
// Some simple context. |
| 1228 |
|
$context['post_url'] = $scripturl . '?action=admin;area=membergroups;save;sa=settings'; |
Sources/ManageNews.php 1 location
|
@@ 1099-1108 (lines=10) @@
|
| 1096 |
|
document.getElementById("xmlnews_maxlen").disabled = !document.getElementById("xmlnews_enable").checked;', true); |
| 1097 |
|
|
| 1098 |
|
// Saving the settings? |
| 1099 |
|
if (isset($_GET['save'])) |
| 1100 |
|
{ |
| 1101 |
|
checkSession(); |
| 1102 |
|
|
| 1103 |
|
call_integration_hook('integrate_save_news_settings'); |
| 1104 |
|
|
| 1105 |
|
saveDBSettings($config_vars); |
| 1106 |
|
$_SESSION['adm-save'] = true; |
| 1107 |
|
redirectexit('action=admin;area=news;sa=settings'); |
| 1108 |
|
} |
| 1109 |
|
|
| 1110 |
|
// We need this for the in-line permissions |
| 1111 |
|
createToken('admin-mp'); |
Sources/ManagePosts.php 1 location
|
@@ 326-334 (lines=9) @@
|
| 323 |
|
$context['sub_template'] = 'show_settings'; |
| 324 |
|
|
| 325 |
|
// Are we saving them - are we?? |
| 326 |
|
if (isset($_GET['save'])) |
| 327 |
|
{ |
| 328 |
|
checkSession(); |
| 329 |
|
call_integration_hook('integrate_save_topic_settings'); |
| 330 |
|
|
| 331 |
|
saveDBSettings($config_vars); |
| 332 |
|
$_SESSION['adm-save'] = true; |
| 333 |
|
redirectexit('action=admin;area=postsettings;sa=topics'); |
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
// Final settings... |
| 337 |
|
$context['post_url'] = $scripturl . '?action=admin;area=postsettings;save;sa=topics'; |