Guest User

Untitled

a guest
Jul 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. <?php
  2. // forum end / thread //
  3. else if(isset($_GET['t'])){
  4. $t = (int) $_GET['t'];
  5. $retb = $forum->rtntboard($t);
  6. if(!$forum->valid_thread($t)){
  7. $error = 1;
  8. }
  9. else{
  10. $m_group = explode(',',$forum->rtnallow($retb,"boards","group"));
  11. $usercansee = explode(',',$forum->rtnallow($retb,"boards","user"));
  12. if(in_array($allowed_groups,$m_group) || in_array($allowed_users,$usercansee)){
  13. $t_info = mysql_query("SELECT * FROM threads WHERE id ='".$t."'");
  14. //$ab = mysql_fetch_array(mysql_query("SELECT * FROM threads WHERE id ='".$t."'"));
  15. while($tinfo = mysql_fetch_array($t_info)){
  16. $is_sticky = $tinfo['is_sticky'];
  17. $is_locked = $tinfo['is_locked'];
  18. $is_hidden = $tinfo['is_hidden'];
  19. $is_escalated = $tinfo['is_escalated'];
  20. $bumps = $tinfo['num_bumps'];
  21. $t_op = $tinfo['poster'];
  22. $thread_b = $tinfo['thread_board'];
  23. $thread_c = $tinfo['thread_cat'];
  24. $title = $tinfo['title'];
  25. }
  26. if($is_hidden == 'yes' && $va_hidden == 'yes'){
  27. $include = 'thread';
  28. $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);
  29. }
  30. else if($is_hidden == 'yes' && $va_hidden == 'no'){
  31. $error = 1;
  32. }
  33. else{
  34. $include = 'thread';
  35. $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);
  36. }
  37. }
  38. else{
  39. $error = 1;
  40. }
  41. }
  42. }
  43. ?>
Add Comment
Please, Sign In to add comment