Felix Gonschorek download the latest version: http://www.thwboard.de This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ============================================== New feature by dr.hdi/msp */ include "./inc/header.inc.php"; $searcharray = array("ä", "ö", "ü", "ß", "Ä", "Ö", "Ü"); $replacearray = array("ae", "oe", "ue", "ss", "Ae", "Oe", "Ue"); if ( ( !$thread['threadid'] ) OR ( $board['boarddisabled'] == 1 ) ) { message('Error', 'Thread existiert nicht'); } if ( $g_user['userid'] == 0 ) { message("Funktion für Gäste gesperrt", "Sie haben keine Berechtigung diese Funktion zu nutzen.

Bitte registrieren Sie sich

[ Registrierung ]"); } if ( ( isset($send) ) && ( $send ) ) { if ( !$receiver || !$email ) { message('Fehler', 'DU hast nicht alle Felder ausgefüllt!'); } if ( $email == $g_user['useremail'] ) { message('Fehler', 'DU kannst dir den Thread nicht selbst schicken!'); } $r_thread_h = thwb_query("SELECT threadtopic FROM ".$pref."thread WHERE threadid='".intval($thread['threadid'])."'"); $thread_h = mysql_fetch_array($r_thread_h); $thread_h['threadhackedtopic'] = str_replace($searcharray, $replacearray, $thread_h['threadtopic']); $thread_h['threadhackedtopic'] = preg_replace('/[^\w\d_-]+/', '-', $thread_h['threadhackedtopic']); $TRegmail = new Template("./templates/mail/sendto.mail"); $to = $email; /* not used - send as blind-copy if( $sendcopy ) { $to = $to . ', ' . $g_user[useremail]; } */ $text = ''; eval($TRegmail->GetTemplate("text")); $header = "From: $g_user[useremail]"; if( $sendcopy ) { $header = $header . "\n" . "bcc: $g_user[useremail]"; } @mail($to, "Interessanter Beitrag auf " . $config[board_name], $text, $header); $source = "lastpage-topic-$thread[threadid]-$thread_h[threadhackedtopic].html#bottom"; unset($send); message_redirect('Der Thread wurde versendet, bitte warten ...', $source); } $TFrame = new Template("templates/" . $style['styletemplate'] . "/frame.html"); $TSendto = new Template("templates/" . $style['styletemplate'] . "/sendto.html"); $navpath .= 'Thread versenden'; eval($TSendto->GetTemplate("CONTENT")); eval($TFrame->GetTemplate()); ?> ?>