if (stripos($topic_headline, $ignored_phrase) !== false || stripos($topic_body, $ignored_phrase) !== false) { // We've encountered an ignored phrase, so skip the rest of this while() iteration. $table->num_rows_fetched++; continue 2; } } } // Decide what to use for the last seen marker and the age/last bump column. if ($topics_mode) { $order_time = $topic_time; } else { $order_time = $topic_last_post; } // Process the values for this row of our table. $values = array('<a href="/topic/' . $topic_id . '">' . htmlspecialchars($topic_headline) . '</a>', snippet($topic_body), replies($topic_id, $topic_replies), format_number($topic_visits), '<span class="help" title="' . format_date($order_time) . '">' . calculate_age($order_time) . '</span>'); if ($_COOKIE['spoiler_mode'] != 1) { array_splice($values, 1, 1); } $table->LastSeenMarker($last_seen, $order_time); $table->Row($values); } } $num_rows_fetched = $table->num_rows_fetched; echo $table->Output('topics'); // Navigate backward or forward ... $navigation_path = 'topics'; if ($_GET['bumps']) { $navigation_path = 'bumps'; } page_navigation($navigation_path, $current_page, $num_rows_fetched); require 'includes/footer.php';