diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 01:23:34 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 01:23:34 +1100 |
| commit | 5df6f85854f25581df787241773b8b39e23e8f00 (patch) | |
| tree | 066f1ef0fd730574bb3f73e70e6f1cb2c32cb2c0 /post.php | |
| parent | 567d37c62ee30ed1f94e4e73659c96cea94afcf0 (diff) | |
Don't allow users to post in locked threads'
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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'])) |
