Got some news or some thoughts you would like to share? Fill out this form and they will automatically get whisked away to our submission queue where our moderators will frown at it, poke at it and hopefully post it. Every registered user is automatically a moderator and can vote whether or not your sumbission should be carried to the front page for discussion.

\n"; $output .= "

Note that we do not revamp or extend your submission so it is up to you to make sure your submission is well-written: if you don't care enough to be clear and complete, your submission is likely to be moderated down by our army of moderators. Try to be complete, aim for clarity, organize and structure your text, and try to carry out your statements with examples. It is also encouraged to extend your submission with arguments that flow from your unique intellectual capability and experience: offer some insight or explanation as to why you think your submission is interesting. Make sure your submission has some meat on it!

\n"; $output .= "

However, if you have bugs to report, complaints, personal questions or anything besides a public submission, we would prefer you to mail us instead, or your message is likely to get lost.


\n"; ### Submission form: $output .= "
\n"; $output .= "

\n Your name:
\n"; $output .= format_username($user->userid); $output .= "

\n"; $output .= "

\n"; $output .= " Subject:
\n"; $output .= "
\n"; $output .= " Bad subjects are 'Check this out!' or 'An article'. Be descriptive, clear and simple!\n"; $output .= "

\n"; $output .= "

Category:
\n"; $output .= " \n"; $output .= "

\n"; $output .= "

\n"; $output .= " Abstract:
\n"; $output .= "
\n"; $output .= " Allowed HTML tags: ". htmlspecialchars($allowed_html) .".\n"; $output .= "

\n"; $output .= "

\n"; $output .= " Extended story:
\n"; $output .= "
\n"; $output .= " Allowed HTML tags: ". htmlspecialchars($allowed_html) .".\n"; $output .= "

\n"; $output .= "

\n"; $output .= " You must preview at least once before you can submit:
\n"; $output .= " \n"; $output .= "

\n"; $output .= "
\n"; $theme->header(); $theme->box("Submit a story", $output); $theme->footer(); } function submit_preview($subject, $abstract, $article, $category) { global $categories, $allowed_html, $theme, $user; include "includes/story.inc"; $output .= "
\n"; $output .= "

\n"; $output .= " Your name:
\n"; $output .= format_username($user->userid); $output .= "

\n"; $output .= "

\n"; $output .= " Subject:
\n"; $output .= "
\n"; $output .= " Bad subjects are 'Check this out!' or 'An article'. Be descriptive, clear and simple!\n"; $output .= "

\n"; $output .= "

Category:
\n"; $output .= "
\n"; $output .= " Allowed HTML tags: ". htmlspecialchars($allowed_html) .".\n"; $output .= "

\n"; if (empty($subject)) { $output .= "

\n"; $output .= " Warning: you did not supply a subject.\n"; $outout .= "

\n"; $output .= "

\n"; $output .= " \n"; $output .= "

\n"; } else if (empty($abstract)) { $output .= "

\n"; $output .= " Warning: you did not supply an abstract.\n"; $outout .= "

\n"; $output .= "

\n"; $output .= " \n"; $output .= "

\n"; } else { $output .= "

\n"; $output .= " \n"; $output .= " \n"; $output .= "

\n"; } $output .= "
\n"; $theme->header(); $theme->article(new Story($user->userid, $subject, $abstract, $article, $category, time())); $theme->box("Submit a story", $output); $theme->footer(); } function submit_submit($subject, $abstract, $article, $category) { global $user, $theme; ### Add log entry: watchdog("story", "added new story with subject `$subject'"); ### Add submission to SQL table: db_query("INSERT INTO stories (author, subject, abstract, article, category, timestamp) VALUES ('$user->id', '". check_input($subject) ."', '". check_input($abstract) ."', '". check_input($article) ."', '". check_input($category) ."', '". time() ."')"); ### Display confirmation message: $theme->header(); $theme->box("Thank you for your submission.", "Thank you for your submission. The submission moderators in our basement will frown at it, poke at it, and vote for it!"); $theme->footer(); } include "includes/theme.inc"; switch($op) { case "Preview submission": submit_preview($subject, $abstract, $article, $category); break; case "Submit submission": submit_submit($subject, $abstract, $article, $category); break; default: submit_enter(); break; } ?>