$posts=$DB_site->query_first("SELECT COUNT(*) as counter FROM post, thread WHERE post.userid=$bbuserinfo[userid] AND post.threadid=thread.threadid AND thread.forumid IN(23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 55, 56) AND dateline>".(time()-3600*720)); if(in_array($threadinfo[forumid],array(23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 55, 56)) and $posts[counter]<2) show_nopermission();