diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-05-24 17:08:38 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-05-24 17:08:38 -0700 |
commit | a39f9512f0efd3ec3e0a31df656e25dd3f824f6d (patch) | |
tree | 70e797cc9b1f8978f73799fc0d181e9005859530 /htdocs/new-post.php | |
parent | b41edfdbeb371f3259da1470a5533523939b42a0 (diff) |
Working on moderation approve/reject
Diffstat (limited to 'htdocs/new-post.php')
-rw-r--r-- | htdocs/new-post.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 .= "<p>Email addresses must match.</p>"; } + if ($_POST['tos'] != '1') { + $error .= "<p>You must accept the terms of service.</p>"; + } + if ($error == '') { $post = new Post(); @@ -97,6 +101,8 @@ function render_form($error="") { echo "<p><label><input type=\"checkbox\" name=\"tos\" value=\"1\" />" ." I agree to the terms of service.</label></p>"; + // TODO: Allow picture uploads. + echo "<p><input type=\"submit\" value=\"Submit\" /></p></form>"; } |