topic_id ) || !bb_is_user_logged_in()) return; $post_id = get_post_id(); $last_page = get_page_number( $topic->topic_posts + $add ); echo ''.__($link_text).''; } function bb_quote_message() { global $bbdb, $topic; $post_id = (int)$_GET['quote']; if ($post_id) { $row = $bbdb->get_row("SELECT * FROM $bbdb->posts WHERE post_id={$post_id} AND topic_id={$topic->topic_id} AND post_status=0"); $row->post_text = preg_replace( '(

|

)', '', $row->post_text ); if ($row) echo htmlentities('
'.$row->post_text.'
', ENT_COMPAT, 'UTF-8'); } } ?>