Changeset 533 for trunk/Modules/User
- Timestamp:
- Apr 24, 2013, 10:10:33 PM (12 years ago)
- Location:
- trunk/Modules/User
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r524 r533 108 108 function Register($Login, $Password, $Password2, $Email, $Name, $PhoneNumber, $ICQ) 109 109 { 110 global $Config;111 112 110 if(($Email == '') || ($Login == '') || ($Password == '') || ($Password2 == '') || ($Name == '')) $Result = DATA_MISSING; 113 111 else if($Password != $Password2) $Result = PASSWORDS_UNMATCHED; … … 333 331 function PasswordRecoveryRequest($Login, $Email) 334 332 { 335 global $Config;336 337 333 $DbResult = $this->Database->select('User', 'Login, Name, Id, Email, Password', '`Login`="'.$Login.'" AND `Email`="'.$Email.'"'); 338 334 if($DbResult->num_rows > 0) -
trunk/Modules/User/UserList.php
r523 r533 36 36 else $User['PhoneNumber'] = ' '; 37 37 38 $DbResult2 = $this->Database->query('SELECT Name, Id FROM NetworkDevice WHERE Member = (SELECT Id FROM Member WHERE Member.ResponsibleUser = '.$User['Id'].') AND Used=1 ORDER BY Name');39 38 $Devices = array(); 40 while($Device = $DbResult2->fetch_assoc()) 39 $DbResult2 = $this->Database->query('SELECT `Id` FROM `Member` WHERE `Member`.`ResponsibleUser` = '.$User['Id']); 40 while($Member = $DbResult2->fetch_assoc()) 41 41 { 42 $Devices[] = $Device['Name']; 42 $DbResult3 = $this->Database->query('SELECT `Name`, `Id` FROM `NetworkDevice` '. 43 'WHERE `Member` = '.$Member['Id'].' AND `Used`=1 ORDER BY `Name`'); 44 while($Device = $DbResult3->fetch_assoc()) 45 { 46 $Devices[] = $Device['Name']; 47 } 43 48 } 44 49 $User['Devices'] = implode(', ', $Devices);
Note:
See TracChangeset
for help on using the changeset viewer.