diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-05-06 16:58:36 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-05-06 16:58:36 +0000 |
| commit | 4e056b99a9f05632b4782aadb94dbb3a1d52d5be (patch) | |
| tree | a0caa4bf4a45686cd1be34f98618e81c3585b662 /phpBB/posting.php | |
| parent | 93fb7ac165c9d770f0e7c7d7e8edb8003d586ad4 (diff) | |
| download | forums-4e056b99a9f05632b4782aadb94dbb3a1d52d5be.tar forums-4e056b99a9f05632b4782aadb94dbb3a1d52d5be.tar.gz forums-4e056b99a9f05632b4782aadb94dbb3a1d52d5be.tar.bz2 forums-4e056b99a9f05632b4782aadb94dbb3a1d52d5be.tar.xz forums-4e056b99a9f05632b4782aadb94dbb3a1d52d5be.zip | |
Now allow for GET based session
git-svn-id: file:///svn/phpbb/trunk@258 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 5f7060abb5..29832ee665 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -63,7 +63,9 @@ else $pagetype = "newtopic"; $page_title = " $l_postnew"; - $sql = "SELECT forum_name, forum_access FROM ".FORUMS_TABLE." WHERE forum_id = '$forum_id'"; + $sql = "SELECT forum_name, forum_access + FROM ".FORUMS_TABLE." + WHERE forum_id = '$forum_id'"; if(!$result = $db->sql_query($sql)) { error_die(SQL_QUERY, "Could not obtain forum/forum access information.", __LINE__, __FILE__); @@ -152,27 +154,33 @@ else } $notify_toggle .= "> $l_notify"; - - $template->assign_vars(array("L_ABOUTPOST" => $l_aboutpost, - "L_SUBJECT" => $l_subject, - "L_MESSAGEBODY" => $l_body, - "L_OPTIONS" => $l_options, - "L_PREVIEW" => $l_preview, - "L_SUBMIT" => $l_submit, - "L_CANCEL" => $l_cancelpost, - "MODE" => $mode, - "ABOUT_POSTING" => $about_posting, - "USERNAME_INPUT" => $username_input, - "PASSWORD_INPUT" => $password_input, - "SUBJECT_INPUT" => $subject_input, - "MESSAGE_INPUT" => $message_input, - "HTML_STATUS" => $html_status, - "HTML_TOGGLE" => $html_toggle, - "SMILE_TOGGLE" => $smile_toggle, - "SIG_TOGGLE" => $sig_toggle, - "NOTIFY_TOGGLE" => $notify_toggle, - "BBCODE_TOGGLE" => $bbcode_toggle, - "BBCODE_STATUS" => $bbcode_status)); + $hidden_form_fields = "<input type=\"hidden\" name=\"mode\" value=\"$mode\"><input type=\"hidden\" name=\"forum_id\" value=\"$forum_id\"><input type=\"hidden\" name=\"topic_id\" value=\"$topic_id\">"; + + $template->assign_vars(array( + "L_ABOUT_POST" => $l_aboutpost, + "L_SUBJECT" => $l_subject, + "L_MESSAGE_BODY" => $l_body, + "L_OPTIONS" => $l_options, + "L_PREVIEW" => $l_preview, + "L_SUBMIT" => $l_submit, + "L_CANCEL" => $l_cancelpost, + + "ABOUT_POSTING" => $about_posting, + "USERNAME_INPUT" => $username_input, + "PASSWORD_INPUT" => $password_input, + "SUBJECT_INPUT" => $subject_input, + "MESSAGE_INPUT" => $message_input, + "HTML_STATUS" => $html_status, + "HTML_TOGGLE" => $html_toggle, + "SMILE_TOGGLE" => $smile_toggle, + "SIG_TOGGLE" => $sig_toggle, + "NOTIFY_TOGGLE" => $notify_toggle, + "BBCODE_TOGGLE" => $bbcode_toggle, + "BBCODE_STATUS" => $bbcode_status, + + "S_POST_ACTION" => append_sid("posting.$phpEx"), + "S_HIDDEN_FORM_FIELDS" => $hidden_form_fields) + ); $template->pparse("body"); include('includes/page_tail.'.$phpEx); break; |
