// What shall we do? // if (($delete || $poll_delete || $mode == 'delete') && !$confirm) { // // Confirm deletion // $s_hidden_fields = '<input type="hidden" name="' . POST_POST_URL . '" value="' . $post_id . '" />'; $s_hidden_fields .= $delete || $mode == "delete" ? '<input type="hidden" name="mode" value="delete" />' : '<input type="hidden" name="mode" value="poll_delete" />'; $s_hidden_fields .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />'; $l_confirm = $delete || $mode == 'delete' ? $lang['Confirm_delete'] : $lang['Confirm_delete_poll']; // // Output confirmation page // include $phpbb_root_path . 'includes/page_header.' . $phpEx; $template->set_filenames(array('confirm_body' => 'confirm_body.tpl')); $preview_message = AddClicksCounter($preview_message); $template->assign_vars(array('MESSAGE_TITLE' => $lang['Information'], 'MESSAGE_TEXT' => $l_confirm, 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'S_CONFIRM_ACTION' => append_sid("posting.{$phpEx}"), 'S_HIDDEN_FIELDS' => $s_hidden_fields)); $template->pparse('confirm_body'); include $phpbb_root_path . 'includes/page_tail.' . $phpEx; } else { if ($mode == 'vote') { // // Vote in a poll // if (!empty($HTTP_POST_VARS['vote_id']) and is_array($HTTP_POST_VARS['vote_id']) and isset($HTTP_POST_VARS['vote_id'])) { $vote_option_id = intval($HTTP_POST_VARS['vote_id']); $vote_id = $HTTP_POST_VARS['vote_id']; $sql = "SELECT vd.vote_id, vd.vote_max \r\n\t\t\tFROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr\r\n\t\t\tWHERE vd.topic_id = {$topic_id} \r\n\t\t\t\tAND vr.vote_id = vd.vote_id \r\n\t\t\t\tAND vr.vote_option_id = {$vote_option_id}\r\n\t\t\tGROUP BY vd.vote_id"; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, 'Could not obtain vote data for this topic', '', __LINE__, __FILE__, $sql); }
$on_off_hidden = '<img src="' . $images['icon_hidden'] . '" alt="' . $lang['Hidden'] . '" title="' . $lang['Hidden'] . '" border="0" />'; } else { if ($poster_id == ANONYMOUS) { $on_off_hidden = ''; } else { $on_off_hidden = '<img src="' . $images['icon_offline'] . '" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" border="0" />'; } } } //Online/Offline // Start Smilies Invasion Mod if ($board_config['allow_smilies']) { $post_subject = smilies_pass($post_subject); } // End Smilies Invasion Mod $message = AddClicksCounter($message); $template->assign_block_vars('postrow', array('ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'ADR_TOPIC_BOX' => $adr_topic_box, 'RABBITOSHI_LINK' => $rabbitoshi_link, 'POSTER_NAME' => $poster_id == ANONYMOUS ? $postrow[$i]['post_username'] != '' ? $postrow[$i]['post_username'] : $lang['Guest'] : $rcs->get_colors($postrow[$i], $postrow[$i]['username']), 'PAGERANK' => $PageRank, 'POSTER_RANK' => $poster_rank, 'POSTER_GENDER' => $gender_image, 'RANK_IMAGE' => $rank_image, 'POSTER_JOINED' => $poster_joined, 'POSTER_POSTS' => $poster_posts, 'POSTER_FROM' => $poster_from, 'POSTER_AVATAR' => $poster_avatar, 'POSTER_ONLINE' => $on_off_hidden, 'POST_DATE' => $post_date, 'POST_SUBJECT' => $post_subject, 'MESSAGE' => $message, 'POST_NUMBER' => $post_number, 'POST_ID' => $post_id, 'SIGNATURE' => $user_sig, 'EDITED_MESSAGE' => $l_edited_by, 'S_NUM_ROW' => $num_row, 'S_NAV_BUTTONS' => $nav_buttons, 'I_MINITIME' => $images['icon_minitime'], 'MINI_POST_IMG' => $mini_post_img, 'PROFILE_IMG' => $profile_img, 'PROFILE' => $profile, 'MINI_PROFILE_IMG' => $mini_profile_img, 'MINI_PROFILE' => $mini_profile, 'SEARCH_IMG' => $search_img, 'SEARCH' => $search, 'PM_IMG' => $pm_img, 'PM' => $pm, 'EMAIL_IMG' => $email_img, 'EMAIL' => $email, 'WWW_IMG' => $www_img, 'WWW' => $www, 'ICQ_STATUS_IMG' => $icq_status_img, 'ICQ_IMG' => $icq_img, 'ICQ' => $icq, 'AIM_IMG' => $aim_img, 'AIM' => $aim, 'MSN_IMG' => $msn_img, 'MSN' => $msn, 'YIM_IMG' => $yim_img, 'YIM' => $yim, 'EDIT_IMG' => $edit_img, 'EDIT' => $edit, 'QUOTE_IMG' => $quote_img, 'QUOTE' => $quote, 'IP_IMG' => $ip_img, 'IP' => $ip, 'DELETE_IMG' => $delpost_img, 'DELETE' => $delpost, 'I_QP_QUOTE' => $qp_quote_img, 'L_GENDER' => $lang['Gender'], 'POINTS' => $user_points, 'DONATE_POINTS' => $donate_points, 'USER_WARNINGS' => $user_warnings, 'CARD_IMG' => $card_img, 'CARD_HIDDEN_FIELDS' => $card_hidden, 'CARD_EXTRA_SPACE' => $r_card_img || $y_card_img || $g_card_img || $b_card_img ? ' ' : '', 'L_MINI_POST_ALT' => $mini_post_alt, 'KEEP_UNREAD_IMG' => $keep_unread_img, 'L_POST' => $lang['Post'], 'U_MINI_POST' => $mini_post_url, 'U_G_CARD' => $g_card_img, 'U_Y_CARD' => $y_card_img, 'U_R_CARD' => $r_card_img, 'U_B_CARD' => $b_card_img, 'S_CARD' => append_sid("card." . $phpEx), 'U_VIEW_POSTER_PROFILE' => $userdata['user_level'] != ADMIN ? append_sid("profile.{$phpEx}?mode=viewprofile&" . POST_USERS_URL . "=" . $poster_id) : append_sid("admin/admin_users.{$phpEx}?mode=edit&" . POST_USERS_URL . "=" . $poster_id . "&sid=" . $userdata['session_id']), 'POSTER_STYLE' => $poster_style_color, 'U_POST_ID' => $postrow[$i]['post_id'])); display_post_attachments($postrow[$i]['post_id'], $postrow[$i]['post_attachment']); //-- mod : birthday ------------------------------------------------------------ $birthday->display_details($poster_birthday, $poster_zodiac, false, 'postrow'); //-- mod : flags --------------------------------------------------------------- display_flag($poster_flag, false, 'postrow'); //-- mod : post description ---------------------------------------------------- display_sub_title('postrow', $post_sub_title, $board_config['sub_title_length']); //-- mod : topics enhanced ----------------------------------------------------- if ($i != $total_posts - 1) { $template->assign_block_vars('postrow.spacing', array()); } } include $phpbb_root_path . 'includes/functions_related.' . $phpEx; get_related_topics($topic_id);