$DB_site->query("UPDATE thread SET lastpost='".time()."' WHERE threadid='$threadinfo[threadid]'");
$DB_site->query("DELETE FROM searchindex WHERE postid=$postid");