0) { $sTopicUmfrage=$poll_announcer; # $start=0; # Falsch... darf net.. muß in overview.php oder board.php passieren! # sonst könnte man nicht über mehrere seiten darauf antworten! } if( $nolimit=="on" ) { $posts_per_page=10000; $start=0; } $posts = GetPosts($id,$start); $board_info = GetBoardInfo($thread_info[boardparentid]); $board_info = mysql_fetch_array($board_info); $board_info_deactivated = $board_info[deactivated]; $showrating = $board_info[showrating]; # Benötigt wird $board_info bzw... viel wichtiger... $BoardID require "_password_part1.php"; # muss direkt ganz vorne ( vor header aber nach board_info ) kommen ... wegen cookies... etc $hstring = "$master_board_name
  $board_info[category]
"; $hstring .= "    $board_info[boardname]
"; $hstring .= "      ".RemoveCrop($thread_info[threadname]); $htitle = " - Thread ".RemoveCrop($thread_info[threadname]); require "_header.inc"; require "getimagesize.php"; # if( ! $me_userinfo ) # { # if( ( $BoardID == 20 || $BoardID == 32 ) && $gastsperre == 1 ) # apb_error("Zur Zeit sind unsere Gastzugriffe für das Board auf $max_allowed_guests Gäste limitiert.",FALSE); # } define("USER_PIC_MAX_WIDTH", $userpicwidth) ; define("USER_PIC_MAX_HEIGHT", $userpicheight); $password_part2_filename = "thread.php"; require "_password_part2.php"; # muss direkt vor der board_enabled abfrage kommen ( vor allem nach _header etc .) if ($board_enabled == "1") # nur wenn durch passwort abfrage gekommen, oder ungeschütztes board... { mysql_db_query( $mysqldb, "UPDATE apb".$n."_threads set views = views + 1 where threadid = $id"); if ( $showrating == "1" && $me_dbshowthreadrating == "1") // Ratings zulassen { if ($thread_info[votecount] >= $min_votes_for_show_rate) { $sUserThreadVote=""; $usertv=mysql_query("select vote from apb".$n."_rate where target=\"$thread_info[threadid]\" and userid=\"$me_userid\" and type=\"threadrate\""); if(($usertv = mysql_fetch_array($usertv))) $sUserThreadVote="(Deine Bewertung: $usertv[vote] Punkte)"; $vote_string_id = (int) round($thread_info[voteaverage]); $sStimme="Stimme"; if ( $thread_info[votecount] != 1 ) $sStimme="Stimmen"; $vote_string = ($thread_vote_pics[$vote_string_id] != "" ? "
Bewertung: \"\" ($thread_info[votecount] $sStimme)$sUserThreadVote [ info ]" : ""); } else $vote_string = ""; } else $vote_string=""; $nextThreadID=-1; $lastThreadID=-1; if (isset($BoardID) && $BoardID != "") { $result = mysql_query("SELECT threadid,replies FROM apb".$n."_threads where timelastreply < $thread_info[timelastreply] and boardparentid = $BoardID order by timelastreply desc limit 0,1;"); $lastThreadID = mysql_fetch_array($result); $pages = ceil(($lastThreadID[replies]+2) / $posts_per_page); $lastThread_start_string = ( $pages > 1) ? "&start=".((($pages - 1) * $posts_per_page) + 1) : ""; $result = mysql_query("SELECT threadid,replies FROM apb".$n."_threads where timelastreply > $thread_info[timelastreply] and boardparentid = $BoardID order by timelastreply asc limit 0,1;"); $nextThreadID = mysql_fetch_array($result); $pages = ceil(($nextThreadID[replies]+2) / $posts_per_page); $nextThread_start_string = ( $pages > 1) ? "&start=".((($pages - 1) * $posts_per_page) + 1) : ""; } if($me_showlastposting == "0" ) $lastposting = ""; else if($me_showlastposting == "2" ) $lastposting = "#TOP"; else $lastposting = "#LASTPOSTING"; # 13.01.2002 - Alles für apb_useronline_string - $pages = ceil(($thread_info[replies]+1) / $posts_per_page); if ($pages > 1) $pages_string .= ($pages - 1) * $posts_per_page + 1; else $pages_string = -1; $apb_useronline_string = "threadid=$thread_info[threadid]&boardid=$board_info[boardid]&page_string=$pages_string [##thread##]$uo_thread [##replacement1##]\">" . htmlspecialchars($thread_info[threadname]) . " in ".htmlspecialchars($board_info[boardname]).""; # - Code End - $pages = ceil(($thread_info[replies]+1) / $posts_per_page); # $pages = ceil((200+1) / $posts_per_page); # $start = 200; $thispage = ceil(($start+1) / $posts_per_page); if ($pages > 1) { if ( $pages <= 5 ) { $pages_string = "".$seiten." [ "; for ($l=1 ; $l <= $pages; $l++) { if ($l == $pages) { $ostr = " "; } else { $ostr = " | "; } if ($l != $thispage) { $pages_string .= "$l$ostr"; } else { $pages_string.= "-$l-$ostr"; } } $pages_string .= "]"; } else { if($me_showlastposting == "0" ) $lastposting_l = ""; else if ($me_showlastposting == "2" ) $lastposting_l = "#TOP"; else $lastposting_l = "#LASTPOSTING"; $pages_string = "".$seiten." [ "; $ostr = " | "; if ( $thispage > 1 ) { $pages_string .= "<<$ostr"; $pages_string .= "<$ostr"; } if ( $thispage == 1 ) { $pages_string.= "-$thispage-$ostr"; $pages_string .= "".($thispage +1 )."$ostr"; $pages_string .= "".($thispage + 2)."$ostr"; } else if ( $thispage == $pages ) { $pages_string .= "".($thispage - 2)."$ostr"; $pages_string .= "".($thispage - 1)."$ostr"; if( $thispage = $pages ) $ostr = " "; $pages_string.= "-$thispage-$ostr"; } else { $pages_string .= "".($thispage - 1)."$ostr"; $pages_string.= "-$thispage-$ostr"; $pages_string .= "".($thispage + 1)."$ostr"; else $pages_string .= "&BoardID=$BoardID\">".($thispage + 1)."$ostr"; } if( $thispage < $pages ) { $ostr = " | "; $pages_string .= ">$ostr"; else $pages_string .= "&BoardID=$BoardID\">>$ostr"; $pages_string .= ">> "; } $pages_string .= "]"; } } else $pages_string = " "; ?>

