Changeset 176
- Timestamp:
- 12/25/06 23:07:07 (2 years ago)
- Files:
-
- wifidog/wifidog-auth/wifidog/classes/User.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wifidog/wifidog-auth/wifidog/classes/User.php
r168 r176 215 215 * @return the newly created User object, or null if there was an error 216 216 */ 217 static function createUser($id, $username, Network $account_origin, $email, $password, $realname, $birthday, $address, $postalcode, $city, $country, $phone )217 static function createUser($id, $username, Network $account_origin, $email, $password, $realname, $birthday, $address, $postalcode, $city, $country, $phone, $network) 218 218 { 219 219 global $db; … … 231 231 $city_str = $db->escapeString($city); 232 232 $country_str = $db->escapeString($country); 233 $phone_str = $db->escapeString($phone); 234 233 $phone_str = $db->escapeString($phone); 235 234 236 235 $password_hash = $db->escapeString(User :: passwordHash($password)); … … 238 237 $token = User :: generateToken(); 239 238 240 $db->execSqlUpdate("INSERT INTO users (user_id,username, account_origin,email,pass,account_status,validation_token,reg_date,real_name,birthday,address,postalcode,city,country,phone ) VALUES ('$id_str','$username_str','$account_origin_str','$email_str','$password_hash','$status','$token',NOW(),'$realname_str','$birthday_str','$address_str','$postalcode_str','$city_str','$country_str','$phone_str')");239 $db->execSqlUpdate("INSERT INTO users (user_id,username, account_origin,email,pass,account_status,validation_token,reg_date,real_name,birthday,address,postalcode,city,country,phone,network) VALUES ('$id_str','$username_str','$account_origin_str','$email_str','$password_hash','$status','$token',NOW(),'$realname_str','$birthday_str','$address_str','$postalcode_str','$city_str','$country_str','$phone_str','$network')"); 241 240 242 241 $object = new self($id); … … 254 253 /** @param $object_id The id of the user */ 255 254 function __construct($object_id) 256 { 255 { 257 256 global $db; 258 257 $this->mDb = & $db; … … 878 877 879 878 // realname to code 879 $realname = "user_".$this->getId()."_realname"; 880 $this->setRealname($_REQUEST[$realname]); 881 882 880 883 881 884 }
