From dac0adead30ed70400a2a22f9439a8184ad479d8 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 3 May 2003 23:58:45 +0000 Subject: page header/footer become functions, forum passwords (I know, I know but it appears a popular feature for some reason ... inclusion not yet set in concrete nor complete), various bug fixes (and no doubt new bugs). git-svn-id: file:///svn/phpbb/trunk@3969 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'phpBB/posting.php') diff --git a/phpBB/posting.php b/phpBB/posting.php index 11cf0fc29e..e9b58eec31 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -167,6 +167,11 @@ if ($sql != '') $topic_id = intval($row['topic_id']); $post_id = intval($row['post_id']); + if ($row['forum_password']) + { + login_forum_box($row); + } + foreach ($forum_fields as $var => $type) { switch ($type) @@ -466,8 +471,7 @@ if ($mode == 'delete' && (($poster_id == $user->data['user_id'] && $user->data[' { $s_hidden_fields = ''; - $page_title = $user->lang['DELETE_MESSAGE']; - include($phpbb_root_path . 'includes/page_header.' . $phpEx); + page_header($user->lang['DELETE_MESSAGE']); $template->set_filenames(array( 'body' => 'confirm_body.html') @@ -481,7 +485,7 @@ if ($mode == 'delete' && (($poster_id == $user->data['user_id'] && $user->data[' 'S_HIDDEN_FIELDS' => $s_hidden_fields) ); - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); + page_footer(); } } @@ -1120,7 +1124,7 @@ if (($perm['f_attach']) || ($perm['m_edit'])) } // Output page ... -include($phpbb_root_path . 'includes/page_header.'.$phpEx); +page_header($page_title); $template->set_filenames(array( 'body' => 'posting_body.html') @@ -1134,7 +1138,7 @@ if ($mode == 'reply' || $mode == 'quote') topic_review($topic_id, true); } -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); +page_footer(); // FUNCTIONS @@ -1265,7 +1269,7 @@ function topic_review($topic_id, $is_inline_review = false) 'body' => 'posting_topic_review.html') ); - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); + page_footer(); } } -- cgit v1.2.1