Check if thread exists before posting.

This commit is contained in:
Savetheinternet 2010-11-30 23:12:54 +11:00
parent 79f0656ca2
commit b41a4a6ac7
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];