From a39f9512f0efd3ec3e0a31df656e25dd3f824f6d Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 24 May 2011 17:08:38 -0700 Subject: Working on moderation approve/reject --- htdocs/new-post.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'htdocs/new-post.php') diff --git a/htdocs/new-post.php b/htdocs/new-post.php index 0d1556c..cef238e 100644 --- a/htdocs/new-post.php +++ b/htdocs/new-post.php @@ -39,6 +39,10 @@ if (isset($_POST['category'])) { $error .= "

Email addresses must match.

"; } + if ($_POST['tos'] != '1') { + $error .= "

You must accept the terms of service.

"; + } + if ($error == '') { $post = new Post(); @@ -97,6 +101,8 @@ function render_form($error="") { echo "

"; + // TODO: Allow picture uploads. + echo "

"; } -- cgit v1.2.3