$master_board_name
  $user_info_user"; $htitle_username=""; if ($username == "yes") $htitle_username=$id; $htitle = " - User-Info $htitle_username"; require "_header.inc"; if (!$logged) { apb_error($nur_reg_benutzer1c."".$nur_reg_benutzer2."".$nur_reg_benutzer3."".$nur_reg_benutzer2."".$nur_reg_benutzer4,FALSE); } # 21.07.2001 Brain Slayer -Views and und ausschaltbar (profil) und letzes login... $me_userinfo= GetUserInfoByID ($UID); $me_userinfo= mysql_fetch_array($me_userinfo); $me_showtooltips=0; # erstmal global ausschalten if( $me_userinfo ) { $guestaccount = 0; $me_userid=$me_userinfo[userid]; $me_userstatus=$me_userinfo[status]; $me_username=$me_userinfo[username]; $me_ignoreuser=$me_userinfo[ignoreuser].','; $me_ignoreuserposts=$me_userinfo[ignoreuserposts].','; $me_ulastlogin=$me_userinfo[ulastlogin]; $me_showlastposting=$me_userinfo[showlastentry]; $me_showonlineinfo=$me_userinfo[showonlineinfo]; $me_dbshowuserrating=$me_userinfo[dbshowuserrating]; $me_dbshowstatsrating=$me_userinfo[dbshowstatsrating]; $me_uservoteaverage=$me_userinfo[voteaverage]; $me_userstatus=$me_userinfo[status]; $me_noflash=$me_userinfo[noflash]; $me_shownopointsrangs=$me_userinfo[shownopointsrangs]; if ( $flashon==1 ) $me_noflash=0; # temp überstimmen! } else { $guestaccount = 1; $me_userid=-1; $me_userstatus=''; $me_username=''; $me_ignoreuser=""; $me_ignoreuserposts=""; $me_ulastlogin=0; $me_showlastposting=0; $me_showonlineinfo=0; $me_dbshowuserrating=0; $me_dbshowstatsrating=0; $me_userstatus='NORMAL'; $me_noflash=0; $me_uservoteaverage=0; $me_shownopointsrangs=0; } # alle gesperrten prüfen... :) $today=time(); mysql_query("update apb".$n."_user_table set status=\"NORMAL\", banned_upto=0 where status=\"BANNED\" and banned_upto < $today"); echo mysql_error(); # und weiter... require "getimagesize.php"; define("USER_PIC_MAX_WIDTH", $userpicwidth) ; define("USER_PIC_MAX_HEIGHT", $userpicheight) ; if ($id == "") { apb_error($kein_benutzer_angegeben,FALSE); } if ($username == "yes") { $type = "username"; } else { $type = "userid"; } $userdata = mysql_query("SELECT * FROM apb".$n."_user_table WHERE $type='$id';"); $thisuser = mysql_fetch_array($userdata); echo mysql_error(); $apb_useronline_string = "$uo_userprofile ".htmlspecialchars($thisuser[username]).""; if (!$thisuser) { apb_error($benutzer_existiert_nicht_user,FALSE); } $status_txt_long=GetUserstatus($thisuser[status],$thisuser[username]); function tprint ($desc,$cont) { global $cfg; echo " $desc $cont "; } echo ""; echo " "; echo " "; echo " "; echo " "; echo " "; echo ""; echo ""; } else { print_mb ("
[ Zurück ] - [ eröffnete Threads ] - [ beantwortete Beiträge ]$qms_link$board_userprotection", $font, "2"); echo "

