about summary refs log tree commit diff stats
path: root/central/trunk/instadisc.php
diff options
context:
space:
mode:
Diffstat (limited to 'central/trunk/instadisc.php')
-rw-r--r--central/trunk/instadisc.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/central/trunk/instadisc.php b/central/trunk/instadisc.php index 34bf74e..a1d491a 100644 --- a/central/trunk/instadisc.php +++ b/central/trunk/instadisc.php
@@ -180,9 +180,9 @@ function instaDisc_sendActivationEmail($username, $password, $email)
180 $mail->AddAddress($email, $username); 180 $mail->AddAddress($email, $username);
181 $mail->Subject = 'InstaDisc Account Verification'; 181 $mail->Subject = 'InstaDisc Account Verification';
182 $mail->Body = "Hello, someone has recently registered an account at " . $_SERVER['HTTP_HOST'] . " with your email address. If that was you, and your chosen username IS " . $username . ", then copy the account verification code below to our Account Verification page, enter your username and press Activate!\r\n\r\n" . $penKey . "\r\n\r\nIf that was not you, copy the above code to our Account Verification page, enter the above username, and click Delete."; 182 $mail->Body = "Hello, someone has recently registered an account at " . $_SERVER['HTTP_HOST'] . " with your email address. If that was you, and your chosen username IS " . $username . ", then copy the account verification code below to our Account Verification page, enter your username and press Activate!\r\n\r\n" . $penKey . "\r\n\r\nIf that was not you, copy the above code to our Account Verification page, enter the above username, and click Delete.";
183
184 $mail->Send(); 183 $mail->Send();
185 return ($mail->IsError() ? $mail->ErrorInfo : true); //$mail->Send(); 184
185 return ($mail->IsError() ? $mail->ErrorInfo : true);
186} 186}
187 187
188function instaDisc_activateAccount($username, $penKey) 188function instaDisc_activateAccount($username, $penKey)
@@ -202,8 +202,9 @@ function instaDisc_activateAccount($username, $penKey)
202 $mail->AddAddress($getuser3['email'], $username); 202 $mail->AddAddress($getuser3['email'], $username);
203 $mail->Subject = 'Welcome to InstaDisc!'; 203 $mail->Subject = 'Welcome to InstaDisc!';
204 $mail->Body = "Welcome to InstaDisc! Thank you for registering at " . instaDisc_getConfig('siteName') . " Central Server, we hope you enjoy our service! Now, when you download an InstaDisc Client, it will ask you for the following information which you will need to enter into it for it to work:\r\n\r\nUsername: " . $username . "\r\nPassword: (you should know this, it's not displayed here for security reasons)\r\nCentral Server URL: " . instaDisc_getConfig("xmlrpcURL") . "\r\n\r\nOnce again, thank you for choosing " . instaDisc_getConfig("siteName") . "!"; 204 $mail->Body = "Welcome to InstaDisc! Thank you for registering at " . instaDisc_getConfig('siteName') . " Central Server, we hope you enjoy our service! Now, when you download an InstaDisc Client, it will ask you for the following information which you will need to enter into it for it to work:\r\n\r\nUsername: " . $username . "\r\nPassword: (you should know this, it's not displayed here for security reasons)\r\nCentral Server URL: " . instaDisc_getConfig("xmlrpcURL") . "\r\n\r\nOnce again, thank you for choosing " . instaDisc_getConfig("siteName") . "!";
205 $mail->Send();
205 206
206 return $mail->Send(); 207 return ($mail->IsError() ? $mail->ErrorInfo : true);
207 } else { 208 } else {
208 return false; 209 return false;
209 } 210 }