reply($user->id, $_POST['content'], $parent_post); notify_subscribers($thread); header('Location: thread.php?id='.$thread->id); } $logged_in_user = get_logged_in_user(true, '../'); //if (empty($_SESSION['authenticator'])) // get_logged_in_user(true, '../'); doHeader('Forum'); if (!empty($_GET['post'])) { $post = getPost($_GET['post']); } $helpdesk = false; if (!empty($_GET['helpdesk'])) { $helpdesk = true; } $thread = getThread($_GET['thread']); $forum = getForum($thread->forum); show_forum_title($forum, $thread, $helpdesk); start_forum_table(array("Author", "Message"), array(150, NULL)); // TODO: Use the same sorting method that the user had in the thread view. show_posts($thread, 'modified-new',-2, false, false, $helpdesk); show_message_row($thread, $post); end_forum_table(); doFooter(); function show_message_row($thread, $post=NULL) { global $logged_in_user; echo "
"; if ($logged_in_user->has_profile) { echo "id, "\">", $logged_in_user->name, ""; } else { echo $logged_in_user->name; } echo "
Joined: ", date('M j, Y', $logged_in_user->create_time), "
Your Message"; if ($post) echo " in response to id>Message ID $post->id"; echo "
"; echo "