"; echo " "; echo " "; } if ($thisuser[qmavailable] == "1" ) tprint ($benutzername_profil,$thisuser[username]." \"Quickmessage"); else tprint ($benutzername_profil,$thisuser[username]); $vote_grafik = ""; if( $showuserrating=="1" && $me_dbshowuserrating=="1" && $thisuser[dbshowuserrating] == "1") { $userrating = mysql_query("SELECT vote FROM apb".$n."_rate WHERE userid='$me_userid' and target='$thisuser[userid]' and type='userrate';"); $userrating = mysql_fetch_array($userrating); if( $userrating ) $voted="Deine Bewertung für $thisuser[username]: $userrating[vote] von 5 Punkten $userrating_small
"; else { if( $thisuser[username] != $me_username ) $voted="Deine Bewertung: (noch keine) $userrating_small
"; else $voted=""; } if ($thisuser[votecount] >= $min_votes_for_show_rate) { $vote_grafik_id = (int) round($thisuser[voteaverage]); $vote_grafik = ($user_vote_pics[$vote_grafik_id] != "" ? "\"Stimmen:" : ""); tprint ("Bewertung",$vote_grafik."  [ Detaillierte Informationen ]
Abgegebene Stimmen: $thisuser[votecount]
Durchschnittliche Punktzahl: $thisuser[voteaverage] von 5 Punkten
$voted"); } else tprint ("Bewertung","Noch nicht genügend Stimmen für ein repräsentatives Ergebnis.
$voted"); } if ($thisuser[interests] != "" && $thisuser[interests] != "[N/A]") tprint ($interessen_user,$thisuser[interests]); if ( $thisuser[username] != $me_username ) { $squickmessages="[ Quickmessages ignorieren ]"; if( strstr( $me_ignoreuser,'#'.$thisuser[userid].'#') ) $squickmessages="[ Quickmessages zulassen ]"; $spostings="[ Beiträge ausblenden ]"; if( strstr( $me_ignoreuserposts,'#'.$thisuser[userid].'#') ) $spostings="[ Beiträge anzeigen ]"; $anon=0; if( $anonymous_name == $me_username && $anonymous_allowed == 1) $anon=1; if( $me_userstatus != 'BANNED' && $me_userstatus != 'DELETED' && $anon==0 ) tprint ('Einstellungen ändern:',"$spostings - $squickmessages"); } # 03. Januar 2003 if ( $thisuser[username] != $me_username ) tprint ('Das Profil wurde ', $thisuser[viewcount].' x betrachtet'); else tprint ('Dein Profil wurde ', $thisuser[viewcount].' x betrachtet'); if ($allow_form_mailer) { if ($thisuser[users_may_email]) { $email_profil_text = "\"$ml_write_email...\"  "; } else if ($modlog || $adminlog) { if ($thisuser[mods_may_email]) { $email_profil_text = "\"$ml_write_email...\"  "; } } } if ($thisuser[show_email_global] == "1") { if ($thisuser[useremail] == "") { $email_profil_text .= "[N/A]"; } else { $email_profil_text .= "$thisuser[useremail]"; } } else { $email_profil_text .= $ml_email_nicht_sichtbar; } tprint ($email_profil, $email_profil_text); if ($thisuser[userhp] != "" && $thisuser[userhp] != "[N/A]") tprint ($homepage_profil,"$thisuser[userhp]"); if ($thisuser[usericq] != "[N/A]" && $thisuser[usericq] != "") tprint ($icq_profil,"\"$contact_hinzufuegen\" $thisuser[usericq]"); if ( $thisuser[gender] == 0 ) $gender="weiblich"; if ( $thisuser[gender] == 1 ) $gender="männlich"; if ( $thisuser[gender] == 2 ) $gender="Göttin"; if ( $thisuser[gender] == 3 ) $gender="Gott"; if ( $thisuser[gender] == 4 ) $gender="Ich bin mir nicht sicher"; tprint ("Geschlecht:",$gender); # ---------- $bday_day = substr( $thisuser[birthday], 8, 2); $bday_month = substr( $thisuser[birthday], 5, 2); $bday_year = substr( $thisuser[birthday], 0, 4); if ( $bday_day == '00' ) $bday_day = ''; if ( $bday_month == '00' ) $bday_month = ''; if ( $bday_year == '0000' ) $bday_year = ''; if ( $bday_day != '' && $bday_month != '' ) { $birthday = $bday_day.".".$bday_month; if( $bday_year != "" ) $birthday .= '.'.$bday_year; else $birthday.= '.????'; tprint ("Geboren am:",$birthday); if( checkdate($bday_month,$bday_day,$bday_year) ) { $heute_year = date("Y"); $heute_month = date("m"); $heute_day = date("d"); $age = $heute_year - $bday_year; if( $heute_month < $bday_month ) $age=$age -1; else if( $heute_month == $bday_month && $heute_day < $bday_day) $age=$age -1; if( $age > 0 && $age < 667 ) tprint ($alter_profil,$age); } } # ---------- $cday_day = substr( $thisuser[anniversary], 8, 2); $cday_month = substr( $thisuser[anniversary], 5, 2); $cday_year = substr( $thisuser[anniversary], 0, 4); if ( $cday_day == '00' ) $cday_day = ''; if ( $cday_month == '00' ) $cday_month = ''; if ( $cday_year == '0000' ) $cday_year = ''; if ( $cday_day != '' && $cday_month != '' && $cday_year != '') { $anniversary = $cday_day.".".$cday_month; if( $cday_year != "" ) $anniversary .= '.'.$cday_year; else $anniversary.= '.????'; tprint ("Voraussichtl. Todestag:",$anniversary); } if( $thisuser[causeofdeath] != "" ) tprint ("Todesursache:",$thisuser[causeofdeath]); # ---------- if( ( strlen($thisuser[userland]) > 0 ) || ( strlen($thisuser[userplz]) > 0 ) || ( strlen($thisuser[userwohnort]) > 0 ) ) tprint ("Land/Plz/Ort",$thisuser[userland].' - '.$thisuser[userplz].' - '.$thisuser[userwohnort]); #if( $thisuser[invisible] == "1" ) # tprint ("Stealthmode:","Unsichtbarkeitsmodus aktiviert!"); tprint ($registrier_datum,HackDate($thisuser[regdate])); # first entry $firstpost = mysql_query("SELECT threadparentid,postid FROM apb".$n."_posts where authorname = '$thisuser[username]' order by posttime limit 0,1"); if ($firstpost = mysql_fetch_array($firstpost)) { $postid = $firstpost[postid]; $threadparentid = $firstpost[threadparentid]; $firstthread = mysql_query("select threadname,boardname from apb".$n."_threads, apb".$n."_boards where threadid='$threadparentid' and boardparentid = boardid limit 0,1"); $firstthread = mysql_fetch_array($firstthread); $boardname=RemoveCrop($firstthread[boardname]); $threadname=RemoveCrop($firstthread[threadname]); tprint ("Erster Beitrag im Forum:","$threadname im $boardname"); } # den view-counter einen hochzählen... if ( $thisuser[username] != $me_username ) { $result = mysql_query("UPDATE apb".$n."_user_table set viewcount = viewcount + 1 where username = '$thisuser[username]'"); echo mysql_error(); } if( $thisuser[invisible] != "1" ) tprint ("Letzte Anmeldung:",HackDate($thisuser[lastlogin])); #else # tprint ("Letzte Anmeldung:","unbekannt"); if( $me_showonlineinfo == "1" && $thisuser[invisible] != "1" ) { if ( $thisuser[username] != $me_username ) { $aktaktion = mysql_query("select onlineanzeige,zeit from apb".$n."_useronline where nickname = \"$thisuser[username]\" order by zeit desc limit 0,1"); if ($aktaktion = mysql_fetch_array($aktaktion)) { $tmpAktion=$aktaktion[onlineanzeige]; BS_ParseAction($tmpAktion,$me_showlastposting,$me_userid,$me_uservoteaverage,$guestaccount); if( $tmpAktion != "") { $tuseraktion=StripSlashes($tmpAktion); # Temporärer Workaround.... =) $tuseraktion=str_replace('$BoardID',$BoardID,$tuseraktion); $tuseraktion=str_replace('&',"&",$tuseraktion); $tuserzeit=HackDate($aktaktion[zeit]); tprint ("Letzte Aktivität:",$tmpAktion." (".$tuserzeit.")"); } else tprint ("Letzte Aktivität:","Aktion nicht ermittelbar (".HackDate($aktaktion[zeit]).")"); } echo mysql_error(); } else tprint ("Letzte Aktivität:","Du betrachtest Dich gerade selbst! :)"); } if( $me_shownopointsrangs == 0 && $thisuser[shownopointsrangs] == 0 ) { if ( $thisuser[nopostings] == 0) tprint ($beitraege_user,$thisuser[userposts]); tprint ("Punkte",round($thisuser[pointsthreads],2)); } # else # if ($thisuser[shownopointsrangs]) # tprint ("Punkte/Ränge","Punkte/Ränge deaktiviert"); $sDatum=""; if( $geheimbund_spezial == 1 ) { if( $thisuser[regdate] < 1042844400 ) $sDatum=" (seit dem 18.01.2003)"; } $onlinestring=CalcPointsOnlineToTimeString($thisuser[pointsonline]); if( strlen($onlinestring) > 0) tprint ("Online-Zeit$sDatum", "ca. $onlinestring"); #if( round((($thisuser[pointsonline]*10)/60),0) == 1 ) # tprint ("Online-Stunden$sDatum", 'ca. '.round((($thisuser[pointsonline]*10)/60),0).' Stunde'); #else # tprint ("Online-Stunden$sDatum", 'ca. '.round((($thisuser[pointsonline]*10)/60),0).' Stunden'); if( $thisuser[status] != 'BANNED' ) tprint ("".$status_ueberschrift."",$status_txt_long); else tprint ("".$status_ueberschrift."",$status_txt_long."
bis zum ".HackDateX($thisuser[banned_upto]).""); if ($thisuser[userpic]!="" && $thisuser[userpic]!=" " && $thisuser[userpic]!="[N/A]") { /* - Siehe unten Brain Slayer # WOW---> GetURLImageSize ist DER Speedkiller schlechthin! Auf jeden Fall weglassen! $image = GetURLImageSize($thisuser[userpic]); if ($image[0] > USER_PIC_MAX_WIDTH) { $width=$image[0]; $image[0] = USER_PIC_MAX_WIDTH; $image[1] = floor(($image[0]*$image[1])/$width); } if ($image[1] > USER_PIC_MAX_HEIGHT) { $old=$image[1]; $image[1] = USER_PIC_MAX_HEIGHT; $image[0] = floor($image[0]*$image[1]/$old); } */ if ($thisuser[userhp] == "" || $thisuser[userhp] == " " || $thisuser[userhp] == "[N/A]") { $upic = "0"; } else { $upic = "1"; } if ($upic == "1") { $printpic .= ""; } # $printpic .= ""; $printpic .= ""; if ($upic == "1") { $printpic .= ""; } tprint ($bild_user,$printpic); } if( strlen( $thisuser[signatur] ) > 0 ) { echo " "; $signature_text= RemoveCrap($thisuser[signatur], 0); tprint ("Signatur",$signature_text); } echo " "; if( $me_userstatus == 'ADMIN' || $me_userstatus == 'MOD' ) { # evtl. neue adminstufe einfügen, weil ich nicht möchte das ein admin da einfach in die unterboards reinkann... :) tprint ('Berechtigungen: (MOD/Admin)',"[ Berechtigungen ]"); } # DU admin, darfst aber keinen anderen admin entrechten bzw. so anschauen! :) if( $me_userstatus == 'ADMIN' && $thisuser[status] != "ADMIN" ) { tprint ('Ip-Adresse: (Admin)',$thisuser[ipaddr]); tprint ('Benutzerstatus ändern: (Admin)',"[ NORMAL ] - [ MOD ] - [ BANNED ] - [ DELETED ]"); } #========================================================================================= # Brain Slayer - ADD-ON: Anzeige der letzten Threads in denen ein User gepostet hat.... # 25.02.2001 - überarbeitet am 23 und 26 Dezember 2001 #========================================================================================= echo " "; echo " "; echo " "; echo "
"; echo "

