Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // forum end / thread //
- else if(isset($_GET['t'])){
- $t = (int) $_GET['t'];
- $retb = $forum->rtntboard($t);
- if(!$forum->valid_thread($t)){
- $error = 1;
- }
- else{
- $m_group = explode(',',$forum->rtnallow($retb,"boards","group"));
- $usercansee = explode(',',$forum->rtnallow($retb,"boards","user"));
- if(in_array($allowed_groups,$m_group) || in_array($allowed_users,$usercansee)){
- $t_info = mysql_query("SELECT * FROM threads WHERE id ='".$t."'");
- //$ab = mysql_fetch_array(mysql_query("SELECT * FROM threads WHERE id ='".$t."'"));
- while($tinfo = mysql_fetch_array($t_info)){
- $is_sticky = $tinfo['is_sticky'];
- $is_locked = $tinfo['is_locked'];
- $is_hidden = $tinfo['is_hidden'];
- $is_escalated = $tinfo['is_escalated'];
- $bumps = $tinfo['num_bumps'];
- $t_op = $tinfo['poster'];
- $thread_b = $tinfo['thread_board'];
- $thread_c = $tinfo['thread_cat'];
- $title = $tinfo['title'];
- }
- if($is_hidden == 'yes' && $va_hidden == 'yes'){
- $include = 'thread';
- $switch3 = '<a href="forums.php">'.$forumtitle.' Forums</a> > <a href="forums.php?f='.$forum->rtntboard($t).'">'.$forum->rtnbodname($forum->rtntboard($t)).'</a> > '.$forum->rtntname($t);
- }
- else if($is_hidden == 'yes' && $va_hidden == 'no'){
- $error = 1;
- }
- else{
- $include = 'thread';
- $switch3 = '<a href="forums.php">'.$forumtitle.' Forums</a> > <a href="forums.php?f='.$forum->rtntboard($t).'">'.$forum->rtnbodname($forum->rtntboard($t)).'</a> > '.$forum->rtntname($t);
- }
- }
- else{
- $error = 1;
- }
- }
- }
- ?>
Add Comment
Please, Sign In to add comment