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']); } $helpdesk = false; if (!empty($_GET['helpdesk'])) { $helpdesk = true; } $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 ""; } function quote_text($text, $cols) { $quoteChar = ">"; $lines = explode("\n", $text); $lineChars = strlen($quoteChar); $final = $quoteChar; for ($i = 0; $i < count($lines); $i++) { $words = explode(" ", $lines[$i]); for ($j = 0; $j < count($words); $j++) { $wordLen = strlen($words[$j]); if (($lineChars + $wordLen) >= $cols) { $final = $final . "\n" . $quoteChar; $lineChars = strlen($quoteChar); } $final = $final . " " . $words[$j]; $lineChars += $wordLen + 1; } $final = $final . "\n" . $quoteChar; $lineChars = strlen($quoteChar); } return $final; } ?>