$l$ostr"; } } $apb_useronline_string = "$uo_board: ".htmlspecialchars($board_info[boardname]).""; require "preuserreg.php"; $board_style = GetStyle($BoardID); # 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
  "; $hstring.= "$board_info[category]
    $board_info[boardname]"; $apb_useronline_string = "$uo_board: ".htmlspecialchars($board_info[boardname]).""; $htitle = " - $board_info[boardname]"; require "_header.inc"; 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); } $password_part2_filename = "board.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... { if( $me_board_newsstyle=='1' && $board_info[board_newsstyle] == '1' && $boardview!="true" ) { # echo "
[ Foren-Ansicht ]


"; # Template - Part.... # Header... #tableC echo ""; echo " "; echo " "; echo " "; # Alle threads rauswühlen... while ($thisthread = mysql_fetch_array($threads)) { echo " "; echo " "; echo " "; } # footer... ?>
"; # echo "
"; # echo "
 $board_info[boardname]
"; # echo "   $board_info[descriptiontext]

"; # echo "
"; echo " "; echo " "; if( $board_info_deactivated == 0 && $guestaccount == 0 ) echo ""; else echo ""; echo "
$thread_pages_string[ Foren-Ansicht ] - [ ".$neues_thema." ][ Foren-Ansicht ]
"; echo "
"; echo "
"; echo "


"; $str_bookmarked_thread=GetBookmarkIconString( $me_userid, $thisthread[threadid] ); $result_posting = mysql_query("SELECT postid,authorname,message,posttime FROM apb".$n."_posts WHERE threadparentid='$thisthread[threadid]' ORDER BY posttime ASC limit 0,1;"); $result_posting = mysql_fetch_array($result_posting); $news_created_by = GetUsername($result_posting[authorname],$BoardID,"1"); $news_date = HackDateX($result_posting[posttime]); $news_message=$result_posting[message]; $news_message_id=$result_posting[postid]; $news_comments=$thisthread[replies]; $news_title=RemoveCrop($thisthread[threadname]); $sTopThema=""; if( $thisthread[ontop] == 1 ) { $sTopThema="Top-Thema: "; } $setnewpost=""; $setnewpost_symbol=""; if( $guestaccount == 0 ) { if( $guestaccount == 0 ) { $newpost_t = mysql_query ("SELECT postid FROM apb".$n."_posts where threadparentid=$thisthread[threadid] and posttime >= $me_threadslastvisit order by posttime limit 0,1"); if( ($newpost_t = mysql_fetch_array ($newpost_t)) && $news_comments > 0) $setnewpost="\"\" "; if( $result_posting[posttime] > $me_threadslastvisit ) $setnewpost_symbol="\"\" "; } } include "_poll.php"; # $message=$news_message; $news_message = BuildMessage( $news_message, $sUmfrageZusatz, $user_info[signatur],$thismessage[disable_smilies], 0,$me_nosmilies,$me_userid,$news_message_id,$thisthread[flags] ); /* $nSigHeadLen=strlen( $signatur_header ); # Signatur-Header-Len $message = rtrim ($message); # Die eventuellen Blank am Ende der Message rausrechnen... # echo "-+".$message."+-"; $signature_text=""; if( substr($message, ( $nSigHeadLen * -1) ) == $signatur_header ) { $message= substr( $message, 0, ( strlen($message) - $nSigHeadLen) ); # if( $me_showsignatures == "1" ) # Signatur in der ansicht abschneiden... # $signature_text=$signatur_trennstrich.$user_info[signatur]; } $message = RemoveCrap($message, $thismessage[disable_smilies] | $me_nosmilies); $message = ReplaceQuickvote($message,$me_userid,$news_message_id,$thisthread[flags] ); # $signature_text= RemoveCrap($signature_text, $thismessage[disable_smilies] | $me_nosmilies); $message.=$sUmfrageZusatz.$signature_text; */ # $news_message=$message; $sComment="$news_comments Kommentare"; if( $news_comments == 1 ) $sComment="1 Kommentar"; $sCommentAnswer=" \"kommentieren\""; $edit_link=""; $mod = explode (", ", $board_info[boardmods]); if ($me_userstatus=="MOD" AND apb_in_array($me_username, $mod)) { $modlog=TRUE; } else { $modlog=FALSE; } if( $result_posting[authorname] == $me_username || $modlog==TRUE || $me_userstatus=="ADMIN" ) # der Author? { $seditadmin=""; if( $result_posting[authorname] != $me_username ) $seditadmin="&adwarning=1"; $edit_link="[ editieren ]"; } echo "$edit_link $setnewpost_symbol$sTopThema$news_title - $news_date von $news_created_by"; echo " - "; # Einmal Kommentare... if( $me_showlastposting == "1" ) print_mb ( "$setnewpost$sComment$sCommentAnswer    ", $font , "2"); else if( $me_showlastposting == "2" ) print_mb ( "$setnewpost$sComment$sCommentAnswer    ", $font , "2"); else print_mb ( "$setnewpost$sComment$sCommentAnswer    ", $font , "2"); echo "

