mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/16825] Add link hashes to logout links
PHPBB3-16825
This commit is contained in:
@@ -60,8 +60,15 @@ class acp_main
|
||||
{
|
||||
if ($action === 'admlogout')
|
||||
{
|
||||
$user->unset_admin();
|
||||
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
|
||||
if (check_link_hash($request->variable('hash', ''), 'acp_logout'))
|
||||
{
|
||||
$user->unset_admin();
|
||||
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
|
||||
}
|
||||
else
|
||||
{
|
||||
redirect(append_sid("{$phpbb_admin_path}index.$phpEx"));
|
||||
}
|
||||
}
|
||||
|
||||
if (!confirm_box(true))
|
||||
|
Reference in New Issue
Block a user