Revision 791
Added by Matthias over 16 years ago
trunk/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.7.0 ------------------------------------- |
14 |
02-Apr-2008 Matthias Gallas |
|
15 |
# fixed bug with registration of users are not added to signup group |
|
14 | 16 |
02-Apr-2008 Christian Sommer |
15 | 17 |
! some code clean-up in News module |
16 | 18 |
! fixed some layout issues with Form module (combination with Output-filter) |
trunk/wb/account/signup2.php | ||
---|---|---|
35 | 35 |
$database = new database(); |
36 | 36 |
|
37 | 37 |
// Get details entered |
38 |
$group_id = FRONTEND_SIGNUP; |
|
38 |
$groups_id = FRONTEND_SIGNUP;
|
|
39 | 39 |
$active = 1; |
40 | 40 |
$username = strtolower(strip_tags($wb->get_post_escaped('username'))); |
41 | 41 |
$display_name = strip_tags($wb->get_post_escaped('display_name')); |
... | ... | |
45 | 45 |
$js_back = "javascript: history.go(-1);"; |
46 | 46 |
|
47 | 47 |
// Check values |
48 |
if($group_id == "") { |
|
48 |
if($groups_id == "") {
|
|
49 | 49 |
$wb->print_error($MESSAGE['USERS']['NO_GROUP'], $js_back, false); |
50 | 50 |
} |
51 | 51 |
if(strlen($username) < 3) { |
... | ... | |
107 | 107 |
$md5_password = md5($new_pass); |
108 | 108 |
|
109 | 109 |
// Inser the user into the database |
110 |
$query = "INSERT INTO ".TABLE_PREFIX."users (group_id,active,username,password,display_name,email) VALUES ('$group_id', '$active', '$username','$md5_password','$display_name','$email')";
|
|
110 |
$query = "INSERT INTO ".TABLE_PREFIX."users (groups_id,active,username,password,display_name,email) VALUES ('$groups_id', '$active', '$username','$md5_password','$display_name','$email')";
|
|
111 | 111 |
$database->query($query); |
112 | 112 |
|
113 | 113 |
if($database->is_error()) { |
Also available in: Unified diff
fixed bug with registration of users are not added to signup group