diff --git a/components/signup.php b/components/signup.php index 70932364a1037774dddf6176da05239b543e9a8c..181376cfe9da55001fd389300e8b95751da1ce45 100644 --- a/components/signup.php +++ b/components/signup.php @@ -137,7 +137,7 @@ if(isset($_REQUEST['signupid'])&&isset($_REQUEST['signuppw'])){ ); $failed=true; } - else{ + else{ // determine the uid range if($row[type]==2){ $baseuid=8; @@ -166,7 +166,6 @@ if(isset($_REQUEST['signupid'])&&isset($_REQUEST['signuppw'])){ ); if($execreturn!=0){ $execoutputstr=implode("\n",$execoutputarr); - mail( $error_email, "Error creating user for signup id: ".$signupid, @@ -216,9 +215,7 @@ if(isset($_REQUEST['signupid'])&&isset($_REQUEST['signuppw'])){ else{ $query .= ", DEFAULT"; } - $query .= ");"; - unset($atribs); $atribs[]=$uid; $atribs[]=$fields['username']; @@ -238,7 +235,6 @@ if(isset($_REQUEST['signupid'])&&isset($_REQUEST['signuppw'])){ if($row[type]==2){ $atribs[]="Contact name: ".$fields['contact']; } - $responce = $sucsDB->Execute($query,$atribs); // if somthing broke then email if(!$responce){ @@ -266,7 +262,7 @@ if(isset($_REQUEST['signupid'])&&isset($_REQUEST['signuppw'])){ "From: \"SUCS Admin\" <admin@sucs.org>" ); } - } + } $logsmessage = "New user '".$fields['username']."' has been created on SUCS\n"; $logsmessage .= "at: ".date("H:i ",time())." on ".date("l F jS Y", time())."\n"; @@ -295,7 +291,7 @@ if(isset($_REQUEST['signupid'])&&isset($_REQUEST['signuppw'])){ $usermessage .= "Username: ".$fields['username']."\n"; $usermessage .= "Password: ".$password."\n\n"; $usermessage .= "Wondering what to do next? Check out our Getting Started page: http://sucs.org/Getting%20Started or go right ahead and post on our forum at http://sucs.org/Community/Forum or join in the discussion on our chat system, Milliways: http://sucs.org/Community/Milliways\n\n"; - $usermessage .= "Our weekly social is held in the coffee end JC's at 1:00 PM every Friday\n\n"; + $usermessage .= "Our weekly social is held in the coffee end JC's at 1:00 PM every Wednesday\n\n"; $usermessage .= "Before you use the SUCS computers or the computer room, please make sure you are familiar with the conditions of use and room rules at http://sucs.org/About/Regulations\n\n"; $usermessage .= "If you require help using the system, introductory guides are available at http://sucs.org/Knowledge\n\n"; $usermessage .= "If you have any trouble using the system, reply to this e-mail describing the nature of the problem and we'll look into it.\n\n";