Fix wrong registration variables
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
Add timezone settings
|
Version 1.18 - Apr. 28, 2016
|
||||||
|
Add time zone settings
|
||||||
Combine Password reset and setting new nickname
|
Combine Password reset and setting new nickname
|
||||||
Add useful error message on failed login
|
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);
|
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=$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){
|
if($reg['status']==3){
|
||||||
add_system_message(sprintf(get_setting('msgmemreg'), style_this($reg['nickname'], $reg['style'])));
|
add_system_message(sprintf(get_setting('msgmemreg'), style_this($reg['nickname'], $reg['style'])));
|
||||||
}else{
|
}else{
|
||||||
|
Reference in New Issue
Block a user