"; print_mb ("Benutzerprofil
", $font, "4"); print_mb ("".$thisuser[username] ."
", $font, "6"); print_mb ("[ ".$status_txt_long ." ]
", $font, "2"); $qms_link=""; $qms_user = mysql_query("select Von,Fuer,Text,Zeit,Gelesen,Besitzer,IP,ID from apb".$n."_qmsg where besitzer='$me_username' and von='$thisuser[username]' order by zeit desc limit 0,1"); echo mysql_error(); if( $qms_user = mysql_fetch_array($qms_user) ) { if( $qms_user[Gelesen] == 0 ) $qms_link=" - [ ungelesene Quickmessage ]"; else $qms_link=" - [ Quickmessages ]"; } $board_userprotection=""; /* if( $me_userstatus == 'ADMIN' || $me_userstatus == 'MOD' ) { # evtl. neue adminstufe einfügen, weil ich nicht möchte das ein admin da einfach in die unterboards reinkann... :) $board_userprotection=" - [ Berechtigungen (MOD) ]"; } */ if ( $thisuser[username] != $me_username && $showuserrating=="1" && $me_dbshowuserrating == "1" && $thisuser[dbshowuserrating] == "1" ) { $userrating_form="

"; $userrating_small=""; $userrating_form.=$userrating_small; $userrating_form.="
"; $stemp=" "; $userrating_small.=$stemp.""; $userrating_form.=$stemp; $userrating_form.="
\n
\n"; # echo $userrating_form; } else { $userrating_form=""; $userrating_small=""; } if( strlen($thisuser[userflash]) > 0 || $thisuser[infotext] != "" && $thisuser[infotext] != "[N/A]") { print_mb ("
[ Zurück ] - [ Profil ] - [ eröffnete Threads ] - [ beantwortete Beiträge ]$qms_link$board_userprotection", $font, "2"); echo "

