From efd7a7418ed94e26566ea97e23be9b00048e0c7f Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Sun, 21 Mar 2021 20:18:19 -0600 Subject: Start work on search page --- search.php | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 search.php (limited to 'search.php') diff --git a/search.php b/search.php new file mode 100644 index 0000000..d90d0e6 --- /dev/null +++ b/search.php @@ -0,0 +1,61 @@ + + + + + Search - cflip.net forum + + + +

Search cflip.net forum

+
" method="get"> + Type: + + Sort By: + + With Name: + + +
+
+ ' . $thread->subject . ' by ' . $thread->author->name . '

'; + } + break; + case 'post': + $posts = get_all_posts($dbc); + + foreach ($posts as $post) { + echo '

From ' . $post->thread->subject . '

'; + $post->display_content(); + } + break; + case 'user': + break; + default: + echo '

Could not search: Invalid type!

'; + break; + } + } + ?> + + \ No newline at end of file -- cgit v1.2.3