diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-05-03 23:58:45 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-05-03 23:58:45 +0000 |
commit | dac0adead30ed70400a2a22f9439a8184ad479d8 (patch) | |
tree | 6a04b15e16669a1b6900c550ae06c856c06d09d8 /phpBB/posting.php | |
parent | 5b927b016203cf0eb73bc33a787b778b9f614578 (diff) | |
download | forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar.gz forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar.bz2 forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar.xz forums-dac0adead30ed70400a2a22f9439a8184ad479d8.zip |
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
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 16 |
1 files changed, 10 insertions, 6 deletions
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 = '<input type="hidden" name="p" value="' . $post_id . '" /><input type="hidden" name="mode" value="delete" />'; - $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(); } } |