summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-01-03 01:23:34 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-01-03 01:23:34 +1100
commit5df6f85854f25581df787241773b8b39e23e8f00 (patch)
tree066f1ef0fd730574bb3f73e70e6f1cb2c32cb2c0 /post.php
parent567d37c62ee30ed1f94e4e73659c96cea94afcf0 (diff)
Don't allow users to post in locked threads'
Diffstat (limited to 'post.php')
-rw-r--r--post.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/post.php b/post.php
index cdc51ffd..452aa054 100644
--- a/post.php
+++ b/post.php
@@ -70,6 +70,9 @@
if(!$OP && !threadExists($post['thread']))
error(ERROR_NONEXISTANT);
+ if(!$OP && threadLocked($post['thread']))
+ error(ERROR_LOCKED);
+
// Check for a file
if($OP) {
if(!isset($_FILES['file']['tmp_name']) || empty($_FILES['file']['tmp_name']))