$threadinfo = verify_id('thread', $threadid, 1, 1);
$thread = verify_id('thread', $threadid, 1, 1); $threadinfo =& $thread;