// get permissions info $getperms=getpermissions($threadinfo[forumid]); updateuserforum($threadinfo['forumid'], $threadinfo['threadid']);