|
...
|
...
|
@@ -81,7 +81,7 @@ function random_string ($charset_string, $length)
|
|
81
|
81
|
$pass = $_POST['password2'];
|
|
82
|
82
|
$encryppass = md5($pass);
|
|
83
|
83
|
}
|
|
84
|
|
- dbquery("INSERT INTO ".substr(_AUTHORTABLE, 0, strpos(_AUTHORTABLE, "as author"))." (penname, realname, bio, email, date, password) VALUES ('".escapestring($penname)."', '".escapestring(strip_tags($_POST['realname']))."', '".strip_tags(escapestring($_POST['bio']), $allowed_tags)."', '$email', now(), '$encryppass')");
|
|
|
84
|
+ dbquery("INSERT INTO ".substr(_AUTHORTABLE, 0, strpos(_AUTHORTABLE, "as author"))." (penname, realname, bio, email, date, password) VALUES ('".escapestring($penname)."', '".escapestring(strip_tags($_POST['realname']))."', '".strip_tags(escapestring($_POST['bio']), $allowed_tags)."', '$email'," . time() . ", '$encryppass')");
|
|
85
|
85
|
$useruid = dbinsertid();
|
|
86
|
86
|
if($logging) dbquery("INSERT INTO ".TABLEPREFIX."fanfiction_log (`log_action`, `log_uid`, `log_ip`, `log_type`, `log_timestamp`) VALUES('".escapestring(sprintf(_LOG_REGISTER, $penname, $useruid, $_SERVER['REMOTE_ADDR']))."', '".$useruid. "', INET6_ATON('".$_SERVER['REMOTE_ADDR']."'), 'RG', " . time() . ")");
|
|
87
|
87
|
if(empty($siteskin)) {
|
|
...
|
...
|
@@ -127,6 +127,7 @@ function random_string ($charset_string, $length)
|
|
127
|
127
|
$RegNoticeTo = $notifications['registration_toemail'];
|
|
128
|
128
|
$RegMessage = "Username: $penname" . "\r\n" . "Email: $email" . "\r\n" . "IP: $RegIP" . "\r\n" . "Host: $RegHost";
|
|
129
|
129
|
$RegMessage .= " registered on your site";
|
|
|
130
|
+ $RegMessage .= "<br>Profile link: " . "<a href='" . $url . "/viewuser.php?uid=" . $useruid . "'>" . $penname . "</a>";
|
|
130
|
131
|
sendemail($sitename, $RegNoticeTo, $siteemail, $siteemail, $RegSubject, $RegMessage);
|
|
131
|
132
|
}
|
|
132
|
133
|
}
|