From 44fb54b9b72eb1a01543e14615fdc8ec43e73a64 Mon Sep 17 00:00:00 2001 From: Jakub Senko Date: Mon, 25 Feb 2019 14:19:08 +0100 Subject: [ticket/15978] Add core.index_mark_notification_after PHPBB3-15978 --- phpBB/index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'phpBB/index.php') diff --git a/phpBB/index.php b/phpBB/index.php index 4e37782206..13b914abd3 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -55,6 +55,17 @@ if (($mark_notification = $request->variable('mark_notification', 0))) $notification->mark_read(); + /** + * You can use this event to perform additional tasks or redirect user elsewhere. + * + * @event core.index_mark_notification_after + * @var int mark_notification Notification ID + * @var \phpbb\notification\type\type_interface notification Notification instance + * @since 3.2.6-RC1 + */ + $vars = array('mark_notification', 'notification'); + extract($phpbb_dispatcher->trigger_event('core.index_mark_notification_after', compact($vars))); + if ($request->is_ajax()) { $json_response = new \phpbb\json_response(); -- cgit v1.2.1 From b8368980162392bf9f97496ecec18abe2bd34fad Mon Sep 17 00:00:00 2001 From: Derky Date: Fri, 26 Apr 2019 12:08:37 +0200 Subject: [ticket/security/228] Add form token to login box SECURITY-228 --- phpBB/index.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'phpBB/index.php') diff --git a/phpBB/index.php b/phpBB/index.php index 13b914abd3..5eee7723a9 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -211,6 +211,9 @@ if ($show_birthdays) $template->assign_block_vars_array('birthdays', $birthdays); } +// Add form token for login box +add_form_key('login', '_LOGIN'); + // Assign index specific vars $template->assign_vars(array( 'TOTAL_POSTS' => $user->lang('TOTAL_POSTS_COUNT', (int) $config['num_posts']), -- cgit v1.2.1 From 792882ef63977c6b7ca068c65383fb8be8372172 Mon Sep 17 00:00:00 2001 From: EA117 Date: Sun, 28 Jul 2019 15:15:39 -0500 Subject: [ticket/16054] Restore ability to login from any template. Moving the login form's add_form_key() work into page_header(), so that the template variables required for presenting a login form are again available to any template that chooses to consume them. PHPBB3-16054 --- phpBB/index.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'phpBB/index.php') diff --git a/phpBB/index.php b/phpBB/index.php index 5eee7723a9..13b914abd3 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -211,9 +211,6 @@ if ($show_birthdays) $template->assign_block_vars_array('birthdays', $birthdays); } -// Add form token for login box -add_form_key('login', '_LOGIN'); - // Assign index specific vars $template->assign_vars(array( 'TOTAL_POSTS' => $user->lang('TOTAL_POSTS_COUNT', (int) $config['num_posts']), -- cgit v1.2.1