query('DELETE FROM ``antispam`` WHERE `expires` <UNIX_TIMESTAMP()')orerror(db_error());
query('DELETE FROM ``antispam`` WHERE `expires` <UNIX_TIMESTAMP()')orerror(db_error());
}
if ($thread)
if ($thread)
$query = prepare('UPDATE ``antispam`` SET `expires` = UNIX_TIMESTAMP() + :expires WHERE `board` = :board AND `thread` = :thread AND `expires` IS NULL');
$query = prepare('UPDATE ``antispam`` SET `expires` = UNIX_TIMESTAMP() + :expires WHERE `board` = :board AND `thread` = :thread AND `expires` IS NULL');