
Richard Munroe - 2006-08-09 15:35:50
The following code updates the user table in the register function to include the new user. Insert it in the appropriate place:
$id = $row['user_id'] + 1;
$pass = md5($pass) ;
$sql = "INSERT INTO " .
USERS_TABLE .
" (user_id, username, user_password, user_email) " .
" VALUES (" .
"\"$id\", " .
"\"$login\", " .
"\"$pass\", " .
"\"$email\")" ;
$db->sql_query($sql) ;
$sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending) VALUES ('".$id."', '".$id."', 0)";
Dick Munroe
p.s. there is no patch data member defined, good form to define it as well.