$threadinfo=getthreadinfo($threadid);
if($threadinfo[postuserid]==$bbuserinfo[userid]) show_nopermission();