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