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! } $board_info = GetBoardInfo($thread_info[boardparentid]); $board_info = mysql_fetch_array($board_info); if (!$board_info) { # echo mysql_error(); include "_header.inc"; apb_error($board_existiert_nicht,FALSE); } if ($board_info[deactivated] == "1") { include "_header.inc"; apb_error("Dieses Board ist deaktiviert. Das bedeutet, es können keine neuen Beiträge oder Themen erstellt werden.",FALSE); } # 21.09.2003 if( $quote > 0 ) $sCommand="select authorname from apb".$n."_posts where postid=$quote"; else $sCommand="select authorname from apb".$n."_posts where threadparentid=$replyto order by posttime desc"; /* # ist irgendwie suboptimal... $lastpostusername = mysql_query($sCommand); $lastpostusername = mysql_fetch_array($lastpostusername); $user_info_last = GetUserInfo($lastpostusername[authorname]); $user_info_last = mysql_fetch_array($user_info_last); $user_ignoreuserpostlist=$user_info_last[ignoreuserposts]; # wichtig // hier - quickmessage-user! -sonst ignoreuserposts # echo "




".$user_info_last[username],$user_ignoreuserpostlist, $lastpostusername[authorname]; if( strlen ( $user_ignoreuserpostlist ) > 0 && strstr( $user_ignoreuserpostlist, '#'.$me_userid.'#' ) ) { include "_header.inc"; apb_error("Der Benutzer $lastpostusername[authorname] hat Dich auf seiner Liste der zu ignorierenden Personen. Du kannst nicht direkt auf seinen Beitrag antworten. ",FALSE); } # 21.09.2003 */ # 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]
"; $htitle = " - Antworten"; $result = mysql_query("SELECT showlastentry, dbshowuserrating FROM apb".$n."_user_table WHERE userid='$UserInformation[uid]';"); $userdat = mysql_fetch_array($result); echo mysql_error(); if( $userdat ) { $showlastentry=$userdat[showlastentry]; $dbshowuserrating=$userdat[dbshowuserrating]; } else { $showlastentry=0; $dbshowuserrating=0; } $pages = ceil(($thread_info[replies]+2) / $posts_per_page); $start_string = ( $pages > 1) ? "&start=".((($pages - 1) * $posts_per_page) + 1) : ""; if($showlastentry == "0" ) $lastposting = ""; else if($showlastentry == "2" ) $lastposting = "#TOP"; else $lastposting = "#LASTPOSTING"; $hstring .= "      $thread_info[threadname]
"; $hstring .= "        $antwort_erstellen"; # header nicht mehr hier, da header auch den referer beinhaltet... :( - also immer dort wo zum ersten mal text ausgegeben wird bzw. werden kann # rxequire "_header.inc"; require "getimagesize.php"; define("USER_PIC_MAX_WIDTH", $userpicwidth) ; define("USER_PIC_MAX_HEIGHT", $userpicheight) ; if ($thread_info[flags]=="1") { include "_header.inc"; apb_error($error_thread_closed,FALSE); } if (!$logged) { include "_header.inc"; apb_error($nur_reg_benutzer1."".$nur_reg_benutzer2."".$nur_reg_benutzer3."".$nur_reg_benutzer2."".$nur_reg_benutzer4,FALSE); } $apb_useronline_threadname = htmlspecialchars($thread_info[threadname]); $apb_useronline_string = "threadid=$replyto&boardid=$board_info[boardid]&page_string=$pages_string [##reply!##]$uo_reply: [##replacement1##]\">$apb_useronline_threadname im ".htmlspecialchars($board_info[boardname]).""; #if ($board_info[boardpassword] != "") #{ # $apb_useronline_string = "Antwortet im geschützten Bereich"; # $apb_useronline_threadname = "Antwortet im geschützten Bereich"; #} #else if ($postit) { # alte werte aus der eingabemaske merken... if( $answer_preview == 1 ) { $old_message=stripslashes($message); $old_signature=$signature; $old_do_disable_smilies=$do_disable_smilies; $old_email=$email; $old_offtopic=$offtopic; } # und dann weiter... if (!$replyto) { include "_header.inc"; apb_error($kein_thema_angegeben,FALSE); } if (!$message) { include "_header.inc"; apb_error($nix_geschrieben,FALSE); } if( $thread_info[threadid_new] > 0 ) { include "_header.inc"; apb_error("Verschobener Thread - Antwort nur im Original möglich! :)",FALSE); } # # Brain Slayer 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=$replyto&boardid=$board_info[boardid]&page_string=$pages_string [##reply!##]$uo_reply_past: [##replacement1##]\">$apb_useronline_threadname im ".htmlspecialchars($board_info[boardname]).""; # Ende # if ($board_info[boardpassword] != "") # $apb_useronline_string = "Antwortet im geschützten Bereich"; # Neu, damit nicht gigantische Messages gepostet werden... if(strlen($message) > 64000 ) { include "_header.inc"; apb_error("Dein Beitrag ist etwas zu gross geraten. (>64kb)" ,FALSE); } if( apb_substr_count($message,"[quickvote]") > 1 ) { include "_header.inc"; apb_error($quickvote_anz_error ,FALSE); } UserAuth($UID,$UPASS,TRUE); $last_reply = time(); $me_userinfo = mysql_query("SELECT username,statusextra,userposts,signatur,useremail,nosmilies,showavatar,dbshowuserrating FROM apb".$n."_user_table WHERE userid='$UID';"); $me_userinfo = mysql_fetch_array($me_userinfo); $author = $me_userinfo[username]; $extra = $me_userinfo[statusextra]; $rank = GetRank($me_userinfo[userposts]); $signatur = $me_userinfo[signatur]; $useremail= $me_userinfo[useremail]; $me_nosmilies= $me_userinfo[nosmilies]; $showavatar= $me_userinfo[showavatar]; $dbshowuserrating=$me_userinfo[dbshowuserrating]; $lastuserpost = mysql_query ("SELECT * FROM apb".$n."_posts WHERE authorname = '$author' ORDER BY posttime DESC LIMIT 0,1"); $lastuserpost = mysql_fetch_array($lastuserpost); $lastuserpost = $lastuserpost["posttime"]; if ($min_post_inverval > 0 && ($lastuserpost > (time() - $min_post_inverval))) { include "_header.inc"; apb_error($post_intervall_zu_klein, FALSE); } $pages = ceil(($thread_info[replies]+2) / $posts_per_page); $start_string = ( $pages > 1) ? "&start=".((($pages - 1) * $posts_per_page) + 1) : ""; if($showlastentry == "0" ) $lastposting = ""; else if($showlastentry == "2" ) $lastposting = "#TOP"; else $lastposting = "#LASTPOSTING"; if ($signature=="1" && strlen($signatur) > 2) { # $message = $message.$signatur_trennstrich.$signatur; # 20.07.2001 $message = $message.$signatur_header; } else { //$message = $message; } if ($do_disable_smilies != "1") { $do_disable_smilies = "0"; } if ($offtopic != "1") { $offtopic = "0"; } $message = apb_wordwrap($message); $message1 = RemovePostCrap($message); $lastuserpost = mysql_query ("SELECT postid,message,authorname,posttime,email FROM apb".$n."_posts WHERE threadparentid='$replyto' ORDER BY posttime DESC LIMIT 0,1"); $lastuserpost = mysql_fetch_array($lastuserpost); $qm_lastpostid=-1; # Neu, stellt das System so ein, daß DU quickmessages - also bei einer antwort - bekommst! :) $user_email_text=""; if( $email == "1" ) $user_email_text=$UID; # UserID Eintragen! if( ! CheckBoardProtection( $thread_info[boardparentid],$board_info[boardpassword],$me_userid,$me_uservoteaverage,$guestaccount) == 1) { include "_header.inc"; apb_error("Du hast keine Zugangsberechtigung zu dem Forum, und somit ist es Dir untersagt zu antworten!" ,FALSE); } if( $lastuserpost && ( $lastuserpost["authorname"] == $author ) && ($default_autoappend==1) ) // keine Postings auf eigene Antworten... ;) { $oldmessage=$lastuserpost["message"]; $oldmessage = RemovePostCrap($oldmessage); $lastpostid=$lastuserpost["postid"]; $lastpostdate=$lastuserpost["posttime"]; if($oldmessage != $message1 ) { $oldmessage=RemoveSignature($oldmessage); # $message1 = $oldmessage."\n\n-----------------------------------------------------------\nErgänzt am ".HackDateX($now).":\n\n".$message1; if( ! strstr( $oldmessage, "[f1][b]ERGÄNZT AM " ) ) $oldmessage="[f1][b]ORIGINAL VOM ".strtoupper(HackDateX($lastpostdate)).":[/b][/f1][br][whiteline]\n".$oldmessage; $message1 = $oldmessage."\n\n[f1][b]ERGÄNZT AM ".strtoupper(HackDateX($now)).":[/b][/f1][br][whiteline]\n\n".$message1; # egal ob preview oder nicht... in jedemfall die tabelle aufräumen! ;) # evtl. alten preview beitrag löschen... mysql_query("delete from apb".$n."_posts_preview where userid ='$me_userid'"); echo mysql_error(); if($answer_preview == 0) { mysql_query("UPDATE apb".$n."_posts SET email='$user_email_text',posttime='$last_reply', message='$message1', disable_smilies='$do_disable_smilies',offtopic='$offtopic' where postid='$lastpostid'"); # threadparentid postid authorname authorrank posttime message; mysql_query("UPDATE apb".$n."_threads SET timelastreply='$last_reply' WHERE threadid='$replyto'"); mysql_query("UPDATE apb".$n."_boards SET lastmodified='$last_reply' WHERE boardid='$board_info[boardid]'"); CalculateThreadReplies($replyto); } else { # preview table füllen... mysql_query("INSERT INTO apb".$n."_posts_preview VALUES('$me_userid','$author', '$rank', '$last_reply', '$message1', '$user_email_text', '$do_disable_smilies','$offtopic');"); echo mysql_error(); } $qm_lastpostid=$lastpostid; } } else { # egal ob preview oder nicht... in jedemfall die tabelle aufräumen! ;) # evtl. alten preview beitrag löschen... mysql_query("delete from apb".$n."_posts_preview where userid ='$me_userid'"); echo mysql_error(); if($answer_preview == 0) { mysql_query("INSERT INTO apb".$n."_posts VALUES( '$replyto', '', '$author', '$rank', '$last_reply', '$message1', '$user_email_text', '$do_disable_smilies', '$REMOTE_ADDR','','0','0','$offtopic');"); $qm_lastpostid=mysql_insert_id(); mysql_query("UPDATE apb".$n."_threads SET replies=replies+1,timelastreply='$last_reply' WHERE threadid='$replyto'"); mysql_query("UPDATE apb".$n."_boards SET totalposts=totalposts+1,lastmodified='$last_reply' WHERE boardid='$board_info[boardid]'"); mysql_query("UPDATE apb".$n."_user_table SET userposts=userposts+1 WHERE userid='$UID'"); CalculateThreadReplies($replyto); } else { mysql_query("INSERT INTO apb".$n."_posts_preview VALUES('$me_userid','$author', '$rank', '$last_reply', '$message1', '$user_email_text', '$do_disable_smilies','$offtopic');"); echo mysql_error(); } } if($answer_preview == 0) # if answer_preview { $referer = "$php_path/thread.php?id=$replyto&BoardID=$BoardID$start_string$lastposting"; $refer_time = 1; include "_header.inc"; echo ""; echo ""; echo "
"; print_mb ( $antwort_eingefuegt, $font, "2" ); echo "

"; // $sUmfrageZusatz=""; /* $message1 = BuildMessage( $message1, $sUmfrageZusatz, $signatur,$do_disable_smilies, $me_showsignatures,$me_nosmilies,$me_userid,$aktpostID,$threadflags ); */ $message1 = rtrim ($message1); # Die eventuellen Blank am Ende der Message rausrechnen... $message1 = stripslashes($message1); # Anführungszeichen-Problem beheben # Neu, abschaltbare ... und vor allem globale Signatur # (c) by Brain Slayer $nSigHeadLen=strlen( $signatur_header ); # Signatur-Header-Len if( substr($message1, ( $nSigHeadLen * -1) ) == $signatur_header ) { $message1= substr( $message1, 0, ( strlen($message1) - $nSigHeadLen) ); $message1.=$signatur_trennstrich.$signatur; } print_mb ( RemoveCrap($message1, $do_disable_smilies | $me_nosmilies), $font, "2" ); echo "

"; print_mb ( "[ - ".$zurueck_zum_thema." - ]", $font, "2" ); echo "
"; if ($thread_info[email]!="" && $thread_info[email]!="0" && $UID !=$thread_info[email] ) { $userinfo_email = mysql_query("SELECT username FROM apb".$n."_user_table WHERE userid='$thread_info[email]';"); $userinfo_email = mysql_fetch_array($userinfo_email); $quickmessage="Du hast eine Antwort im Thread: Thema: [url=$php_path/thread.php?id=$replyto&BoardID=$BoardID$start_string$lastposting]$thread_info[threadname][/url] Board: [url=$php_path/board.php?id=$board_info[boardid]]$board_info[boardname][/url] Beitrag: [url=$php_path/useraction.php?action=direct_goto_post&postid=$qm_lastpostid]Direkter Link[/url] Von: [url=$php_path/user.php?username=yes&id=$me_userinfo[username]&BoardID=$BoardID]$me_userinfo[username][/url]"; $result2 = mysql_query("insert into apb".$n."_qmsg (Von, Fuer, Text, Zeit, Gelesen, Besitzer, IP) values ('$qm_system_account','$userinfo_email[username]','$quickmessage','$last_reply','0','$userinfo_email[username]','SYSTEM-IP')"); } else if( $lastuserpost[email]!="" && $lastuserpost[email] !="0" && $lastuserpost[email]!=$UID) { $userinfo_email = mysql_query("SELECT username FROM apb".$n."_user_table WHERE userid='$lastuserpost[email]';"); $userinfo_email = mysql_fetch_array($userinfo_email); $quickmessage="Du hast eine Antwort auf Dein Posting im Thread: Thema: [url=$php_path/thread.php?id=$replyto&BoardID=$BoardID$start_string$lastposting]$thread_info[threadname][/url] Board: [url=$php_path/board.php?id=$board_info[boardid]]$board_info[boardname][/url] Beitrag: [url=$php_path/useraction.php?action=direct_goto_post&postid=$qm_lastpostid]Direkter Link[/url] Von: [url=$php_path/user.php?username=yes&id=$me_userinfo[username]&BoardID=$BoardID]$me_userinfo[username][/url]"; $result2 = mysql_query("insert into apb".$n."_qmsg (Von, Fuer, Text, Zeit, Gelesen, Besitzer, IP) values ('$qm_system_account','$userinfo_email[username]','$quickmessage','$last_reply','0','$userinfo_email[username]','SYSTEM-IP')"); } include "_footer.inc"; exit; } # end if answer_preview } include "_header.inc"; # hier erst... $password_part2_filename = "reply.php"; #<< dateinamen! 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... { # Brain Slayer 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=$replyto&boardid=$board_info[boardid]&page_string=$pages_string [##reply!##]$uo_reply: [##replacement1##]\">$apb_useronline_threadname im ".htmlspecialchars($board_info[boardname]).""; # if ($board_info[boardpassword] != "") # $apb_useronline_string = "Antwortet im geschützten Bereich"; # echo ("BOARDINFO
$board_info[password]
"); #Brain Slayer 21.07.2001 - Smilies abschalten - global - ;-) $me_userinfo = mysql_query("SELECT nosmilies FROM apb".$n."_user_table WHERE userid='$UID';"); $me_userinfo = mysql_fetch_array($me_userinfo); $me_nosmilies= $me_userinfo[nosmilies]; # ---------------- NEW, FUCK ----------------! echo " "; # Überschrift.... echo "
"; print_mb ($antwort_erstellen, $font, "4" ); print_mb ($im_forum . $board_info[boardname], $font, "2" ); echo "
"; if($answer_preview == 1) { # begin anwser preview $posts = mysql_query("SELECT authorname,authorrank,posttime,message,disable_smilies,offtopic FROM apb".$n."_posts_preview WHERE userid='$me_userid'"); ?>

"; } 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 ( "

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

"; print_mb ( "" . HackDate($thismessage[posttime])."
", $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($thismessage[authorname],$BoardID,"1")."
", $font , "2"); print_userstatus( $font, $fontcolorsec, $pic_thread, $user_info, $me_showavatar, $me_dbshowuserrating,$me_shownopointsrangs); echo "
"; $sUmfrageZusatz=""; $message=$thismessage[message]; $message = BuildMessage( $message, $sUmfrageZusatz, $user_info[signatur],$thismessage[disable_smilies], $me_showsignatures,$me_nosmilies,$me_userid,$thismessage[postid],0 ); print_mb ( $message . "
", $font, "2" ); echo ""; echo ""; echo ""; print_mb ( "Registriert seit: ".HackDate2($user_info[regdate]), $font , "1"); echo ""; echo(""); echo ''; # Tabelle #1 ( internal split-table! ) echo '
'; 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 ' '; echo "
"; # Tabelle #1 ( internal split-table! ) close ! ;) echo ""; $post_count++; } # ende answer preview } if ($quote) { $quotemessage = mysql_query("SELECT message, authorname FROM apb".$n."_posts WHERE postid=$quote"); echo mysql_error(); $quotemessage = mysql_fetch_array($quotemessage); echo mysql_error(); $posts = mysql_query("SELECT postid,authorname,authorrank,posttime,message,disable_smilies,offtopic FROM apb".$n."_posts WHERE postid='$quote'"); } else { $posts = GetPostsDesc($thread_info[threadid], $answer_number_of_last_postings); } ?>

"; } 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"); ?>

"; # TESTING - BEGIN! ?>
Klick'n'paste", $font, "1"); ?>

Kurzhilfe: [ Alle Smilies... ] - [ Mehr Textformate... ]

[b]fett[/b] - [i]kursiv[/i] - [center]zentriert[/center] - [[]ubb-tags[]]
[f1]klein[/f1] - [f2]normal[/f2] - [f3]groß[/f3] - [f4]größer[/f4] - [f5]riesig[/f5]

", $font, "1"); ?>
', '_blank')">
>   
>   
>   
>   

"; } 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; if( $answer_number_of_last_postings > 1) $mom_silly_text="Die letzten $answer_number_of_last_postings Beiträge ( absteigend sortiert):
"; else $mom_silly_text="Der letzte Beitrag:
"; print_mb ( "

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

"; print_mb ( "" . HackDate($thismessage[posttime])."
", $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($thismessage[authorname],$BoardID,"1")."
", $font , "2"); 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],0 ); print_mb ( $message . "
", $font, "2" ); echo ""; echo ""; echo ""; print_mb ( "Registriert seit: ".HackDate2($user_info[regdate]), $font , "1"); echo ""; echo(""); echo ''; # Tabelle #1 ( internal split-table! ) echo '
'; 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 ' '; echo "
"; # Tabelle #1 ( internal split-table! ) close ! ;) echo ""; $post_count++; } # hier würde evtl. preview kommen ... oder auch nicht ... ;) # :) } 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()); 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()."','$REMOTE_ADDR','$PHP_SELF','$HTTP_USER_AGENT','$REMOTE_HOST');"); } require "_forumjump.php"; require "userreg.php"; require "_footer.inc"; ?>