"; } else { $topicicon = ""; } $hotthread=""; if( $thread_info[ontop] == "1") $hotthread="TOP-"; if( $thread_info[pollid]>0) $mom_thema_temp=$hotthread.$sTopicUmfrage; else $mom_thema_temp=$hotthread.$mom_thema; print_mb ( "

".$mom_thema_temp." $topicicon $topic", $font , "4"); print_mb ( "$vote_string", $font , "2"); ?>

0) print_mb ("[ vorheriger Thread ]" , $font , "1"); if( $nextThreadID[threadid] > 0) print_mb ("[ nächster Thread ]" , $font , "1"); print_mb (" [ Bottom ]" , $font , "1"); ?> [ $strThreadIgnore ] [ $strThreadMarked ] - [ ".$auf_thread_antworten." ]" , $font , "1"); } ?>
GetPosts -> *1 $post_count--; if( $post_count < 0) $post_count=0; $udat = mysql_query("SELECT username, status, signatur FROM apb".$n."_user_table WHERE userid='$UserInformation[uid]'"); $userdat = mysql_fetch_array($udat); $mod = explode (", ", $board_info[boardmods]); if ($userdat[status]=="MOD" AND apb_in_array($userdat[username], $mod)) { $modlog=TRUE; } else { $modlog=FALSE; } // if( $post_count == $thread_info[replies] && $post_count < 2 ) // echo (''); echo "
"; print_mb ($pages_string,$font,"1"); echo "
"; while ($thismessage = mysql_fetch_array($posts)) { $user_info = GetUserInfo($thismessage[authorname]); $user_info = mysql_fetch_array($user_info); if ($thiscolor == $tableA) { $thiscolor = $tableB; } else { $thiscolor = $tableA; } # User ignorieren? $ignoreuserpost = 0; if( strlen ( $me_ignoreuserpostlist ) > 0 && strstr( $me_ignoreuserpostlist, '#'.$user_info[userid].'#' ) ) $ignoreuserpost = 1; $offtopicfilter=0; if($me_noofftopic==1) if( $thismessage[offtopic] != "0" && $thismessage[offtopic] != "4") $offtopicfilter = 1; # überstimmen... :) if( $threadshowignore=="on") $offtopicfilter=0; if( $offtopicfilter == 0 ) { echo ""; # echo ""; echo "
"; // if( $post_count == $thread_info[replies] && $post_count >= 2 ) // echo (''); print_mb ( "" . HackDate($thismessage[posttime])."
", $font , "1"); # Hmmm... uhrzeit erstmal nicht abtrennen... sonst den block wieder rein ( und oben das
raus! :) # echo("
"); # echo(" "); # echo "
"; if( $ignoreuserpost == 0 ) { if ($icq_thread == "1") { if ($user_info[usericq]=="" || $user_info[usericq]==" " || $user_info[usericq]=="[N/A]") { echo ""; } else { echo "\"\" "; } } else { echo ""; } print_mb( GetUsername($thismessage[authorname],$BoardID,"1")."
", $font , "2"); if( $anonymous_allowed == 1 && strtoupper($thismessage[authorname]) == strtoupper($anonymous_name)) print_mb( "IP: ". substr ($thismessage[post_ip],0,7)."***
", $font , "1"); print_userstatus( $font, $fontcolorsec, $pic_thread, $user_info, $me_showavatar, $me_dbshowuserrating,$me_shownopointsrangs); } echo "

"; # achtung poll initialisiert $sUmfragezusatz! include "_poll.php"; $message=$thismessage[message]; $message = BuildMessage( $message, $sUmfrageZusatz, $user_info[signatur],$thismessage[disable_smilies], $me_showsignatures,$me_nosmilies,$me_userid,$thismessage[postid],$thread_info[flags] ); if( $ignoreuserpost== 0 ) print_mb ( $message . "
", $font, "2" ); else print_mb ( "Der Author dieses Beitrags ist auf Deiner Liste der zu ignorierenden Personen!
", $font, "1" ); echo "
"; echo ""; print_mb ( "Registriert seit: ".HackDate2($user_info[regdate]), $font , "1"); echo ""; # echo " "; echo(""); echo ''; # Tabelle #1 ( internal split-table! ) echo '
'; # display for "normal" user... if( $thismessage[offtopic] != 0 && $thismessage[offtopic] != 4 ) { echo "Beitrag ist zu ignorieren!  "; } if( $thismessage[editedcount] > 0 ) { if( $edit_counter_on == 1 ) echo "$thismessage[editedcount]x editiert - zuletzt am ".HackDateX($thismessage[editeddate]); else echo "zuletzt editiert am ".HackDateX($thismessage[editeddate]); if ( $thismessage[editeduser] != $thismessage[authorname] ) echo " von ".GetUsername($thismessage[editeduser],$BoardID,"1"); echo ""; } else echo " "; echo ''; if ($adminlog || $modlog) { $seditadmin=""; if( $thismessage[authorname] != $me_username ) $seditadmin="&adwarning=1"; echo "
"; echo "[ $quote_answer ] "; echo "[ editieren ] "; echo "[ link ] "; echo "[ IP ] "; echo "[ delete ] "; if( $thismessage[offtopic] == 0 || $thismessage[offtopic] == 4 ) echo "[ unerwünscht ] "; else echo "[ erwünscht ] "; echo "
"; } else if( $thread_moderator == 1 ) # Sonderstatus für diejenigen die die Thread eröffnet haben... ( kleiner mod ) { echo "
"; echo "[ $quote_answer ] "; echo "[ editieren ] "; echo "[ link ] "; # echo "[ delete ] "; if( $thismessage[offtopic] == 0 ) echo "[ unerwünscht ] "; if( $thismessage[offtopic] == 1 ) echo "[ erwünscht ] "; echo "
"; } else { # das if/else ist neu... d.h. bei geschlossenen Thread keine Anzeige - Oliver if ($guestaccount == 1 ) { echo "
"; echo " [ link ] "; echo "
"; } else if ($thread_info[flags]=="0" ) { if ( $board_info_deactivated == 0 ) { echo "
"; echo "[ $quote_answer ] "; echo "[ editieren ]"; echo "[ link ] "; echo "
"; } else { echo "
schreibgeschütztes Forum"; echo " [ link ] "; echo "
"; } } else { echo "
$thread_geschlossen"; echo " [ link ] "; echo "
"; } } echo "
"; # Tabelle #1 ( internal split-table! ) close ! ;) echo "
"; $lastpostspam=0; } # if( $offtopicfilter == 0 ) else { # SPAMFILTER START.... # echo ( "hallo" ); if( $lastpostspam != 1 ) { echo ""; # echo ""; echo "
"; # print_mb ( "" . HackDate($thismessage[posttime])."
", $font , "1"); print_mb ( "
", $font , "1"); # echo "
"; echo ''; # Tabelle #1 ( internal split-table! ) echo '
'; # if( $user_info[ echo "
HIER in dieser Zeile befinden sich ignorierte Beiträge! [ diese ansehen ]  
"; /* if( $thismessage[editedcount] > 0 ) { echo "$thismessage[editedcount]x editiert - zuletzt am ".HackDateX($thismessage[editeddate]); if ( $thismessage[editeduser] != $thismessage[authorname] ) echo " von ".GetUsername($thismessage[editeduser],$BoardID,"1"); echo ""; } else echo " "; */ echo '
'; /* if ($adminlog || $modlog) { echo "
"; echo "[ $quote_answer ] "; echo "[ editieren ] "; echo "[ link ] "; echo "[ IP ] "; echo "[ delete ] "; echo "[ ignorieren ] "; echo "
"; } else { # das if/else ist neu... d.h. bei geschlossenen Thread keine Anzeige - Oliver if ($thread_info[flags]=="0" ) { if ( $board_info_deactivated == 0 ) { echo "
"; echo "[ $quote_answer ] "; echo "[ editieren ]"; echo "[ link ] "; echo "
"; } else { echo "
schreibgeschütztes Forum"; echo " [ link ] "; echo "
"; } } else { echo "
$thread_geschlossen"; echo " [ link ] "; echo "
"; } } */ echo "
"; # Tabelle #1 ( internal split-table! ) close ! ;) echo "
"; $lastpostspam=1; } # SPAMFILTER START.... #ende } $post_count++; } echo (''); echo "
"; print_mb ($pages_string,$font,"1"); echo "
"; ?>
0) print_mb ("[ vorheriger Thread ]" , $font , "1"); if( $nextThreadID[threadid] > 0) print_mb ("[ nächster Thread ]" , $font , "1"); print_mb (" [ Top ]" , $font , "1"); ?> [ $strThreadIgnore ] [ $strThreadMarked ] - [ ".$auf_thread_antworten." ]" , $font , "1"); } ?>
"; echo "[ ".$zurueck." ]"; if ($thread_info[flags]=="1") { echo " $topic_closed [ Übersicht ]"; } else { if( $board_info_deactivated == 0 && $guestaccount == 0 ) echo " [ Übersicht ] [ ".$auf_thread_antworten." ]"; } if ($adminlog || $modlog) { echo "


