|
@@ 2277-2284 (lines=8) @@
|
| 2274 |
|
global $txt, $scripturl, $context, $modSettings, $sourcedir; |
| 2275 |
|
|
| 2276 |
|
// Because of the way this stuff works, we want to do this ourselves. |
| 2277 |
|
if (isset($_POST['edit_notify_topics']) || isset($_POST['remove_notify_topics'])) |
| 2278 |
|
{ |
| 2279 |
|
checkSession(); |
| 2280 |
|
validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post'); |
| 2281 |
|
|
| 2282 |
|
makeNotificationChanges($memID); |
| 2283 |
|
$context['profile_updated'] = $txt['profile_updated_own']; |
| 2284 |
|
} |
| 2285 |
|
|
| 2286 |
|
// Now set up for the token check. |
| 2287 |
|
$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u'); |
|
@@ 2436-2443 (lines=8) @@
|
| 2433 |
|
global $txt, $scripturl, $context, $sourcedir; |
| 2434 |
|
|
| 2435 |
|
// Because of the way this stuff works, we want to do this ourselves. |
| 2436 |
|
if (isset($_POST['edit_notify_boards']) || isset($_POSt['remove_notify_boards'])) |
| 2437 |
|
{ |
| 2438 |
|
checkSession(); |
| 2439 |
|
validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post'); |
| 2440 |
|
|
| 2441 |
|
makeNotificationChanges($memID); |
| 2442 |
|
$context['profile_updated'] = $txt['profile_updated_own']; |
| 2443 |
|
} |
| 2444 |
|
|
| 2445 |
|
// Now set up for the token check. |
| 2446 |
|
$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u'); |