"; echo "
"; echo "
"; print_mb ("Selbstdarstellung von $thisuser[username]:

", $font, "2"); if( strlen($thisuser[userflash]) > 0 ) { if( strstr ( strtoupper($thisuser[userflash]),".SWF") ) { if( $me_noflash != 1 ) echo (' '); else echo ("Flashanimationen im eigenen Profil ausgeschaltet!

[ User mit Flashanimation betrachten! ]

"); } else echo ('MessageBild'); } echo("
"); if ($thisuser[infotext] != "" && $thisuser[infotext] != "[N/A]") { $infotext = RemoveCrap($thisuser[infotext], 0 ); echo ("".$infotext.""); } echo "
"; echo "
 
 
 
"; echo "

"; print_mb (" ", $font, "2"); echo "

"; echo "
"; echo ""; # ------------------------- DIE THREADS DIE EIN USER ERÖFFNET HAT - BEGIN if( 1 == 1 ) { echo "
"; $threadscreatedstart+=0; # init! $orderby_value=""; if( $switchdir == "on") # richtung ändern { # Sortierrichtung! if( $sortdir != "desc" ) { $sort_gif_string = " "; $sortdir_value="desc"; $sortdir = "&sortdir=desc"; } else { $sort_gif_string = " "; $sortdir_value="asc"; $sortdir = "&sortdir=asc"; } } else # nur setzen! { if ( $sortdir == "desc" || ! isset($sortdir) ) { $sort_gif_string = " "; $sortdir_value="desc"; $sortdir = "&sortdir=desc"; } else { $sort_gif_string = " "; $sortdir_value="asc"; $sortdir = "&sortdir=asc"; } } # achtung - die nachfolgenden drei arrays gehören zusammen! die variable wird in den column-überschriften verwendet! :) $a_fields_order=array( "threadname","timecreated","replies","voteaverage","boardname","timelastreply","-1"); $a_fields_desc=array( "Thema","erstellt am","Antworten","Bewertung","Board","letzter Eintrag","-1"); $a_fields_variable=array( "hdr_thema","hdr_created","hdr_replies","hdr_votes","hdr_board","hdr_lastentry","-1"); for( $na_fields=0; $a_fields_order[ $na_fields ] != "-1"; $na_fields++) { eval(" \$tmp_gif_string=\"\"; \$tmp_sortdir=\"\"; if( \$orderby == \"\$a_fields_order[$na_fields]\") { \$orderby_value=\$orderby; \$orderby_txt=\"&orderby=\$a_fields_order[$na_fields]\"; \$tmp_gif_string=\$sort_gif_string; \$tmp_sortdir=\$sortdir; } else \$orderby_txt=\"&orderby=\$a_fields_order[$na_fields]\"; \$\$a_fields_variable[$na_fields]=\"\$tmp_gif_string \$a_fields_desc[$na_fields]\"; "); } if( $orderby_value == "" ) $orderby_value="timecreated"; $orderby_txt="&orderby=".$orderby_value; if( $sortdir_value == "" ) $sortdir_value="desc"; // Seiten-String berechnen... $thisthreads = mysql_query("SELECT COUNT(*) FROM apb".$n."_threads WHERE author = '$thisuser[username]' and threadid_new = 0"); echo mysql_error(); $thisthreads = mysql_fetch_row($thisthreads); $threadsmax= $thisthreads[0]; $thisthreads = $thisthreads[0]; if ($thisthreads == "0") { $thisthreads = 1; } $ostr = " "; $thread_pages = ceil($thisthreads / $threads_per_page); $thispage = ceil($threadscreatedstart / $threads_per_page); if ($thispage == "0") { $thispage = 1; } $thread_pages_string = $seiten." "; for ($l=1 ; $l <= $thread_pages; $l++) { if ($l == $thispage) { $thread_pages_string .= "-$l-$ostr"; } else { $thread_pages_string .= "$l$ostr"; } } # Seiten String berechnen Ende # echo "SELECT threadid, threadname, boardparentid, topicicon, timelastreply, views,replies,votecount, voteaverage,flags,pollid,boardpassword,boardname FROM apb".$n."_threads AS threads, apb".$n."_boards AS boards WHERE threads.boardparentid = boards.boardid AND threads.flags != 2 and threads.author = '$thisuser[username]' and threadid_new = 0 order by $orderby_value $sortdir_value limit $threadscreatedstart,$threads_per_page"; $thread_last = mysql_query("SELECT threadid, threadname, boardparentid, topicicon, timelastreply, views,replies,votecount, voteaverage,flags,pollid,ontop,boardpassword,boardname FROM apb".$n."_threads AS threads, apb".$n."_boards AS boards WHERE threads.boardparentid = boards.boardid and boards.board_hidden=0 AND threads.flags != 2 and threads.author = '$thisuser[username]' and threadid_new = 0 order by $orderby_value $sortdir_value limit $threadscreatedstart,$threads_per_page"); echo mysql_error(); #$thread_last = GetThreadOverview(100,""); $ueberschrift="Die Threads ($threadsmax) die $thisuser[username] eröffnet hat:
$thread_pages_string"; $nColspan=7; if( $me_dbshowstatsrating == "1") $nColspan=8; /* if ($desc != "1") $gif_desc_string = " "; else $gif_desc_string = " "; */ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if( $me_dbshowstatsrating == "1") echo ""; echo ""; echo ""; echo ""; $nBoardParentIDOld= -1; $sBoardName = ""; $stati2 = 1; while ($thread_t = mysql_fetch_array($thread_last)) { # begin (2) $threadid = $thread_t["threadid"]; $threadname = $thread_t["threadname"]; $boardparentid = $thread_t["boardparentid"]; $threadtopicicon = $thread_t["topicicon"]; $threadlastreply = $thread_t["timelastreply"]; $threadreplies = $thread_t["replies"]; $threadflags = $thread_t["flags"]; $threadviews = $thread_t["views"]; $threadpollid = $thread_t["pollid"]; $threadontop = $thread_t["ontop"]; $boardpassword = $thread_t["boardpassword"]; $threadname = RemoveCrop($threadname); # debuging... # echo $boardparentid." / ".$boardpassword." / ".$me_userid." / ".$me_uservoteaverage." / ".$guestaccount."
"; $protected_thread=1; if( CheckBoardProtection( $boardparentid,$boardpassword,$me_userid,$me_uservoteaverage,$guestaccount) == 1) $protected_thread=0; # erlaubt # bookmarked board? ( abo ? ) $str_bookmarked_thread=GetBookmarkIconString( $me_userid, $threadid ); # # Erstes Posting... ermitteln ( thread created ) # $firstpost = mysql_query("SELECT authorname,message,posttime FROM apb".$n."_posts WHERE threadparentid='$threadid' ORDER BY posttime ASC limit 0,1;"); $firstpost = mysql_fetch_array($firstpost); $created_by = $firstpost[authorname]; $posttime = $firstpost[posttime]; $create_author_txt= GetUsername($created_by,$BoardID,$me_showtooltips); $threadinfotxt="Erstellt von: $created_by \nam: ".HackDateX($posttime)." \nViews: $threadviews \nAntworten: $threadreplies"; $threaderstellt=""; # if( $threadreplies > 0 ) $threaderstellt="
"; $threaderstellt.="   ".HackDate($posttime)."
   von $create_author_txt
