Changeset 906 for trunk/include/functions_user.inc.php
- Timestamp:
- Oct 22, 2005, 11:53:12 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_user.inc.php
r879 r906 77 77 if (count($errors) == 0) 78 78 { 79 // what will be the inserted id ? 80 $query = ' 81 SELECT MAX('.$conf['user_fields']['id'].') + 1 82 FROM '.USERS_TABLE.' 83 ;'; 84 list($next_id) = mysql_fetch_array(pwg_query($query)); 85 79 86 $insert = 80 87 array( 88 $conf['user_fields']['id'] => $next_id, 81 89 $conf['user_fields']['username'] => mysql_escape_string($login), 82 90 $conf['user_fields']['password'] => $conf['pass_convert']($password), … … 87 95 mass_inserts(USERS_TABLE, array_keys($insert), array($insert)); 88 96 89 create_user_infos( mysql_insert_id());90 } 91 97 create_user_infos($next_id); 98 } 99 92 100 return $errors; 93 101 }
Note: See TracChangeset
for help on using the changeset viewer.