From 5df6f85854f25581df787241773b8b39e23e8f00 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Mon, 3 Jan 2011 01:23:34 +1100 Subject: Don't allow users to post in locked threads' --- post.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'post.php') 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'])) -- cgit v1.3