Fix wrong registration variables
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
Version 1.18 - Apr. 28, 2016
|
||||
Add time zone settings
|
||||
Combine Password reset and setting new nickname
|
||||
Add useful error message on failed login
|
||||
|
2
chat.php
2
chat.php
@ -2318,7 +2318,7 @@ function register_guest($status, $nick){
|
||||
return sprintf($I['cantreg'], $nick);
|
||||
}
|
||||
$stmt=$db->prepare('INSERT INTO ' . PREFIX . 'members (nickname, passhash, status, refresh, bgcolour, boxwidth, boxheight, regedby, timestamps, embed, style, incognito, nocache, tz) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);');
|
||||
$stmt->execute(array($reg['nickname'], $reg['passhash'], $reg['status'], $reg['refresh'], $reg['bgcolour'], $reg['boxwidth'], $reg['boxheight'], $U['nickname'], $reg['timestamps'], $reg['embed'], $reg['style'], $U['incognito'], $U['nocache'], $U['tz']));
|
||||
$stmt->execute(array($reg['nickname'], $reg['passhash'], $reg['status'], $reg['refresh'], $reg['bgcolour'], $reg['boxwidth'], $reg['boxheight'], $U['nickname'], $reg['timestamps'], $reg['embed'], $reg['style'], $reg['incognito'], $reg['nocache'], $reg['tz']));
|
||||
if($reg['status']==3){
|
||||
add_system_message(sprintf(get_setting('msgmemreg'), style_this($reg['nickname'], $reg['style'])));
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user