"; $aktpost = mysql_query("SELECT * FROM apb".$n."_posts WHERE threadparentid='$threadid' ORDER BY posttime DESC limit 0,1;"); $aktpost = mysql_fetch_array($aktpost); $aktpostID = $aktpost[postid]; $aktpostauthor = $aktpost[authorname]; $aktposttime = $aktpost[posttime]; $aktpostmsgtooltip = $aktpost[message]; $aktpostmsg = $aktpost[message]; $aktpostdisablesmilies=$aktpost[disable_smilies]; $aktpostmsgtooltip= RemoveSignature( $aktpostmsgtooltip ); if( $overview=="new" ) # bei new wird unten eh die ganze nachricht eingeblendet $aktpostmsgtooltip="siehe zeile hier drunter"; # # ---- tooltip - message - begin - # # letztes Posting - aktuelles - ermitteln... ( wegen message Tooltip! ) # $resultx = mysql_query("SELECT authorname,message,posttime FROM apb".$n."_posts WHERE threadparentid='$threadid' ORDER BY posttime DESC limit 0,1;"); # $resultx = mysql_fetch_array($resultx); # $reply_von = $resultx[authorname]; # $tooltip_message= $resultx[message]; # $posttime = $resultx[posttime]; ## Signatur-Tag abschneiden... #$nSigHeadLen=strlen( $signatur_header ); # Signatur-Header-Len #$tooltip_message = rtrim ($tooltip_message); # Die eventuellen Blank am Ende der Message rausrechnen... #if( substr($tooltip_message, ( $nSigHeadLen * -1) ) == $signatur_header ) # $tooltip_message= substr( $tooltip_message, 0, ( strlen($tooltip_message) - $nSigHeadLen) ); # ---- tooltip - message - end - # # wer hat auf einen thread geantwortet? ( wenn antworten vorhanden ) # $threadbeantwortet=""; if( $threadreplies != 0) { $reply_author_txt= GetUsername($aktpostauthor,$BoardID,$me_showtooltips); if( $threadpollid > 0 ) $threadlastreply=$aktposttime; $threadbeantwortet="   ".Hackdate($threadlastreply)."
   von $reply_author_txt