Moderator-Area:"; if ($thread_info[ontop]=="1") { echo " [ ".$txt_thread_not_on_top." ]"; } else { echo " [ ".$txt_thread_on_top." ]"; } if ($thread_info[flags]=="1") { echo " [ ".$open_thread." ]"; } else { echo " [ ".$close_thread." ]"; } echo " [ ".$delete_thread." ]"; echo " [ ".$move_thread." ]"; } echo ""; ?>
"; # combobox-style # if( $thread_vote_mode == 1 ) # echo ""; echo ""; # combobox-style # if( $thread_vote_mode == 1 ) # echo ""; echo "
"; print_mb ( "

".$mom_thema_temp." $topicicon $topic", $font , "2"); print_mb ( "$vote_string", $font , "2"); if( $thread_vote_mode == 1 ) { /* # combobox-style echo " "; */ $txt_newvote=""; $usertv=mysql_query("select vote from apb".$n."_rate where target=\"$thread_info[threadid]\" and userid=\"$me_userid\" and type=\"threadrate\""); if(($usertv = mysql_fetch_array($usertv))) { $txt_newvote="neue "; switch( $usertv[vote] ) { case 0: $todo1=126; break; case 1: $todo1=125; break; case 2: $todo1=123; break; case 3: $todo1=119; break; case 4: $todo1=111; break; case 5: $todo1=95; break; default: $todo1=127; break; } } else $todo1=63; // alle an, ausser neutral echo "
"; print_mb ("Deine ".$txt_newvote."Bewertung? ", $font , "2"); if(($todo1 & 1) == 1 ) echo "\"0\""; if(($todo1 & 2) == 2 ) echo "\"1\""; if(($todo1 & 4) == 4 ) echo "\"2\""; if(($todo1 & 8) == 8 ) echo "\"3\""; if(($todo1 & 16) == 16 ) echo "\"4\""; if(($todo1 & 32) == 32 ) echo "\"5\""; if(($todo1 & 64) == 64 ) echo "\"neutral\""; echo ""; } else { echo "
"; print_mb ("Deine Bewertung? ", $font , "2"); $todo1=0; $todo2=0; $usertv=mysql_query("select vote from apb".$n."_rate where target=\"$thread_info[threadid]\" and userid=\"$me_userid\" and type=\"threadrate\""); if(($usertv = mysql_fetch_array($usertv))) { if( $usertv[vote] == 0 ) { $todo1=6; $todo2=1; } else if( $usertv[vote] == 5 ) { $todo1=3; $todo2=4; } else { $todo1=7; # nur für alte threads $todo2=8; # Punkte } } else { $todo1=5; $todo2=2; } if(($todo1 & 1) == 1 ) echo "\"Flopp\""; if(($todo1 & 2) == 2 ) echo "\"Neutrale"; if(($todo1 & 4) == 4 ) echo "\"Top\""; print_mb ("  bisher ", $font , "2"); if(($todo2 & 1) == 1 ) echo "\"Flopp\""; if(($todo2 & 2) == 2 ) echo "\"Neutrale"; if(($todo2 & 4) == 4 ) echo "\"Top\""; if(($todo2 & 8) == 8 ) print_mb ( "$usertv[vote] Punkte", $font , "2"); print_mb (" ", $font , "2"); echo ""; } echo "

\n"; include "_forumjump.php"; echo "
\n
\n"; } else include "_forumjump.php"; require "userreg.php"; require "_footer.inc"; ?>