diff options
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>"; } |