$master_board_name
  $header_quickview"; $htitle = " - Übersicht"; #$apb_useronline_string = "$uo_quickview"; $apb_useronline_string = str_replace ( "\$BoardID",$BoardID,$uo_quickview); #$apb_useronline_string = "$uo_statistics"; require "_header.inc"; $me_userinfo = GetUserInfoByID ($UID); $me_userinfo = mysql_fetch_array($me_userinfo); if( $me_userinfo[username] == "" ) { $guestaccount=1; $me_userid=-1; $me_username=""; $me_userstatus=""; $me_ulastlogin="0"; $me_showlastposting="1"; $me_showonlineinfo = "0"; $me_statsboards=""; $me_dbshowstatsrating=1; $me_statsbirthdays=0; $me_uservoteaverage=0; $me_showtooltips="1"; $me_useractions=0; $me_showavatar=0; $me_dbshowstatsviews=1; $me_shownopointsrangs=0; $me_dbshowstatsposts=-1; $str_ignore_thread=""; $me_overviewjustnew=0; $me_threadslastvisit=0; } else { $guestaccount=0; $me_userid=$me_userinfo[userid]; $me_username=$me_userinfo[username]; $me_userstatus=$me_userinfo[status]; $me_ulastlogin=$me_userinfo[ulastlogin]; $me_showlastposting=$me_userinfo[showlastentry]; $me_uservoteaverage=$me_userinfo[voteaverage]; $me_showonlineinfo= $me_userinfo[showonlineinfo]; $me_statsboards= $me_userinfo[statsboards]; $me_dbshowstatsrating= $me_userinfo[dbshowstatsrating]; $me_statsbirthdays=$me_userinfo[statsbirthdays]; $me_showtooltips=$me_userinfo[statstooltips]; $me_useractions=$me_userinfo[statsuseractions]; $me_showavatar=$me_userinfo[showavatar]; $me_shownopointsrangs=$me_userinfo[shownopointsrangs]; $me_dbshowstatsviews=$me_userinfo[dbshowstatsviews]; $me_threadslastvisit=$me_userinfo[threadslastvisit]; $me_overviewjustnew=$me_userinfo[overviewjustnew]; if ( $overview!="new" && $overview!="full") if( $me_userinfo[dbshowstatsposts] == 1 ) $overview="new"; # was ist zu ignorieren? $str_ignore_thread=""; $threaddat = mysql_query("SELECT threadid FROM apb".$n."_threads_user WHERE userid=\"$me_userid\" and action=\"2\""); while( ( ( $threaddat2 = mysql_fetch_array($threaddat)))) $str_ignore_thread.='['.$threaddat2[threadid].']'; } # temp # if( $me_username == 'BrainSlayer' ) $overview='new'; # lustiges kleines berechnen von den punkten ( threadpoints ) # aktuelle zeit... $unix_timestamp = time(); $unix_timestamp += ($server_zeit_unterschied * 3600); $minuten=date("i",$unix_timestamp); $stunden=date("H",$unix_timestamp); if( ( $stunden >= 18 and $stunden <= 20 ) and ( $minuten >=0 and $minuten <= 45 ) ) { $getcalcpoints=mysql_query("select calcpoints from apb".$n."_config where confid=\"1\""); if( $getcalcpoints=mysql_fetch_array($getcalcpoints)) { if( $getcalcpoints[calcpoints] < $unix_timestamp ) { # nächste berechnung einen tag später... exakt um 18 uhr! $akttime_temp=mktime(18, 0, 0, date ("m") , date ("d"), date("Y")); $unix_timestamp=strtotime ("1 day",$akttime_temp); $getcalcpoints=mysql_query("update apb".$n."_config set calcpoints=\"$unix_timestamp\" where confid=\"1\""); require "_calcpoints.php"; } } } # ende des lustigen kleinen berechnens der punkte ( threadpoints ) ?>
\n \n \n \n "; $nCounter++; } } echo "
"; echo "
User im Board Online
(in den letzten 8 Minuten)

