Don't allow users to post in locked threads'

This commit is contained in:
Savetheinternet 2011-01-03 01:23:34 +11:00
parent 567d37c62e
commit 5df6f85854
3 changed files with 21 additions and 0 deletions

View file

@ -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']))