From fbcbb1234117b62a279431dbc6867694f2a57b87 Mon Sep 17 00:00:00 2001 From: cookie Date: Tue, 10 Nov 2009 22:05:37 +0000 Subject: makeuser.php: get type of angel from DB, add subscribe the mailing list function git-svn-id: svn://svn.cccv.de/engel-system@341 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/makeuser.php | 51 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 21 deletions(-) (limited to 'www-ssl') diff --git a/www-ssl/makeuser.php b/www-ssl/makeuser.php index 347403de..b0dd8467 100755 --- a/www-ssl/makeuser.php +++ b/www-ssl/makeuser.php @@ -94,13 +94,20 @@ if( isset($_POST["send"])) } echo Get_Text("makeuser_writeOK4"). "

\n

\n"; $success="any"; + + if ( isset($SubscribeMailinglist) ) + { + if ( $_POST["subscribe-mailinglist"] == "") + { + $headers = "From: ". $_POST["email"]. "\r\n" . + "X-Mailer: PHP/" . phpversion(); + mail( $SubscribeMailinglist, "subject", "message", $headers); + } + } } } - if( !isset($error) ){ - echo Get_Text("makeuser_text4"). "Login
\n"; - }else{ + if( isset($error) ){ echo "

\n$error\n

\n\n"; } } @@ -115,6 +122,7 @@ else $_POST["DECT"] = ""; $_POST["Handy"] = ""; $_POST["email"] = ""; + $_POST["subscribe-mailinglist"] = ""; $_POST["ICQ"] = ""; $_POST["jabber"] = ""; $_POST["Size"] = ""; @@ -122,6 +130,7 @@ else $_POST["kommentar"] = ""; $_POST["Hometown"] = ""; } + if( $success=="none" ){ echo "

".Get_Text("makeuser_text0")."

". "

". Get_Text("makeuser_text1"). "

"; echo "\t
\n"; @@ -143,6 +152,11 @@ echo "\t\t\t". Get_Text("makeuser_Handy"). "\n"; echo "\t\t\t". Get_Text("makeuser_E-Mail"). "*\n"; +if ( isset($SubscribeMailinglist) ) +{ + echo "\t\t\t". Get_Text("makeuser_subscribe-mailinglist"). + "($SubscribeMailinglist)\n"; +} echo "\t\t\tICQ\n"; echo "\t\t\tjabber\n"; echo "\t\t\t". Get_Text("makeuser_T-Shirt"). @@ -159,24 +173,18 @@ echo "\t\t\t\n"; echo "\t\t\t". Get_Text("makeuser_Engelart"). "\n"; echo "\t\t\t\n"; -echo "\t\t\t\n"; +echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\n"; echo "\t\t\t\t". Get_Text("makeuser_text2"). "\n"; @@ -194,6 +202,7 @@ echo "\t\t\n"; echo "\t
\n"; Print_Text("makeuser_text3"); } + include ("../includes/footer.php"); ?> -- cgit v1.2.3-54-g00ecf