"; $inv_user = mysql_query("SELECT DISTINCT nickname FROM apb".$n."_useronline WHERE nickname != '' and file = '_ inv _'"); $anzahl_inv_user = mysql_num_rows($inv_user); if( $geheimbund_spezial == 1 && $me_username == ' Brain Slayer ' ) { $reg_user = mysql_query("SELECT DISTINCT nickname FROM apb".$n."_useronline WHERE nickname != ''"); $anzahl_inv_user=0; } else if ( $me_userstatus == 'ADMIN' && $admin_show_invisible == 1) { $reg_user = mysql_query("SELECT DISTINCT nickname FROM apb".$n."_useronline WHERE nickname != ''"); $anzahl_inv_user=0; } else $reg_user = mysql_query("SELECT DISTINCT nickname FROM apb".$n."_useronline WHERE nickname != '' and file !='_ inv _'"); $anzahl_reg_user = mysql_num_rows($reg_user); $anzahl_guests_query = mysql_query("SELECT DISTINCT ip FROM apb".$n."_useronline WHERE nickname = ''"); $anzahl_guests = mysql_num_rows($anzahl_guests_query); $anzahl_user = $anzahl_reg_user + $anzahl_guests + $anzahl_inv_user; if ($anzahl_user == "1") { echo "Es ist zur Zeit ein Besucher online:

"; } else { echo "Es sind zur Zeit ".$anzahl_user." Besucher online:

"; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $secret_user=""; $anzahl_sec_user=0; while ($nickname = mysql_fetch_row($reg_user)) { $aktaktion = mysql_query("select onlineanzeige,zeit,file from apb".$n."_useronline where nickname = \"$nickname[0]\" 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 ( $nickname[0] != $me_username ) { if( $tmpAktion != "") { $tuseraktion=StripSlashes($tmpAktion); # Temporärer Workaround.... =) $tuseraktion=str_replace('$BoardID',$BoardID,$tuseraktion); $tuseraktion=str_replace('&',"&",$tuseraktion); $tuserzeit=HackTime($aktaktion[zeit]); } else { $tuseraktion="(Aktion nicht ermittelbar)"; $tuserzeit=HackTime($aktaktion[zeit]); } } else { # $tuseraktion="Betrachtet die Statistik"; $tuseraktion = str_replace ( "\$BoardID",$BoardID,$uo_quickview); $tuserzeit=HackTime(time()); } if( $me_showonlineinfo == "0" ) { $tuseraktion = "<deaktiviert>"; $tuserzeit = "<deaktiviert>"; } # admins können auch unsichtbare user sehen.... :) $userinvisible=''; if ( $me_userstatus == 'ADMIN' && $aktaktion[file]=='_ inv _') $userinvisible=" (inv.)"; $stats_username = GetUsername($nickname[0],$BoardID,$me_showtooltips,"","".$userinvisible); if( $tuseraktion != $txt_secret_user ) { # test $me_username if( strstr( $aktaktion[file],$me_username) ) $tuseraktion.=' *** '; echo "\n \n \n \n "; } else { $secret_user.= $stats_username.", "; $anzahl_sec_user++; } } } # Temp !!! $me_showonlineinfo = "0"; # nicht temp - soll so sein! :) if( $me_showonlineinfo == "0" ) { echo "
UserAktionUhrzeit
$stats_username$tuseraktion".$tuserzeit."

