X-Git-Url: https://git.treefish.org/banana.git/blobdiff_plain/3f75cb10d008938dca476577d6256765093d1932..17d5ad30f747658451fae84fe65cb1f5b66d377c:/register.php diff --git a/register.php b/register.php index 0a844ac..13e2aab 100644 --- a/register.php +++ b/register.php @@ -1,5 +1,6 @@ "; // send password-email // - $lec_lines = file('var/lecture.txt'); - foreach ($lec_lines as $line_num => $line) { - $lecture[$line_num] = $line; - } - $nachricht = "Hello $firstname($mnumber)!\nYou registered for " . trim($lecture[0]) . " " . trim($lecture[1]) . ".\nRemember your password: $password\n\nYours,\nBanana."; - //$nachricht = wordwrap($nachricht,70); + $nachricht = "Hello $firstname($mnumber)!\nYou registered for " . $PREFS['exname'] . " (" . $PREFS['groupname'] . ").\nRemember your password: $password\n\nYours,\nBanana."; $empfaenger = 'niemand@example.com'; $betreff = 'Der Betreff'; $header = 'From: banana@treefish.org' . "\r\n" . 'Reply-To: noreply@treefish.org' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); - mail($email, "Banana Registration: " . trim($lecture[0]) . " " . trim($lecture[1]), $nachricht, $header); + mail($email, "Banana Registration: " . $PREFS['exname'] . " (" . $PREFS['groupname'] . ")", $nachricht, $header); break; }