From f5e972c030675f46cda543e13da1b787457e070b Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:21:12 -0600 Subject: Add the rest of the changes --- create_thread.php | 156 +++++++++++++++++++++++++++--------------------------- 1 file changed, 78 insertions(+), 78 deletions(-) mode change 100644 => 100755 create_thread.php (limited to 'create_thread.php') diff --git a/create_thread.php b/create_thread.php old mode 100644 new mode 100755 index 3d1c530..d01eb26 --- a/create_thread.php +++ b/create_thread.php @@ -1,78 +1,78 @@ - - - - - Create a thread - cflip.net forum - - - - -

Create a new thread

-is_signed_in()) { - trigger_error('You must be signed in to create a thread.'); - exit(); -} -?> -
" method="post"> -
-
-
- '; - - foreach ($categories as $category) { - echo ''; - } - - echo '
'; - } - ?> -
-
- -
-'; - foreach ($errors as $err) { - $errstr .= '
  • ' . $err . '
  • '; - } - $errstr .= ''; - trigger_error($errstr); - } else { - $thread_id = Thread::create($thread_subject, $thread_cat); - Post::create($post_content, $thread_id, $thread_cat); - - header("Location: viewthread.php?id=" . $thread_id); - } -} -?> - - + + + + + Create a thread - cflip.net forum + + + + +

    Create a new thread

    +is_signed_in()) { + trigger_error('You must be signed in to create a thread.'); + exit(); +} +?> +
    " method="post"> +
    +
    +
    + '; + + foreach ($categories as $category) { + echo ''; + } + + echo '
    '; + } + ?> +
    +
    + +
    +'; + foreach ($errors as $err) { + $errstr .= '
  • ' . $err . '
  • '; + } + $errstr .= ''; + trigger_error($errstr); + } else { + $thread_id = Thread::create($thread_subject, $thread_cat); + Post::create($post_content, $thread_id, $thread_cat); + + header("Location: viewthread.php?id=" . $thread_id); + } +} +?> + + -- cgit v1.2.3