"; } $newEntry = GetThreadIcons( $threadreplies,$threadviews,$me_ulastlogin,$threadlastreply,$threadflags,$threadpollid,$threadontop); $setnewpost=""; if( $guestaccount == 0 ) { $newpost_t = mysql_query ("SELECT postid FROM apb".$n."_posts where threadparentid=$threadid and posttime >= $me_ulastlogin order by posttime limit 0,1"); if( ($newpost_t = mysql_fetch_array ($newpost_t)) ) { $tooltipstring=""; if( $me_showtooltips == "1" ) $tooltipstring="title=\"$aktpostmsgtooltip\""; $setnewpost="\"\" "; } } # Brain Slayer 12.12.2001 $pages = ceil(($threadreplies+1) / $posts_per_page); if ($pages > 1) { $pages_string = "$setnewpost 0 ) { $pages_string ="$setnewpost Alles ]"; # else # $allposts=""; # erstmal net, funktioniert bei purtec nicht so richtig, wenn das alles zulange dauert! :) $allposts=""; # Brain Slayer 09.06.2001 if( $nBoardParentIDOld != $boardparentid ) { $board_info = GetBoardInfo($boardparentid); $board_info = mysql_fetch_array($board_info); $showrating = $board_info[showrating]; $sBoardName = RemoveCrop($board_info[boardname]); $sBoardCategory =RemoveCrop($board_info[category]); $nBoardParentIDOld = $boardparentid; } # Verschiedene Hintergundfarben! - Neue Beiträge sind auf dem dunkleren Untergrund # $thread_t["timelastreply"] damit auch umfragen so sind. # wollte mann nur echte antworten sehen, dann $threadlastreply if ($me_threadslastvisit < $threadlastreply ) echo "\n"; echo "\n"; $tooltipstring=""; if( $me_showtooltips == "1" ) $tooltipstring="title=\"$threadinfotxt\""; # debug # $sTemp="
".$boardparentid."-".$boardpassword."-".$me_userid."-".$me_uservoteaverage."-".$guestaccount; $sTemp=""; if( $protected_thread == 1 ) echo ""; else echo ""; if( $threadreplies == 0 ) $threadreplies=" "; echo ""; echo ""; if( $me_dbshowstatsrating == "1") echo ""; echo ""; echo ""; echo "\n"; $stati2++; } # end (2) echo "
$ueberschrift
"; echo "
 Status$hdr_thema$hdr_replies$hdr_created$hdr_votes$hdr_board$hdr_lastentry
