forked from leftypol/leftypol
Don't allow users to post in locked threads'
This commit is contained in:
parent
567d37c62e
commit
5df6f85854
3 changed files with 21 additions and 0 deletions
3
post.php
3
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']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue