require_once("register_globals.php"); if (!isset($id)) exit ; if (!file_exists($id . "/config.php3")) exit; if (!file_exists($id . "/dgruppen.php3")) exit; require("refchk.php3"); require("modconf.php3"); require($id . "/config.php3"); require($id . "/dgruppen.php3"); if (!isset($dgruppe["$dgid"])) exit; if ($pid == 0) { $titel = ""; $text = ""; $fullname = ""; $thread_id = 0; } else { mysql_connect($sql_host, $sql_usr, $sql_pw); $query = "SELECT name, titel, text, thread_id FROM $table WHERE id=$pid"; $result = mysql_db_query($db, $query); $titel = mysql_result($result, 0, "titel"); $text = mysql_result($result, 0, "text"); $fullname = ""; $replyto = mysql_result($result, 0, "name"); $thread_id = mysql_result($result, 0, "thread_id"); if (strtoupper(substr($titel, 0, 3)) != "RE:") $titel = "re: " . $titel; $arr_text = explode("\n", $text); $text = ">-- letzter Eintrag von: $replyto --\n"; $text .= ">" . implode(">" , $arr_text); } ?>