Changeset 693 for trunk/Modules/User/User.php
- Timestamp:
- Sep 14, 2014, 8:26:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r668 r693 127 127 } 128 128 129 function Register($Login, $Password, $Password2, $Email, $Name , $PhoneNumber, $ICQ)129 function Register($Login, $Password, $Password2, $Email, $Name) 130 130 { 131 131 if(($Email == '') || ($Login == '') || ($Password == '') || ($Password2 == '') || ($Name == '')) $Result = DATA_MISSING; … … 151 151 'Password' => $PasswordHash->Hash($Password, $Salt), 'Salt' => $Salt, 152 152 'Email' => $Email, 'RegistrationTime' => 'NOW()', 153 'Locked' => 1 , 'PhoneNumber' => $PhoneNumber, 'ICQ' => $ICQ));153 'Locked' => 1)); 154 154 $UserId = $this->Database->insert_id; 155 155 $this->Database->insert('PermissionUserAssignment', array('User' => $UserId, … … 460 460 `RegistrationTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', 461 461 `Locked` tinyint(1) NOT NULL DEFAULT '0', 462 `ICQ` int(11) NOT NULL DEFAULT '0',463 `PhoneNumber` varchar(32) NOT NULL DEFAULT '',464 462 `InitPassword` varchar(255) NOT NULL, 465 463 PRIMARY KEY (`Id`), … … 571 569 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''), 572 570 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''), 573 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),574 571 ), 575 572 )); … … 584 581 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''), 585 582 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''), 586 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),587 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),588 583 ), 589 584 )); … … 619 614 'RegistrationTime' => array('Type' => 'DateTime', 'Caption' => 'Čas registrace', 'Default' => ''), 620 615 'Locked' => array('Type' => 'Boolean', 'Caption' => 'Uzamčen', 'Default' => ''), 621 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefon', 'Default' => ''),622 616 'UserRel' => array('Type' => 'TUserCustomerRelListUser', 'Caption' => 'Přístup k zákazníkům', 'Default' => ''), 623 617 'Permission' => array('Type' => 'TPermissionUserAssignmentListUser', 'Caption' => 'Oprávnění', 'Default' => ''),
Note:
See TracChangeset
for help on using the changeset viewer.