  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: account.php 418 2006-01-28 12:46:34Z hpdl $ |
| |
| 3 | + | $Id: account.php 500 2006-04-18 06:27:10Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
53 | 53 | | $Qcustomer->bindValue(':customers_ip_address', tep_get_ip_address()); |
| |
54 | 54 | | $Qcustomer->bindValue(':customers_password', tep_encrypt_password($data['password'])); |
| |
55 | 55 | | $Qcustomer->bindValue(':customers_gender', (((ACCOUNT_GENDER > -1) && isset($data['gender']) && (($data['gender'] == 'm') || ($data['gender'] == 'f'))) ? $data['gender'] : '')); |
  |
56 | | - | $Qcustomer->bindValue(':customers_dob', ((ACCOUNT_DATE_OF_BIRTH > -1) ? date('Ymd', $data['dob']) : '')); |
| |
| 56 | + | $Qcustomer->bindValue(':customers_dob', ((ACCOUNT_DATE_OF_BIRTH == '1') ? date('Ymd', $data['dob']) : '')); |
|
57 | 57 | | $Qcustomer->execute(); |
| |
58 | 58 | | |
| |
59 | 59 | | if ($Qcustomer->affectedRows() === 1) { |
| |
|
|
 |
… |
|
69 | 69 | | if ($Qci->affectedRows() === 1) { |
| |
70 | 70 | | $osC_Database->commitTransaction(); |
| |
71 | 71 | | |
  |
72 | | - | if (SERVICE_SESSION_REGENERATE_ID == 'True') { |
| |
| 72 | + | if (SERVICE_SESSION_REGENERATE_ID == '1') { |
|
73 | 73 | | $osC_Session->recreate(); |
| |
74 | 74 | | } |
| |
75 | 75 | | |
| |
|
|
 |
… |
|
115 | 115 | | $Qcustomer->bindValue(':customers_firstname', $data['firstname']); |
| |
116 | 116 | | $Qcustomer->bindValue(':customers_lastname', $data['lastname']); |
| |
117 | 117 | | $Qcustomer->bindValue(':customers_email_address', $data['email_address']); |
  |
118 | | - | $Qcustomer->bindValue(':customers_dob', (ACCOUNT_DATE_OF_BIRTH > -1) ? date('Ymd', $data['dob']) : ''); |
| |
| 118 | + | $Qcustomer->bindValue(':customers_dob', (ACCOUNT_DATE_OF_BIRTH == '1') ? date('Ymd', $data['dob']) : ''); |
  |
119 | 119 | | $Qcustomer->bindInt(':customers_id', $osC_Customer->getID()); |
| |
120 | 120 | | $Qcustomer->execute(); |
| |
121 | 121 | | |