\n\n"; else echo "
\n\n"; if ($threadflags == "1") $threadtopicicon_temp="$php_path/themes/closed.gif"; else $threadtopicicon_temp=$threadtopicicon; echo $stati2.". \n
\n\nPasswortgeschütztes Board oder keine Berechtigung (mehr)."."$allposts$pollflag$str_bookmarked_thread    $sTemp\n
\n\n$pages_string$lastposting_temp\" $tooltipstring >".$sTopicUmfrage.$threadname.""."$allposts$pollflag$str_bookmarked_thread    \n
\n\n$threadreplies\n
\n\n$threaderstellt\n
".BuildThreadVoteString($min_votes_for_show_rate,$showrating, $me_dbshowstatsrating,$thread_t,$BoardID)."
\n\n"; echo BuildBoardnameString($sBoardName,$sBoardCategory,$boardparentid); echo "\n
\n\n$threadbeantwortet\n
"; # legende... echo "

"; } # ------------------------- DIE THREADS DIE EIN USER ERÖFFNET HAT - ENDE # die letzten 30 threads wo der user gepostet hat: echo ""; echo ""; echo ""; echo " \n"; echo " \n \n"; # Erstmal die letzten Postings eines Users ermitteln... ( die 200 wird zur Zeit ignoriert! ;) ) $posts_last = GetLastUserPosts(200,$thisuser[username]); # Thread-ID Merker $remember_thread_id=""; $nThreadCounter=0; $stati2 = 1; while ($posts_t = mysql_fetch_array($posts_last)) { $threadparentid = $posts_t["threadparentid"]; $postid = $posts_t["postid"]; $posttime = $posts_t["posttime"]; if ( $nThreadCounter >= 30) break; if ( strstr( $remember_thread_id, $threadparentid."," ) == "" ) { $nBoardParentIDOld= -1; $sBoardName = ""; $thread_last = GetLastUserThreads(1,$postid); if ($thread_t = mysql_fetch_array($thread_last)) { $remember_thread_id .= $threadparentid.","; $nThreadCounter++; $threadid = $thread_t["threadid"]; $threadname = $thread_t["threadname"]; $boardparentid = $thread_t["boardparentid"]; $threadtopicicon = $thread_t["topicicon"]; $threadlastreply = $thread_t["timelastreply"]; $threadreplies = $thread_t["replies"]; $threadname = RemoveCrop($threadname); $newEntry="$php_path/themes/icons/ordner.gif"; if ($me_ulastlogin < $threadlastreply) $newEntry="$php_path/themes/icons/roterordner.gif"; # Brain Slayer 12.12.2001 $pages = ceil(($threadreplies+1) / $posts_per_page); if ($pages > 1) { $pages_string = "\n"; echo " \n "; if( $posttime != $threadlastreply ) { echo "\n"; } else { echo "\n"; } $stati2++; } } } ?>
Die letzten 30 Threads in denen ".$thisuser[username]." etwas geschrieben hat..."; $firstpost = mysql_query("SELECT postid FROM apb".$n."_posts where authorname = '$thisuser[username]' order by posttime limit 0,1"); if ($firstpost = mysql_fetch_array($firstpost)) { $postid = $firstpost[postid]; echo "
( Der erste Beitrag im Forensystem $master_board_name von ".$thisuser[username]." )"; } echo "
\n\n"; echo " \n
 
\nThema    \n
\n\nForum    \n
\n\nGeschrieben am    \n
\n\n    Letzte Antwort\n
\n\n"; # 23.12.2001 - Neu... BrainSlayer # if (( $stati2 % 2 ) == 0 ) # echo "
\n\n"; # else # echo "
\n\n"; echo $stati2.". \n
\n\n$pages_string$lastposting\">".$threadname."    \n
\n\n".$sBoardName."    \n
\n\n".Hackdate($posttime)."\n
\n\n    ".Hackdate($threadlastreply).",
   von $reply_von
\n
\n\n  \n
"; echo "
Erläuterung der Symbole:
"; echo ""; echo ""; echo "\"\" - normaler Beitrag
"; echo "\"\" - mehr als 50 Antworten oder mehr als 200x betrachtet
"; echo "\"\" - normaler neuer Beitrag
"; echo "\"\" - neuer Beitrag / mehr als 50 Antworten oder mehr als 200x betrachtet
"; echo "\"\" - auf den ersten Beitrag seit dem letzten Besuch springen
"; echo "
"; ?>