Changeset 14 for trunk/www/user.php
- Timestamp:
- Jun 11, 2009, 10:43:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/user.php
r6 r14 103 103 { 104 104 $this->Database->insert('User', array('Name' => $Name, 'Login' => $Login, 'Password' => sha1($Password), 'Email' => $Email, 'RegistrationTime' => 'NOW()', 'Locked' => 1, 'Role' => 2)); 105 $UserId = $Database->insert_id; 105 106 106 107 $Subject = FromUTF8('Registrace nového účtu', 'iso2'); … … 236 237 global $Config; 237 238 238 $DbResult = $this->Database->select('User', ' Name, Id, Email, Password', '`Login`="'.$Login.'" AND `Email`="'.$Email.'"');239 if($DbResult->num_rows > 0) 240 { 241 $Row = $DbResult->fetch_a rray();239 $DbResult = $this->Database->select('User', 'Login, Name, Id, Email, Password', '`Login`="'.$Login.'" AND `Email`="'.$Email.'"'); 240 if($DbResult->num_rows > 0) 241 { 242 $Row = $DbResult->fetch_assoc(); 242 243 $NewPassword = substr(sha1(strtoupper($Row['Login'])), 0, 7); 243 244
Note:
See TracChangeset
for help on using the changeset viewer.