aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 64dd9948df..88e95ba6b9 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -116,11 +116,11 @@ if ($forum_data['forum_link'])
$user->setup(false, $forum_data['forum_style']);
-// Does a password exist for this forum? If so do the necessary
+// Forum is passworded ... check whether access has been granted to this
+// user this session, if not show login box
if ($forum_data['forum_password'])
{
-
-
+ login_forum_box($forum_data);
}
@@ -555,17 +555,15 @@ $nav_links['up'] = array(
);
*/
-// Dump out the page header and load viewforum template
-$page_title = $user->lang['VIEW_FORUM'] . ' - ' . $forum_data['forum_name'];
-include($phpbb_root_path . 'includes/page_header.'.$phpEx);
+// Dump out the page header and load viewforum template
+page_header($user->lang['VIEW_FORUM'] . ' - ' . $forum_data['forum_name']);
$template->set_filenames(array(
'body' => 'viewforum_body.html')
);
make_jumpbox("viewforum.$phpEx$SID", $forum_id);
-
-include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
+page_footer();
?> \ No newline at end of file