$DB_site->query("UPDATE ".TABLE_PREFIX."thread SET open = 0 WHERE dateline < ".(TIMENOW - (60 * 60 * 24 * 7))." AND forumid IN (6) ");