Skip to content
Snippets Groups Projects
Commit c91dbef0 authored by Imran Hussain's avatar Imran Hussain
Browse files

Updated welcome email, should really be in its own text file tbh

parent 4be8eada
No related branches found
No related tags found
No related merge requests found
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment