} if ($search_msg = search_get_first_result_msg()) { html_draw_top('frame_set_html', 'pm_popup_disabled'); $frameset = new html_frameset_cols('discussion', "{$left_frame_width},*"); $frameset->html_frame("search.php?webtag={$webtag}&page=1", html_get_frame_name('left')); $frameset->html_frame("messages.php?webtag={$webtag}&msg={$search_msg}&highlight=yes{$edit_success}{$delete_success}", html_get_frame_name('right')); $frameset->output_html(); html_draw_bottom(true); } else { html_draw_top('frame_set_html', 'pm_popup_disabled'); $frameset = new html_frameset_cols('discussion', "{$left_frame_width},*"); $frameset->html_frame("search.php?webtag={$webtag}&page=1", html_get_frame_name('left')); $frameset->html_frame("search.php?webtag={$webtag}", html_get_frame_name('right')); $frameset->output_html(); html_draw_bottom(true); } } else { if ($msg = messages_get_most_recent($uid)) { html_draw_top('frame_set_html', 'pm_popup_disabled'); $frameset = new html_frameset_cols('discussion', "{$left_frame_width},*"); $frameset->html_frame("thread_list.php?webtag={$webtag}&msg={$msg}", html_get_frame_name('left')); $frameset->html_frame("messages.php?webtag={$webtag}&msg={$msg}{$edit_success}{$delete_success}", html_get_frame_name('right')); $frameset->output_html(); html_draw_bottom(true); } else { html_draw_error(gettext("No Messages")); } } } } }
require_once BH_INCLUDE_PATH . 'poll.inc.php'; require_once BH_INCLUDE_PATH . 'post.inc.php'; require_once BH_INCLUDE_PATH . 'search.inc.php'; require_once BH_INCLUDE_PATH . 'session.inc.php'; require_once BH_INCLUDE_PATH . 'thread.inc.php'; // End Required includes // Message pane caching cache_check_messages(); $last_pid = null; if (isset($_GET['msg']) && validate_msg($_GET['msg'])) { $msg = $_GET['msg']; } else { if (isset($_POST['msg']) && validate_msg($_POST['msg'])) { $msg = $_POST['msg']; } else { if (($msg = messages_get_most_recent($_SESSION['UID'])) === false) { html_draw_error(gettext("Invalid Message ID or no Message ID specified.")); } } } list($tid, $pid) = explode('.', $msg); // Poll stuff if (isset($_POST['poll_submit'])) { if (isset($_POST['poll_vote']) && is_array($_POST['poll_vote'])) { $poll_votes_array = $_POST['poll_vote']; if (poll_check_tabular_votes($tid, $poll_votes_array)) { poll_vote($tid, $poll_votes_array); header_redirect("messages.php?webtag={$webtag}&msg={$msg}"); } else { html_draw_error(gettext("You must pick and answer for every question")); }