"; echo "$news_message

"; echo "
"; ?>
$sComment$sCommentAnswer    ", $font , "2"); else if( $me_showlastposting == "2" ) print_mb ( "$setnewpost$sComment$sCommentAnswer    ", $font , "2"); else print_mb ( "$setnewpost$sComment$sCommentAnswer    ", $font , "2"); */ echo "
\"Trennlinie\"
"; ?>
"; echo "
"; echo "
"; echo "
[ "> ]
",""); } echo ""; echo " "; echo " "; echo " "; ?>
$views_ueberschrift
"; ?> $thread_bewertung"; ?> 0) { $glob_threadid=$thisthread[threadid_new]; $movedthread=$txt_threadmoved; $result=mysql_query("select boardparentid from apb".$n."_threads where threadid=\"$glob_threadid\""); $result=mysql_fetch_array($result); $BoardID=$result[boardparentid]; } # bookmarked board? ( abo ? ) if ( $me_userid > 0 ) { # Schon markiert - also das gegenteil anbieten... $str_bookmarked_thread=""; $threaddat2 = mysql_query("SELECT threadid FROM apb".$n."_threads_user WHERE userid=\"$me_userid\" and threadid=\"$glob_threadid\" and action=\"1\""); if( ( ( $threaddat2 = mysql_fetch_array($threaddat2)))) $str_bookmarked_thread=" "; # $str_bookmarked_thread=" "; # $str_bookmarked_thread=" "; } $pages = ceil(($thisthread[replies]+1) / $posts_per_page); # \"\" if ($pages > 1) { $pages_string = "
".$seiten." "; if( $pages > 5 ) { for ($l=1 ; $l <= 4; $l++) { $pages_string .= "$l$ostr"; } $pages_string .= "... "; $l=$pages; $pages_string .= "$l$ostr"; $pages_string .= "(Letzter Beitrag)$ostr"; elseif( $me_showlastposting == "1" ) $pages_string .= "&BoardID=$BoardID#LASTPOSTING\">(Letzter Beitrag)$ostr"; else $pages_string .= "&BoardID=$BoardID\">(Letzter Beitrag)$ostr"; } else { for ($l=1 ; $l <= $pages; $l++) { $pages_string .= "$l$ostr"; } } $jump_all=""; if( $me_showlastposting == "1" ) $jump_all= "#LASTPOSTING"; else if( $me_showlastposting == "2" ) $jump_all= "#TOP"; $pages_string.="(alles)$ostr"; $pages_string .= ""; } else { $pages_string = ""; } $topic = RemoveCrop($thisthread[threadname]); if (!$thisthread[topicicon]) { $topicicon = "$php_path/themes/icons/text.gif"; } else { $topicicon = $thisthread[topicicon]; } # Thread Icons malen, d.h. wenn neu und alt und wenn mehr als x Einträge usw... $topicfolder = GetThreadIcons( $thisthread[replies],$thisthread[views],$me_threadslastvisit,$thisthread[timelastreply], $thisthread[flags],$thisthread[pollid],$thisthread[ontop]); $ignore_thread=0; if( strstr( $str_ignore_thread, '['.$glob_threadid.']' ) != false ) $ignore_thread=1; if ($thisthread[flags]!="2" && $ignore_thread!=1) { echo ""; if ($thisthread[flags]=="1") { echo ""; } else { echo ""; } $result = mysql_query("SELECT * FROM apb".$n."_posts WHERE threadparentid='$glob_threadid' ORDER BY posttime DESC;"); $result = mysql_fetch_array($result); $reply_von = $result[authorname]; $sBoldOn=""; $sBoldOff=""; if( $thisthread[ontop] == 1 ) { $sBoldOn="Top-Thema: "; $sBoldOff=""; } # Umfrage Überschrift... $sTopicUmfrage=""; if( $thisthread[pollid] > 0) $sTopicUmfrage=$poll_announcer; $setnewpost=""; if( $guestaccount == 0 ) { $newpost_t = mysql_query ("SELECT postid FROM apb".$n."_posts where threadparentid=$glob_threadid and posttime >= $me_threadslastvisit order by posttime limit 0,1"); if( ($newpost_t = mysql_fetch_array ($newpost_t)) ) $setnewpost="\"\" "; } # $setnewpost="--- $newpost_t[postid] --- $me_threadslastvisit"; # Ok, beim Poll SOLL absichtlich (!) egal welche einstellungen im profil, der erster (!) beitrag angezeigt werden... if( $movedthread !="" ) { $sTopicUmfrage=""; } $resultx = mysql_query("SELECT authorname,message,posttime FROM apb".$n."_posts WHERE threadparentid='$glob_threadid' ORDER BY posttime ASC limit 0,1;"); $resultx = mysql_fetch_array($resultx); $tooltip_message1 = $resultx[message]; $tooltip_message1=RemoveSignature($tooltip_message1); /* # Signatur-Tag abschneiden... $nSigHeadLen=strlen( $signatur_header ); # Signatur-Header-Len $tooltip_message1 = rtrim ($tooltip_message1); # Die eventuellen Blank am Ende der Message rausrechnen... if( substr($tooltip_message1, ( $nSigHeadLen * -1) ) == $signatur_header ) $tooltip_message1= substr( $tooltip_message1, 0, ( strlen($tooltip_message1) - $nSigHeadLen) ); */ $firstposting_txt="Erster Beitrag:\n\n".$tooltip_message1; if( $thisthread[pollid] > 0) { $pollflag=""; $getlastdate=mysql_query( "select polllastvote from apb".$n."_poll where pollid=\"$thread_t[pollid]\""); if( $getlastdate = mysql_fetch_array($getlastdate) ) { $threadlastreply3=$getlastdate[polllastvote]; if ($me_threadslastvisit < $threadlastreply3 ) $pollflag=" "; if( $threadlastreply2 < $threadlastreply3 ) $threadlastreply2=$threadlastreply3; } echo ""; } else { if( $me_showlastposting == "1" ) echo ""; else if( $me_showlastposting == "2" ) echo ""; else echo ""; } # $created_by = GetUsername($thisthread[author],$BoardID,"1","",""); $create_author_txt= GetUsername($thisthread[author],$BoardID,$me_showtooltips); # $threadinfotxt="Erstellt von: $created_by \nam: ".HackDateX($posttime)." \nViews: $threadviews \nAntworten: $threadreplies"; $threaderstellt=""; $threaderstellt.="   ".HackDate($thisthread[timecreated] )."
   von $create_author_txt
