Anyone who happens by, and has some news or some thoughts they'd like to share, can submit new content for consideration. After someone has submitted something, their story is added to a queue. All registered users can access this list of pending stories, that is, stories that have been submitted, but do not yet appear on the public front page. Those registered users can vote whether they think the story should be posted or not. When enough people vote to post a story, the story is pushed over the threshold and up it goes on the public page. On the other hand, when too many people voted to drop a story, the story will get trashed.

Basically, this means that you, the community, are truly the editors of this site as you have the final decision on the content of this site. It's you judging the overall quality of a story. But remember, vote on whether the story is interesting, not on whether you agree with it or not. If the story goes up, you can disagree all you want, but don't vote `no' because you think the ideas expressed are wrong. Instead, vote `no' when you think the story is plain boring.

"; $content .= "\n"; $content .= " \n"; while ($submission = db_fetch_object($result)) { if (user_getHistory($user->history, "s$submission->id")) $content .= " \n"; else $content .= " \n"; } $content .= "
SubjectCategoryDateAuthorScore
id\">". stripslashes($submission->subject) ."$submission->category". date("Y-m-d", $submission->timestamp) ."
". date("H:m:s", $submission->timestamp) ."
". format_username($submission->userid) ."". submission_score($submission->id) ."
id\">". stripslashes($submission->subject) ."$submission->category". date("Y-m-d", $submission->timestamp) ."
". date("H:m:s", $submission->timestamp) ."
". format_username($submission->userid) ."id\">vote
\n"; $theme->header(); $theme->box("Submission queue - Pending stories", $content); $theme->footer(); } function submission_displayItem($id) { global $PHP_SELF, $theme, $user, $submission_votes; if ($vote = user_getHistory($user->history, "s$id")) { header("Location: discussion.php?id=$id"); } else { $result = db_query("SELECT s.*, u.userid FROM stories s LEFT JOIN users u ON s.author = u.id WHERE s.id = $id"); $submission = db_fetch_object($result); $theme->header(); $theme->article($submission, "[ hlcolor2\">back ]"); print "
\n"; print "

\n"; print " Vote:
\n"; print " \n"; print "

\n"; print "

\n"; print " Comment:
\n"; print " \n"; print "

\n"; print "id\">\n"; print "\n"; print "
\n"; } $theme->footer(); } ### Security check: if (strstr($id, " ")) { watchdog("error", "submission: attempt to provide malicious input through URI"); exit(); } if ($user->id) { switch($op) { case "view": submission_displayItem($id); break; case "Vote"; submission_vote($id, $vote, $comment); submission_displayItem($id); break; default: submission_displayMain(); break; } } ?>