\n";
@@ -288,9 +288,9 @@ function account_register_submit($new) {
user_save($new);
$link = "http://". getenv("HOSTNAME") ."/account.php?op=confirm&name=$new[userid]&hash=$new[hash]";
- $message = "$new[userid],\n\n\nsomeone signed up for a user account on $sitename and supplied this email address as their contact. If it wasn't you, don't get your panties in a knot and simply ignore this mail.\n\nIf this was you, you have to activate your account first before you can login. You can activate your account by visiting the URL below:\n\n $link\n\nVisiting this URL will automatically activate your account. Once activated you can login using the following information:\n\n username: $new[userid]\n password: $new[passwd]\n\n\n-- $sitename crew\n";
- // mail($new[real_email], "Account details for $sitename", $message, "From: noreply@$sitename");
- print "
$message
\n";
+ $message = "$new[userid],\n\n\nsomeone signed up for a user account on $sitename and supplied this email address as their contact. If it wasn't you, don't get your panties in a knot and simply ignore this mail.\n\nIf this was you, you have to activate your account first before you can login. You can do so simply by visiting the URL below:\n\n $link\n\nVisiting this URL will automatically activate your account. Once activated you can login using the following information:\n\n username: $new[userid]\n password: $new[passwd]\n\n\n-- $sitename crew\n";
+
+ mail($new[real_email], "Account details for $sitename", $message, "From: noreply@$sitename");
watchdog(1, "new user `$new[userid]' <$new[real_email]>");
diff --git a/admin.php b/admin.php
index 05737b1c6e4..5f38df1d32f 100644
--- a/admin.php
+++ b/admin.php
@@ -40,7 +40,7 @@ function account_display($order = "username") {
foreach ($show as $key=>$value) {
switch($value) {
case "real_email":
- $output .= "