That is an invalid thread identification"; } else { $row = mysql_fetch_array($query); $title = "Viewing Thread - ".stripslashes($row["title"]); $page_title = stripslashes($row["title"]); $ttl_img = $row["ttl_img"]; $category = $row["category"]; $locked = $row["locked"]; $board_id = $row["board_id"]; $post_count = $row["pc"]; include "include/header.html"; include "include/replace.html"; if(isset($_GET["show_all"])) $post_limit = $post_count; if($review) $post_count--; $query = mysql_query("select title, view from board where board_id = $board_id") or die(mysql_error()); $row = mysql_fetch_array($query); $view = $row["view"]; $board_title = stripslashes($row["title"]); if(!$admin && $view >= 4) { echo "

You must have administrator rights to view an admin or hidden board

"; } elseif(!$usr && $view >= 3) { echo "

You must be signed in view a registered users board

"; } else { if($usr) { $query = mysql_query("select show_avatar from users where user_id = $usr") or die(mysql_error()); $show_avatar = mysql_result($query, 0); } else $show_avatar = 1; if(!$start) $start = 0; if($start >= $post_count) $start -= $post_limit; echo ""; //Display the current range of posts $first_post = $start + 1; if($start+$post_limit <= $post_count) $last_post = $start+$post_limit; else $last_post = $post_count; echo ""; if($category == 1) echo ""; elseif($category == 3 || $category == 4) echo ""; else echo ""; echo "
"; $query = mysql_query("select MAX(post_id) from post where ref_id = $ref_id") or die(mysql_error()); $max_post = mysql_result($query, 0); $query = mysql_query("select MAX(pst.post_id) as max_id, pst.ref_id, thr.title from post pst, thread thr where pst.ref_id = thr.ref_id and thr.board_id = '$board_id' group by ref_id having MAX(pst.post_id) < $max_post order by max_id desc limit 1") or die(mysql_error()); if(mysql_num_rows($query) > 0) { $row = mysql_fetch_array($query); $prev_thr = ""; } else $prev_thr = ""; echo $prev_thr; echo " ".parse_link($page_title)." - "; if($review && $post_count == 0) echo "No reviews have been made"; else echo "$first_post to $last_post"; echo " "; $query = mysql_query("select MAX(pst.post_id) as max_id, pst.ref_id, thr.title from post pst, thread thr where pst.ref_id = thr.ref_id and thr.board_id = $board_id group by ref_id having MAX(pst.post_id) > $max_post order by max_id limit 1") or die(mysql_error()); if(mysql_num_rows($query) > 0) { $row = mysql_fetch_array($query); $next_thr = ""; } else $next_thr = ""; echo $next_thr; echo "
"; if($admin) { echo "
"; if($category == 4) echo "This thread has been quarantined"; echo " "; if($review) { echo ""; } if(isset($_COOKIE["moved_post"])) echo " "; if(!$locked) echo " "; else echo " "; if($view <= 3) echo " "; echo "  "; if($category != 3) echo " "; else echo " "; if($category != 4) echo " "; else echo " "; echo "
"; } if($category == 3) { echo "

This thread has been given a Warning label because it has been deemed to contain points of view that some people may find extreme, offensive or provocative. We ask that you bear this in mind before deciding to read any further.
At $forum_name we believe that everybody has the right to state their views, so long as those views are not actively oppressive or intimidating to others, or intended to propagate hate. We believe that the best way to counter extremism or prejudice is through intelligent discussion and challenge, and we therefore welcome your contributions to this thread and, of course, to any others.
However, if you are very offended by a post on this (or any other thread), or if you feel that it has stretched the limits of acceptability too far, please feel free to click the Report button or send an email to $support outlining your concerns. We will then consider the thread again, and may take further action.

And now, read on.

