Fix wrong registration variables

This commit is contained in:
Daniel Winzen
2016-04-28 19:07:09 +02:00
parent 47ffde6839
commit 1a8eefc396
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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{