Beispiel #1
0
// End PNphpBB2 Categories Hierarchie Mod
$template->assign_vars(array('FORUM_NAME' => $forum_name, 'L_POST_A' => $page_title, 'L_POST_SUBJECT' => $lang['Post_subject'], 'U_VIEW_FORUM' => append_sid("viewforum.{$phpEx}?" . POST_FORUM_URL . "={$forum_id}")));
// Begin PNphpBB2 Categories Hierarchie Mod
$template->assign_vars(array('NAV_CAT_DESC' => $nav_cat_desc, 'U_VIEW_CAT' => append_sid("index.{$phpEx}?c={$cat_id}"), 'TOPIC_TITLE' => $topic_title));
// End PNphpBB2 Categories Hierarchie Mod
//
// This enables the forum/topic title to be output for posting
// but not for privmsg (where it makes no sense)
//
$template->assign_block_vars('switch_not_privmsg', array());
//
// Output the data to the template
//
$template->assign_vars(array('USERNAME' => DataUtil::formatForDisplay($username), 'SUBJECT' => $subject, 'MESSAGE' => $message, 'HTML_STATUS' => $html_status, 'BBCODE_STATUS' => sprintf($bbcode_status, '<a href="' . append_sid("faq.{$phpEx}?mode=bbcode") . '" target="_phpbbcode">', '</a>'), 'SMILIES_STATUS' => $smilies_status, 'L_SUBJECT' => $lang['Subject'], 'L_MESSAGE_BODY' => $lang['Message_body'], 'L_OPTIONS' => $lang['Options'], 'L_PREVIEW' => $lang['Preview'], 'L_SPELLCHECK' => $lang['Spellcheck'], 'L_SUBMIT' => $lang['Submit'], 'L_CANCEL' => $lang['Cancel'], 'L_CONFIRM_DELETE' => $lang['Confirm_delete'], 'L_DISABLE_HTML' => $lang['Disable_HTML_post'], 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_post'], 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_post'], 'L_ATTACH_SIGNATURE' => $lang['Attach_signature'], 'L_NOTIFY_ON_REPLY' => $lang['Notify'], 'L_DELETE_POST' => $lang['Delete_post'], 'L_BBCODE_B_HELP' => $lang['bbcode_b_help'], 'L_BBCODE_I_HELP' => $lang['bbcode_i_help'], 'L_BBCODE_U_HELP' => $lang['bbcode_u_help'], 'L_BBCODE_Q_HELP' => $lang['bbcode_q_help'], 'L_BBCODE_C_HELP' => $lang['bbcode_c_help'], 'L_BBCODE_L_HELP' => $lang['bbcode_l_help'], 'L_BBCODE_O_HELP' => $lang['bbcode_o_help'], 'L_BBCODE_P_HELP' => $lang['bbcode_p_help'], 'L_BBCODE_W_HELP' => $lang['bbcode_w_help'], 'L_BBCODE_A_HELP' => $lang['bbcode_a_help'], 'L_BBCODE_S_HELP' => $lang['bbcode_s_help'], 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], 'L_EMPTY_MESSAGE' => $lang['Empty_message'], 'L_FONT_COLOR' => $lang['Font_color'], 'L_COLOR_DEFAULT' => $lang['color_default'], 'L_COLOR_DARK_RED' => $lang['color_dark_red'], 'L_COLOR_RED' => $lang['color_red'], 'L_COLOR_ORANGE' => $lang['color_orange'], 'L_COLOR_BROWN' => $lang['color_brown'], 'L_COLOR_YELLOW' => $lang['color_yellow'], 'L_COLOR_GREEN' => $lang['color_green'], 'L_COLOR_OLIVE' => $lang['color_olive'], 'L_COLOR_CYAN' => $lang['color_cyan'], 'L_COLOR_BLUE' => $lang['color_blue'], 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'], 'L_COLOR_INDIGO' => $lang['color_indigo'], 'L_COLOR_VIOLET' => $lang['color_violet'], 'L_COLOR_WHITE' => $lang['color_white'], 'L_COLOR_BLACK' => $lang['color_black'], 'L_FONT_SIZE' => $lang['Font_size'], 'L_FONT_TINY' => $lang['font_tiny'], 'L_FONT_SMALL' => $lang['font_small'], 'L_FONT_NORMAL' => $lang['font_normal'], 'L_FONT_LARGE' => $lang['font_large'], 'L_FONT_HUGE' => $lang['font_huge'], 'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'], 'L_STYLES_TIP' => $lang['Styles_tip'], 'U_VIEWTOPIC' => $mode == 'reply' ? append_sid("viewtopic.{$phpEx}?" . POST_TOPIC_URL . "={$topic_id}&amp;postorder=desc") : '', 'U_REVIEW_TOPIC' => $mode == 'reply' ? append_sid("posting.{$phpEx}?mode=topicreview&amp;" . POST_TOPIC_URL . "={$topic_id}") : '', 'S_HTML_CHECKED' => !$html_on ? 'checked="checked"' : '', 'S_BBCODE_CHECKED' => !$bbcode_on ? 'checked="checked"' : '', 'S_SMILIES_CHECKED' => !$smilies_on ? 'checked="checked"' : '', 'S_SIGNATURE_CHECKED' => $attach_sig ? 'checked="checked"' : '', 'S_NOTIFY_CHECKED' => $notify_user ? 'checked="checked"' : '', 'S_TYPE_TOGGLE' => $topic_type_toggle, 'S_TOPIC_ID' => $topic_id, 'S_POST_ACTION' => append_sid("posting.{$phpEx}"), 'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields));
// Begin PNphpBB2 Module (Message Icons)
generate_post_images('inline', PAGE_POSTING);
// End PNphpBB2 Module (Message Icons)
//
// Poll entry switch/output
//
if (($mode == 'newtopic' || $mode == 'editpost' && $post_data['edit_poll']) && $is_auth['auth_pollcreate']) {
    $template->assign_vars(array('L_ADD_A_POLL' => $lang['Add_poll'], 'L_ADD_POLL_EXPLAIN' => $lang['Add_poll_explain'], 'L_POLL_QUESTION' => $lang['Poll_question'], 'L_POLL_OPTION' => $lang['Poll_option'], 'L_ADD_OPTION' => $lang['Add_option'], 'L_UPDATE_OPTION' => $lang['Update'], 'L_DELETE_OPTION' => $lang['Delete'], 'L_POLL_LENGTH' => $lang['Poll_for'], 'L_DAYS' => $lang['Days'], 'L_POLL_LENGTH_EXPLAIN' => $lang['Poll_for_explain'], 'L_POLL_DELETE' => $lang['Delete_poll'], 'POLL_TITLE' => $poll_title, 'POLL_LENGTH' => $poll_length));
    if ($mode == 'editpost' && $post_data['edit_poll'] && $post_data['has_poll']) {
        $template->assign_block_vars('switch_poll_delete_toggle', array());
    }
    if (!empty($poll_options)) {
        while (list($option_id, $option_text) = each($poll_options)) {
            $template->assign_block_vars('poll_option_rows', array('POLL_OPTION' => str_replace('"', '&quot;', $option_text), 'S_POLL_OPTION_NUM' => $option_id));
        }
    }
    $template->assign_var_from_handle('POLLBOX', 'pollbody');
Beispiel #2
0
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
// ZphpBB2 =>
if (isset($_POST['qmode']) || isset($_GET['qmode'])) {
    $mode = isset($_POST['qmode']) ? $_POST['qmode'] : $_GET['qmode'];
    if ($mode == 'smilies' || $mode == 'postimages') {
        include $phpbb_root_path . 'extension.inc';
        include $phpbb_root_path . 'common.' . $phpEx;
        $starttime = 0;
        include $phpbb_root_path . 'includes/functions_post.' . $phpEx;
        if ($mode == 'smilies') {
            generate_smilies('window', PAGE_POSTING);
        } else {
            generate_post_images('window', PAGE_POSTING);
        }
        exit;
        // also for ZphpBB2
    } else {
        return;
    }
}
// <= ZphpBB2
$template->set_filenames(array('quick_reply_output' => 'quick_reply.tpl'));
if ($board_config['pnphpbb2_quickreply'] == 2) {
    $template->assign_block_vars('adv_quick_reply', array());
}
$post_to_quote = $total_posts - 1;
if (!empty($_POST['postorder']) or !empty($_GET['postorder'])) {
    if ((!empty($_POST['postorder']) ? htmlspecialchars($_POST['postorder']) : htmlspecialchars($_GET['postorder'])) == 'desc') {