reply($user->id, $_POST['content'], $parent_post); notify_subscribers($thread); header('Location: thread.php?id='.$thread->id); } if (empty($_SESSION['authenticator'])) get_logged_in_user(true, '../'); doHeader('Forum'); if (!empty($_GET['post'])) { $post = getPost($_GET['post']); } $thread = getThread($_GET['thread']); $forum = getForum($thread->forum); $logged_in_user = get_logged_in_user(true); ?>

title ?>
Forum -> title ?>

Author Message

"; 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 ""; } // TODO: Finish this. function quote_text($text, $cols) { $quoteChar = "> "; $width = $cols - strlen($quoteChar); $wrapped = wordwrap($text, $width); for ($i = 0; $i < strlen($wrapped); $i++) { } return $wrapped; } ?>