|
@@ 2253-2260 (lines=8) @@
|
| 2250 |
|
global $txt, $scripturl, $context, $modSettings, $sourcedir; |
| 2251 |
|
|
| 2252 |
|
// Because of the way this stuff works, we want to do this ourselves. |
| 2253 |
|
if (isset($_POST['edit_notify_topics']) || isset($_POST['remove_notify_topics'])) |
| 2254 |
|
{ |
| 2255 |
|
checkSession(); |
| 2256 |
|
validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post'); |
| 2257 |
|
|
| 2258 |
|
makeNotificationChanges($memID); |
| 2259 |
|
$context['profile_updated'] = $txt['profile_updated_own']; |
| 2260 |
|
} |
| 2261 |
|
|
| 2262 |
|
// Now set up for the token check. |
| 2263 |
|
$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u'); |
|
@@ 2412-2419 (lines=8) @@
|
| 2409 |
|
global $txt, $scripturl, $context, $sourcedir; |
| 2410 |
|
|
| 2411 |
|
// Because of the way this stuff works, we want to do this ourselves. |
| 2412 |
|
if (isset($_POST['edit_notify_boards']) || isset($_POSt['remove_notify_boards'])) |
| 2413 |
|
{ |
| 2414 |
|
checkSession(); |
| 2415 |
|
validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post'); |
| 2416 |
|
|
| 2417 |
|
makeNotificationChanges($memID); |
| 2418 |
|
$context['profile_updated'] = $txt['profile_updated_own']; |
| 2419 |
|
} |
| 2420 |
|
|
| 2421 |
|
// Now set up for the token check. |
| 2422 |
|
$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u'); |