From d3d031d9eec485a05afdcc367ca8a8cca24e98e5 Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Fri, 9 Mar 2001 23:33:06 +0000 Subject: Moved include files git-svn-id: file:///svn/phpbb/trunk@94 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 238 +++++++++++++++++++++++++++--------------------------- 1 file changed, 119 insertions(+), 119 deletions(-) (limited to 'phpBB/posting.php') diff --git a/phpBB/posting.php b/phpBB/posting.php index 2c27fab0d4..657f025b77 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -46,125 +46,125 @@ else switch($mode) { case 'newtopic': - if(!isset($forum_id)) - { - error_die($db, GENERAL_ERROR, "Sorry, no there is no such forum"); - } - - $pagetype = "newtopic"; - $page_title = " $l_postnew"; - $sql = "SELECT forum_name, forum_access FROM forums WHERE forum_id = '$forum_id'"; - if(!$result = $db->sql_query($sql)) - { - error_die($db, QUERY_ERROR); - } - $forum_info = $db->sql_fetchrowset($result); - $forum_name = stripslashes($forum_info[0]["forum_name"]); - $forum_access = $forum_info[0]["forum_access"]; - - if($forum_access == ANONALLOWED) - { - $about_posting = "$l_anonusers $l_inthisforum $l_anonhint"; - } - if($forum_access == REGONLY) - { - $about_posting = "$l_regusers $l_inthisforum"; - } - if($forum_access == MODONLY) - { - $about_posting = "$l_modusers $l_inthisforum"; - } - - include('page_header.'.$phpEx); - if($user_logged_in) - { - $username_input = $userdata["username"]; - $password_input = ""; - } - else - { - if(!isset($username)) - { - $username = $userdata["username"]; - } - $username_input = ''; - $password_input = ''; - } - $subject_input = ''; - $message_input = ''; - if($allow_html) - { - $html_status = $l_htmlis . " " . $l_on; - $html_toggle = 'set_var(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)); - $template->pparse("output", "body"); - include('page_tail.'.$phpEx); + if(!isset($forum_id)) + { + error_die($db, GENERAL_ERROR, "Sorry, no there is no such forum"); + } + + $pagetype = "newtopic"; + $page_title = " $l_postnew"; + $sql = "SELECT forum_name, forum_access FROM forums WHERE forum_id = '$forum_id'"; + if(!$result = $db->sql_query($sql)) + { + error_die($db, QUERY_ERROR); + } + $forum_info = $db->sql_fetchrowset($result); + $forum_name = stripslashes($forum_info[0]["forum_name"]); + $forum_access = $forum_info[0]["forum_access"]; + + if($forum_access == ANONALLOWED) + { + $about_posting = "$l_anonusers $l_inthisforum $l_anonhint"; + } + if($forum_access == REGONLY) + { + $about_posting = "$l_regusers $l_inthisforum"; + } + if($forum_access == MODONLY) + { + $about_posting = "$l_modusers $l_inthisforum"; + } + + include('includes/page_header.'.$phpEx); + if($user_logged_in) + { + $username_input = $userdata["username"]; + $password_input = ""; + } + else + { + if(!isset($username)) + { + $username = $userdata["username"]; + } + $username_input = ''; + $password_input = ''; + } + $subject_input = ''; + $message_input = ''; + if($allow_html) + { + $html_status = $l_htmlis . " " . $l_on; + $html_toggle = 'set_var(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)); + $template->pparse("output", "body"); + include('includes/page_tail.'.$phpEx); break; case 'reply': -- cgit v1.2.1