"; } if($sort) $sort_link = "&sort=$sort"; else $sort_link = ""; $ops = "
Return To $board_title "; $no_pages = ceil($post_count/$post_limit); if($no_pages > 1) { $this_page = floor($start/$post_limit)+1; $last = ($no_pages-1)*$post_limit; $ops .= "$this_page of $no_pages - "; if($start != 0) $ops .= "<<First  "; $mn = max($this_page-3, 1); $mx = min($this_page+3, $no_pages); if($mn > 1) $ops .= "... "; for($i=$mn; $i<=$mx; $i++) { $page = ($i-1)*$post_limit; if($i == $this_page) $ops .= ($i).", "; else $ops .= "".($i).", "; } $ops = substr($ops, 0, strlen($ops)-2); if($mx < $no_pages) $ops .= " ..."; if($start != $last) { $next = $start+$post_limit; $ops .= "  Next> Final>>"; } } $ops .= " "; if(($usr || $anon_post) && $view != 2 && $view != 5 && ($category != 4 || $admin) && !$locked) { if($usr) $ops .= " Post To This Thread "; else $ops .= " Make Anonymous Post "; } if($view == 2) $ops .= "You cannot post to the Archive!"; elseif($view == 5) $ops .= "You cannot post to a hidden board!"; elseif($locked) $ops .= "This thread is locked"; $ops .= "
"; echo "$ops
"; if($category == 4 && !$admin) { echo "This thread has been quarantined pending admin decision on its content.
"; } elseif(!$post_count) { echo "No reviews have been made
"; } else { if($review) { if(!$admin) $del = "and pst.deleted = 0"; else $del = ""; if($sort == "title_asc") $sort_by = "rev.title"; elseif($sort == "title_desc") $sort_by = "rev.title desc"; elseif($sort == "rating_asc") $sort_by = "rev.rating"; elseif($sort == "rating_desc") $sort_by = "rev.rating desc"; else $sort_by = "pst.post_id"; $query = mysql_query("select pst.post_id, pst.user_id, pst.alias, pst.sig, pst.comment, DATE_FORMAT(pst.post_time, '%a %D %b %\'%y %l%:%i%p') as post_time, pst.parse_url, pst.use_avatar, pst.use_url, pst.use_email, pst.category, pst.deleted, rev.title, rev.rating from post pst, review rev where pst.ref_id=$ref_id and pst.post_id = rev.post_id $del order by $sort_by limit $start, $post_limit") or die(mysql_error()); } else { if(!$admin) $del = "and deleted = 0"; else $del = ""; $query = mysql_query("select post_id, user_id, alias, sig, comment, DATE_FORMAT(post_time, '%a %D %b %\'%y %l%:%i%p') as post_time, parse_url, use_avatar, use_url, use_email, category, deleted from post where ref_id=$ref_id $del order by post_id limit $start, $post_limit") or die(mysql_error()); } while ($row = mysql_fetch_array($query)) { $alias = ucfirst(stripslashes($row["alias"])); echo " "; if($row["deleted"]) echo "
"; else if($row["category"] == 3) echo ""; else if($row["category"] == 1 || $category == 1) echo ""; else echo ""; echo ""; if($row["category"] == 2 || $row["category"] == 3) { echo ""; } else { $registered = 0; if(!$row["user_id"]) { echo ""; } else { $query1 = mysql_query("select admin, email, cust_ttl, url, avatar, def_av, blog, web, DATE_FORMAT(reg_date, '%D %b %\'%y') as reg_date, no_posts, ct_lock, deleted from users where user_id = ".$row["user_id"]) or die(mysql_error()); if($user = mysql_fetch_array($query1)) { if($user["deleted"] == 0) $registered = 1; if($user["admin"]) $alias = "$alias*"; echo ""; if($user["cust_ttl"] && !$user["ct_lock"]) $rating = stripslashes($user["cust_ttl"]); else { if(($user["no_posts"]) < 10) $rating = "Forum Newbie"; elseif(($user["no_posts"]) < 20) $rating = "Trainee Daddy"; elseif(($user["no_posts"]) < 50) $rating = "Daddy Mack"; elseif(($user["no_posts"]) < 100) $rating = "Big Daddy"; elseif(($user["no_posts"]) < 200) $rating = "Forum Daddy"; elseif(($user["no_posts"]) < 400) $rating = "Daddy-licious"; elseif(($user["no_posts"]) < 800) $rating = "The Daddy"; elseif(($user["no_posts"]) < 1200) $rating = "Daddykong"; elseif(($user["no_posts"]) < 1600) $rating = "´┐Żberdaddy"; else $rating = "Grand High Daddy!"; } echo ""; if($row["use_avatar"] && $show_avatar) { echo ""; } echo ""; } else { echo ""; } } } echo "
Forum Admin Team
Taking care of business
".$row["post_time"]."
$alias
Unregistered
Wannabe
Forummer
".$row["post_time"]."
$alias
$rating
".$row["post_time"]."
".$user["no_posts"]." Posts
"; if($user["avatar"]) echo "\"".stripslashes($row["alias"])."'s"; else echo "\"".stripslashes($row["alias"])."'s"; echo "
Member Since
".$user["reg_date"]."
$alias
$alias has left the building
".$row["post_time"]."
\"Goodbye
"; if($review && $ref_id != $row["post_id"]) { $rating = $row["rating"]; $cum_rating = $row["rating"]; if(strpos("$rating", ".")) { $rating = number_format($rating, 2, ".", ""); if(substr($rating, -1) == '0') $rating = substr($rating, 0, -1); } echo ""; } echo ""; if($row["sig"]) echo ""; if($review && $ref_id != $row["post_id"]) { $query1 = mysql_query("select review_id, user_id, alias, comment, rating, DATE_FORMAT(dt, '%D %b %\'%y') as dt from review_2nd where post_id = ".$row["post_id"]) or die(mysql_error()); $no_ratings = mysql_num_rows($query1) + 1; while($row1 = mysql_fetch_array($query1)) { $rating = $row1["rating"]; $cum_rating += $rating; if(strpos("$rating", ".")) { $rating = number_format($rating, 2, ".", ""); if(substr($rating, -1) == '0') $rating = substr($rating, 0, -1); } echo ""; } } echo "
".stripslashes($row["title"])." $rating/10
"; if(!$html_tags) $comment = strip_tags($row["comment"]); else $comment = $row["comment"]; $comment = parse_quote(" ".$comment." "); if($row["parse_url"]) $comment = parse_link($comment); $comment = stripslashes(nl2br($comment)); echo "$comment

