diff --git a/post.php b/post.php index bdc4819f..cadee9ed 100644 --- a/post.php +++ b/post.php @@ -30,7 +30,7 @@ !isset($_POST['password']) ) error(ERROR_BOT); - $post = Array(); + $post = Array('board' => $_POST['board']); if(isset($_POST['thread'])) { $OP = false; @@ -57,6 +57,17 @@ if(time()-$user['appeared']commaize(MAX_FILESIZE)))); } - sql_open(); - if(!openBoard($post['board'])) error(ERROR_NOBOARD); - if(!$OP && !threadExists($post['thread'])) - error(ERROR_NONEXISTANT); - $trip = generate_tripcode($post['name']); $post['name'] = $trip[0]; $post['trip'] = (isset($trip[1])?$trip[1]:'');