"; # nur ein php-test - kann bedenkenlos gelöscht werden! :) # $txt="[red]Noch[b] sdsd[/b] dieses[/red] [b]ist [/red]sehr fett[/b] oder [b]etwa nicht?"; # $txt = preg_replace("#\[b\](.+?)\[/b\]#is", "\\1", $txt); # $txt = preg_replace("#\[red\](.+?)\[/red\]#is", "\\1", $txt); # $txt=RemoveCrap($txt); # echo $txt; # echo "weiter?"; if( strlen ($secret_user) > 0 ) echo "
Davon folgende Person(en) in Geheimer Mission: ".substr($secret_user, 0, strrpos($secret_user, ", ")); else echo "
"; if($anzahl_guests == 1 && $anzahl_sec_user > 0){ echo " und dann gibts noch einen  Gast"; }// end if elseif($anzahl_guests == 1 && $anzahl_sec_user < 1){ echo "1 Gast"; }// end elseif elseif($anzahl_guests > 1 && $anzahl_sec_user > 0){ echo " und dann gibts noch $anzahl_guests Gäste"; }// end elseif elseif($anzahl_guests > 1 && $anzahl_sec_user < 1){ echo "$anzahl_guests Gäste"; }// end elseif # invisible user erstmal doch nicht ausweisen... :) if( ( $anzahl_guests != 0 || $anzahl_sec_user != 0 ) && $anzahl_inv_user > 0) { if( $anzahl_inv_user == 1 ) echo ' und dazu kommt noch '; else echo ' und dazu kommen noch '; } if( $anzahl_inv_user > 0) { if( $anzahl_inv_user == 1 ) echo "ein Geist"; else echo "$anzahl_inv_user Geister"; } echo ("

"); } else { $nCounter=1; while ($ipadr = mysql_fetch_row($anzahl_guests_query)) { $aktaktion = mysql_query("select onlineanzeige,zeit from apb".$n."_useronline where ip = \"$ipadr[0]\" 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=$tmpAktion; $tuserzeit=HackTime($aktaktion[zeit]); } else { $tuseraktion="(Aktion nicht ermittelbar)"; $tuserzeit=HackTime($aktaktion[zeit]); } echo "
Gast#$nCounter".$tuseraktion."".$tuserzeit."
"; } ?>

