getPost($pid); if($post || $pid == -1) { switch($task) { case "new": $title = "Title"; $message = "Message"; break; case "reply": $title = "Re: " . $post->title; $message = ""; break; case "edit": $title = $post->title; $message = $post->message; break; case "quote": $title = "Re: " . $post->title; $user = $users->getUser($post->user); $message = "[quote title=" . $user->name . " wrote on " .date("r", $post->date) ."]" . $post->message . "[/quote]"; break; default: error("No mode supplied!"); break; } ?>
show(); } else { error("Message " . $pid . " not found!"); } } else { error("No message supplied!"); } ?>