1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-28 03:22:55 +01:00

Merge branch '3.2.x'

This commit is contained in:
Marc Alexander 2019-05-02 19:39:15 +02:00
commit 42912ba48b
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
4 changed files with 8 additions and 0 deletions

View File

@ -2652,6 +2652,9 @@ function login_forum_box($forum_data)
page_header($user->lang['LOGIN']);
// Add form token for login box
add_form_key('login', '_LOGIN');
$template->assign_vars(array(
'FORUM_NAME' => isset($forum_data['forum_name']) ? $forum_data['forum_name'] : '',
'S_LOGIN_ACTION' => build_url(array('f')),

View File

@ -25,6 +25,7 @@
<dd><input type="password" tabindex="1" id="password" name="password" size="25" class="inputbox narrow" autocomplete="off" /></dd>
</dl>
{S_LOGIN_REDIRECT}
{S_FORM_TOKEN_LOGIN}
<dl>
<dt>&nbsp;</dt>
<dd>{S_HIDDEN_FIELDS}<input type="submit" name="login" id="login" class="button1 button button-form" value="{L_LOGIN}" tabindex="2" /></dd>

View File

@ -114,6 +114,7 @@
<dd><input type="submit" name="login" tabindex="5" value="{L_LOGIN}" class="button1 button button-form" /></dd>
</dl>
{S_LOGIN_REDIRECT}
{S_FORM_TOKEN_LOGIN}
</fieldset>
</div>

View File

@ -198,6 +198,9 @@ if (!($forum_data['forum_type'] == FORUM_POST || (($forum_data['forum_flags'] &
// We also make this circumstance available to the template in case we want to display a notice. ;)
if (!$auth->acl_gets('f_read', 'f_list_topics', $forum_id))
{
// Add form token for login box
add_form_key('login', '_LOGIN');
$template->assign_vars(array(
'S_NO_READ_ACCESS' => true,
));