Check if thread exists before posting.

This commit is contained in:
Savetheinternet 2010-11-30 23:12:54 +11:00 committed by Paul Merrill
parent e66c1e7f8d
commit a3b604243b
3 changed files with 20 additions and 1 deletions

View file

@ -83,6 +83,8 @@
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];