|
@@ 2295-2302 (lines=8) @@
|
| 2292 |
|
global $txt, $scripturl, $context, $modSettings, $sourcedir; |
| 2293 |
|
|
| 2294 |
|
// Because of the way this stuff works, we want to do this ourselves. |
| 2295 |
|
if (isset($_POST['edit_notify_topics']) || isset($_POST['remove_notify_topics'])) |
| 2296 |
|
{ |
| 2297 |
|
checkSession(); |
| 2298 |
|
validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post'); |
| 2299 |
|
|
| 2300 |
|
makeNotificationChanges($memID); |
| 2301 |
|
$context['profile_updated'] = $txt['profile_updated_own']; |
| 2302 |
|
} |
| 2303 |
|
|
| 2304 |
|
// Now set up for the token check. |
| 2305 |
|
$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u'); |
|
@@ 2454-2461 (lines=8) @@
|
| 2451 |
|
global $txt, $scripturl, $context, $sourcedir; |
| 2452 |
|
|
| 2453 |
|
// Because of the way this stuff works, we want to do this ourselves. |
| 2454 |
|
if (isset($_POST['edit_notify_boards']) || isset($_POSt['remove_notify_boards'])) |
| 2455 |
|
{ |
| 2456 |
|
checkSession(); |
| 2457 |
|
validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post'); |
| 2458 |
|
|
| 2459 |
|
makeNotificationChanges($memID); |
| 2460 |
|
$context['profile_updated'] = $txt['profile_updated_own']; |
| 2461 |
|
} |
| 2462 |
|
|
| 2463 |
|
// Now set up for the token check. |
| 2464 |
|
$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u'); |