".parse_link(nl2br(stripslashes(" ".$row["sig"]." ")))."
"; if($row1["user_id"]) { echo "Second opinion by ".stripslashes($row1["alias"]).""; } else echo stripslashes($row1["alias"]); echo " on ".$row1["dt"]." $rating/10
"; if($admin) echo " "; if($admin || ($usr && $usr == $row["user_id"] && $view != 3)) { echo "  "; } echo "
"; if(!$html_tags) $comment = strip_tags($row1["comment"]); else $comment = $row1["comment"]; $comment = parse_quote(" ".$comment." "); if($row["parse_url"]) $comment = parse_link($comment); $comment = stripslashes(nl2br($comment)); echo "$comment
"; if($review && $no_ratings > 1) { $av_rating = $cum_rating/$no_ratings; if(strpos("$av_rating", ".")) { $av_rating = number_format($av_rating, 2, ".", ""); if(substr($av_rating, -1, 1) == '0') $av_rating = substr($av_rating, 0, -1); } echo ""; } echo "
"; if($registered) { echo ""; if($usr && $row["user_id"] != $usr) { echo " "; if($row["use_email"]) echo " "; } if($row["use_url"] && $user["url"]) echo " "; if($user["blog"]) echo " "; if($user["web"]) echo " "; echo " "; } echo "Average Rating $av_rating"; if(($usr || $anon_post) && $review && $ref_id != $row["post_id"]) { echo ""; } if($admin && $ref_id != $row["post_id"]) { echo " "; } if($usr) { if($admin || ($usr == $row["user_id"] && $view != 3)) { if($ref_id == $row["post_id"]) { echo "  "; } else { if($admin && $row["deleted"]) { echo "  "; } else { if($admin) { echo "   "; } else { echo " "; } } echo " "; } if($row["sig"]) echo " "; } echo " "; } if(($usr || $anon_post) && !$review && $view != 2 && $view != 5 && ($admin || !$locked)) { echo " "; } echo "

"; } if($view < 3) { echo "Bookmark With: \"PostDigg   \"PostDelicious   \"PostReddit   \"PostFacebook   \"PostStumbleupon"; } } echo " $ops

"; $anon_post = $anon_post ? "Allowed" : "Not Allowed"; $html_tags = $html_tags ? "On" : "Off"; $gmt = !$gmt ? "Greenwich Mean Time" : "British Summer Time"; if($usr) { $query = mysql_query("select visible, smiley from users where user_id = $usr") or die(mysql_error()); $row = mysql_fetch_array($query); $visible = $row["visible"] ? "Visible" : "Invisible"; $smiley = $row["smiley"] ? "On" : "Off"; } else { $smiley = "On"; $visible = "Visible"; } echo "
"; $query = mysql_query("select alias from users where admin > 0") or die(mysql_error()); $row = mysql_fetch_array($query); $ran = mt_rand(0, mysql_num_rows($query)-1); $alias = mysql_result($query, $ran); echo "
Time Zone is $gmt You are $visible
Html Tags are $html_tags Smileys are $smiley
Anonymous Posting is $anon_post$alias is The Daddy
$prev_thr   $next_thr
"; if($usr) { echo "
Rate This Thread
                    
   
"; } echo "

"; } } include "include/advert.html"; include "include/footer.html"; ?>