"; echo ""; echo ""; if( $me_showviews == "1") echo ""; if( $showrating=="1") echo "\n"; if ($thisthread[replies]=="" || $thisthread[replies]==" " || $thisthread[replies]=="0") $reply_von = " "; else $reply_von = GetUsername($reply_von,$BoardID,"1","",""); if( $reply_von != " ") { if( $thisthread["pollid"] > 0 ) { $resultx = mysql_query("SELECT authorname,message,posttime FROM apb".$n."_posts WHERE threadparentid='$glob_threadid' ORDER BY posttime DESC limit 0,1;"); $resultx = mysql_fetch_array($resultx); $reply_von = $resultx[authorname]; $tooltip_message= $resultx[message]; $posttime = $resultx[posttime]; $thisthread[timelastreply]=$posttime; $reply_von = GetUsername($reply_von,$BoardID,"1","",""); } $reply_von=HackDate($thisthread[timelastreply])."
von ".$reply_von; } echo "\n"; } } /* */ ?>
"; echo "
 $board_info[boardname]
"; echo "  $board_info[descriptiontext]
"; echo "  Moderiert von: $mod_username

"; echo "
"; $newssitetext=""; if( $me_board_newsstyle=='1' && $board_info[board_newsstyle] == '1' ) // Test { $newssitetext="[ Newssite-Ansicht ]"; $trenner=" - "; } echo " "; echo " "; if( $board_info_deactivated == 0 && $guestaccount==0 ) echo ""; else echo ""; echo "
$thread_pages_string".$newssitetext.$trenner."[ ".$neues_thema." ]$newssitetext
"; echo "
"; echo "
$setnewpost$sBoldOn$movedthread$sTopicUmfrage$topic$sBoldOff$pollflag$str_bookmarked_thread   $pages_string$setnewpost$sBoldOn$movedthread$sTopicUmfrage$topic$sBoldOff$str_bookmarked_thread   $pages_string$setnewpost$sBoldOn$movedthread$sTopicUmfrage$topic$sBoldOff$str_bookmarked_thread   $pages_string$setnewpost$sBoldOn$movedthread$sTopicUmfrage$topic$sBoldOff$str_bookmarked_thread   $pages_string
\n\n$threaderstellt\n
$thisthread[replies]
$thisthread[views]
".BuildThreadVoteString($min_votes_for_show_rate, $showrating, "1",$thisthread,$BoardID," ")."".$reply_von."
           
[ "> ]