0 ) { ?>
"; echo "
"; echo "\"\""; echo ""; if( $anzahl_geb_user == 1) echo "
Geburtstag
Dieses Mitglied hat heute Geburtstag, wir gratulieren!

"; else echo "
Geburtstage
Diese Mitglieder haben heute Geburtstag, wir gratulieren!

"; echo "
"; echo "\"\""; echo "
"; echo ""; echo "\n "; echo "
"; $names_online = ""; while ($nickname = mysql_fetch_row($geb_user)) { $age_string=""; $bday_day = substr( $nickname[1], 8, 2); $bday_month = substr( $nickname[1], 5, 2); $bday_year = substr( $nickname[1], 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.= '.????'; 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 > 4 && $age < 100 ) $age_string=" ($age)"; } } $gebuser_txt = GetUsername($nickname[0],$BoardID,$me_showtooltips); $names_online = $names_online."$gebuser_txt"; $names_online.= "$age_string, "; }// end while echo substr($names_online, 0, strrpos($names_online, ", ")); # echo("$anzahl_geb_user".$nickname[0].""); echo "

"; ?>

"; echo ""; #echo ""; echo ""; echo ""; echo ""; if( $me_dbshowstatsviews == "1") 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"]; $boardpassword = $thread_t["boardpassword"]; $threadpollid = $thread_t["pollid"]; $threadontop = $thread_t["ontop"]; $threadname = RemoveCrop($threadname); # debuging... # echo $boardparentid." / ".$boardpassword." / ".$me_userid." / ".$me_uservoteaverage." / ".$guestaccount."
"; $ignore_thread=0; if( strstr( $str_ignore_thread, '['.$threadid.']' ) != false ) $ignore_thread=1; if( $ignore_thread == 0 && CheckBoardProtection( $boardparentid,$boardpassword,$me_userid,$me_uservoteaverage,$guestaccount) == 1) # begin (1) { $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
"; # ---- tooltip - message - begin - # letztes Posting - aktuelles - ermitteln... ( wegen message Tooltip! ) $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 - 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
"; } $replyoption=""; if ($threadflags != "1") $replyoption=" "; $newEntry = GetThreadIcons( $threadreplies,$threadviews,$me_threadslastvisit,$threadlastreply,$threadflags,$threadpollid,$threadontop); $setnewpost=""; if( $guestaccount == 0 ) { $newpost_t = mysql_query ("SELECT postid FROM apb".$n."_posts where threadparentid=$threadid and posttime >= $me_threadslastvisit order by posttime limit 0,1"); if( ($newpost_t = mysql_fetch_array ($newpost_t)) ) { $tooltipstring=""; if( $me_showtooltips == "1" ) $tooltipstring="title=\"$aktpostmsgtooltip\""; $setnewpost="\"\" "; } } $pages = ceil(($threadreplies+1) / $posts_per_page); if ($pages > 1) { $pages_string = "$setnewpost 0 ) { $pages_string ="$setnewpost "; # Alle Posts mit einem Mausklick anzeigen... # if( $threadreplies < 150 ) # $allposts=" [ 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; } if ( $me_overviewjustnew == 0 || ( $me_overviewjustnew == 1 && $setnewpost !="" )) # overview-just the new { # 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 ""; else echo ""; if ($threadflags == "1") $threadtopicicon_temp="$php_path/themes/closed.gif"; else $threadtopicicon_temp=$threadtopicicon; echo "\n"; $tooltipstring=""; if( $me_showtooltips == "1" ) $tooltipstring="title=\"$threadinfotxt\""; echo ""; echo ""; if( $me_dbshowstatsviews == "1") echo ""; echo ""; if( $me_dbshowstatsrating == "1") echo ""; if( strlen($sBoardName) > 22) $sBoardNameText=substr($sBoardName,0,22).">"; else $sBoardNameText=$sBoardName; echo ""; echo ""; echo "\n"; $show_message=0; if( $guestaccount == 0 ) { if( $overview=="full") $show_message=1; if( $overview=="new" && strlen( $setnewpost) > 0) $show_message=1; } if( $show_message == 1 ) { echo ""; } # if fullinfo } // overview-just the new # Nur ein Test... :) $stati2++; } # end (1) if( $nMaxThreads > 0 and $stati2 > $nMaxThreads ) break; } # end (2) echo "
"; echo "
$ueberschrift
"; if( strlen($me_statsboards)>0 ) echo "
*** Du hast einen Board-Filter in Deinem [ Profil ] gesetzt! ***
"; if( $guestaccount == 0 ) echo "

"; echo ""; echo "
 StatusThemaAntwortenViewserstellt vonBewertungBoardletzter Beitrag
\n\n$pages_string$lastposting_temp\" $tooltipstring >".$sTopicUmfrage.$threadname." $allposts$pollflag$str_bookmarked_thread    \n
\n\n$allreplies\n
\n\n$threadviews\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
"; echo "
"; $thiscolor = $tableA; echo "
"; $user_info = GetUserInfo($aktpostauthor); $user_info = mysql_fetch_array($user_info); print_mb ( "" . HackDate($aktposttime)."
", $font , "1"); if ($icq_thread == "1") { if ($user_info[usericq]=="" || $user_info[usericq]==" " || $user_info[usericq]=="[N/A]") { echo ""; } else { echo "
\"\" "; } } else { echo ""; } print_mb( GetUsername($aktpostauthor,$BoardID,"1")."
", $font , "2"); # print_userstatus( $font, $fontcolorsec, $pic_thread, $user_info, $me_showavatar, $me_dbshowuserrating,$me_shownopointsrangs); print_userstatus( $font, $fontcolorsec, $pic_thread, $user_info, 0, 0,$me_shownopointsrangs ); echo "

"; $message=$aktpostmsg; $sUmfrageZusatz=""; $message = BuildMessage( $message, $sUmfrageZusatz, $user_info[signatur],$aktpostdisablesmilies, $me_showsignatures,$me_nosmilies,$me_userid,$aktpostID,$threadflags ); print_mb ( $message . "
", $font, "2" ); echo "
"; #------------- echo "
"; echo "
"; echo ""; echo "
Erläuterung der Symbole:
"; echo "
"; echo ""; echo "\"\" - normaler Forum-Beitrag
"; echo "\"\" - mehr als $hotreplys Antworten oder mehr als ".$hotviews."x betrachtet
"; echo "\"\" - neuer Beitrag
"; echo "\"\" - neuer Beitrag in einem Thema mit mehr als $hotreplys Antworten, oder mehr als ".$hotviews."x betrachtet
"; echo "\"\" - auf den ersten Beitrag seit dem letzten Besuch springen
"; echo "\"\" - neues Thema in dem Forum erstellen oder antworten
"; echo "\"\" - Top Thema
"; echo "\"\" - Umfrage
"; echo "
"; ?>

"; echo "
Diverse

"; $memberresult = mysql_query ("SELECT username FROM apb".$n."_user_table ORDER BY regdate DESC LIMIT 0,1"); $newestm = mysql_fetch_array ($memberresult); echo "Neuestes Mitglied:   $newestm[0] (Userinfo)
"; echo "Insgesamt registrierte Mitglieder:   ".$user_gesamt." (Liste)
"; $threads_result = mysql_query("SELECT COUNT(*) FROM apb".$n."_threads"); $threads_gesamt = mysql_fetch_array($threads_result); $allthreads = $threads_gesamt[0]; $posts_result = mysql_query("SELECT COUNT(*) FROM apb".$n."_posts"); $posts_gesamt = mysql_fetch_array($posts_result); $allposts = $posts_gesamt[0]; echo "Insgesamt bisherige Threads:   ".$allthreads."
"; echo "Insgesamt bisherige Posts:   ".$allposts."
"; $statistik2 = mysql_query("SELECT mostusers_count,mostusers_date,mostposts_count,mostposts_date,mostposts_lastupdate,mostthreads_count,mostthreads_date,mostthreads_lastupdate FROM apb".$n."_statistik2"); $statistik2 = mysql_fetch_array ($statistik2); $sUserstr="User"; if( $geheimbund_spezial==1) $sUserstr="Geheimbündler"; $aktivstring="Die meisten $sUserstr online: $statistik2[mostusers_count] (".HackDateX($statistik2[mostusers_date]).")"; echo $aktivstring."
"; $aktivstring="Die meisten Beiträge: $statistik2[mostposts_count] (".HackDate2($statistik2[mostposts_date]).")"; echo $aktivstring."
"; $aktivstring="Die meisten Threads: $statistik2[mostthreads_count] (".HackDate2($statistik2[mostthreads_date]).")"; echo $aktivstring."
"; $installdate_format = HackDate($installdate); $timediff = $now - $installdate; // Sek. vom Zeitpunkt der Installation, bis heute $postperday = ($allposts) / ((($timediff / 60) / 60) / 24); $postperhour = ($allposts) / (($timediff / 60) / 60); $postperday = round($postperday); $postperhour = round($postperhour); echo "Postings/Tag:   ".$postperday."  (seit ".$installdate_format.")
"; echo "Postings/Std.:   ".$postperhour."  (seit ".$installdate_format.")
"; ?>
$jetzt"); #if( mysql_fetch_array($funstuff) == FALSE) # $funstuff=mysql_query("update apb".$n."_threads set flags=1 where threadid=8943"); # endfunstuff # babelfish suxx - ( sometimes ) # mysql_query("update apb1_posts set message='.' where authorname = 'Babelfish'"); if( $statistic_on ) { $oday = mysql_fetch_row(mysql_db_query ($mysqldb,"SELECT time FROM apb".$n."_statistik ORDER BY time DESC LIMIT 1")); $oday = getdate($oday[0]); $day = getdate(time()+$zeitverschiebung); if (!$oday) $oday[yday] = $day[yday]; if ($oday[yday] != $day[yday]) { mysql_db_query($mysqldb,"DELETE FROM apb".$n."_statistik"); } mysql_db_query ($mysqldb,"INSERT INTO apb".$n."_statistik VALUES('','".time()+$zeitverschiebung."','$REMOTE_ADDR','$PHP_SELF','$HTTP_USER_AGENT','$REMOTE_HOST');"); } require "_forumjump.php"; require "userreg.php"; require "_footer.inc"; ?>