  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: account.php 182 2005-09-04 15:54:59Z hpdl $ |
| |
| 3 | + | $Id: account.php 184 2005-09-07 14:48:20Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
17 | 17 | | |
| |
18 | 18 | | $Qaccount = $osC_Database->query('select customers_gender, customers_firstname, customers_lastname, unix_timestamp(customers_dob) as customers_dob, customers_email_address from :table_customers where customers_id = :customers_id'); |
| |
19 | 19 | | $Qaccount->bindTable(':table_customers', TABLE_CUSTOMERS); |
  |
20 | | - | $Qaccount->bindInt(':customers_id', $osC_Customer->id); |
| |
| 20 | + | $Qaccount->bindInt(':customers_id', $osC_Customer->getID()); |
|
21 | 21 | | $Qaccount->execute(); |
| |
22 | 22 | | |
| |
23 | 23 | | return $Qaccount; |
| |
|
|
 |
… |
|
48 | 48 | | $Qcustomer->bindValue(':customers_lastname', $data['lastname']); |
| |
49 | 49 | | $Qcustomer->bindValue(':customers_email_address', $data['email_address']); |
| |
50 | 50 | | $Qcustomer->bindValue(':customers_dob', (ACCOUNT_DATE_OF_BIRTH > -1) ? date('Ymd', $data['dob']) : ''); |
  |
51 | | - | $Qcustomer->bindInt(':customers_id', $osC_Customer->id); |
| |
| 51 | + | $Qcustomer->bindInt(':customers_id', $osC_Customer->getID()); |
|
52 | 52 | | $Qcustomer->execute(); |
| |
53 | 53 | | |
| |
54 | 54 | | if ($Qcustomer->affectedRows() === 1) { |
| |
55 | 55 | | $Qupdate = $osC_Database->query('update :table_customers_info set customers_info_date_account_last_modified = now() where customers_info_id = :customers_info_id'); |
| |
56 | 56 | | $Qupdate->bindTable(':table_customers_info', TABLE_CUSTOMERS_INFO); |
  |
57 | | - | $Qupdate->bindInt(':customers_info_id', $osC_Customer->id); |
| |
| 57 | + | $Qupdate->bindInt(':customers_info_id', $osC_Customer->getID()); |
|
58 | 58 | | $Qupdate->execute(); |
| |
59 | 59 | | |
| |
60 | 60 | | return true; |
| |
|
|
 |
… |
|
69 | 69 | | $Qcustomer = $osC_Database->query('update :table_customers set customers_password = :customers_password where customers_id = :customers_id'); |
| |
70 | 70 | | $Qcustomer->bindTable(':table_customers', TABLE_CUSTOMERS); |
| |
71 | 71 | | $Qcustomer->bindValue(':customers_password', tep_encrypt_password($password)); |
  |
72 | | - | $Qcustomer->bindInt(':customers_id', $osC_Customer->id); |
| |
| 72 | + | $Qcustomer->bindInt(':customers_id', $osC_Customer->getID()); |
|
73 | 73 | | $Qcustomer->execute(); |
| |
74 | 74 | | |
| |
75 | 75 | | if ($Qcustomer->affectedRows() === 1) { |
| |
76 | 76 | | $Qupdate = $osC_Database->query('update :table_customers_info set customers_info_date_account_last_modified = now() where customers_info_id = :customers_info_id'); |
| |
77 | 77 | | $Qupdate->bindTable(':table_customers_info', TABLE_CUSTOMERS_INFO); |
  |
78 | | - | $Qupdate->bindInt(':customers_info_id', $osC_Customer->id); |
| |
| 78 | + | $Qupdate->bindInt(':customers_info_id', $osC_Customer->getID()); |
|
79 | 79 | | $Qupdate->execute(); |
| |
80 | 80 | | |
| |
81 | 81 | | return true; |
| |
|
|
 |
… |
|
105 | 105 | | if ($email_address === null) { |
| |
106 | 106 | | $Qcheck = $osC_Database->query('select customers_password from :table_customers where customers_id = :customers_id'); |
| |
107 | 107 | | $Qcheck->bindTable(':table_customers', TABLE_CUSTOMERS); |
  |
108 | | - | $Qcheck->bindInt(':customers_id', $osC_Customer->id); |
| |
| 108 | + | $Qcheck->bindInt(':customers_id', $osC_Customer->getID()); |
|
109 | 109 | | $Qcheck->execute(); |
| |
110 | 110 | | } else { |
| |
111 | 111 | | $Qcheck = $osC_Database->query('select customers_password from :table_customers where customers_email_address = :customers_email_address limit 1'); |
| |
|
|
 |
… |
|
135 | 135 | | $Qcheck = $osC_Database->query('select customers_id from :table_customers where customers_email_address = :customers_email_address and customers_id != :customers_id limit 1'); |
| |
136 | 136 | | $Qcheck->bindTable(':table_customers', TABLE_CUSTOMERS); |
| |
137 | 137 | | $Qcheck->bindValue(':customers_email_address', $email_address); |
  |
138 | | - | $Qcheck->bindInt(':customers_id', $osC_Customer->id); |
| |
| 138 | + | $Qcheck->bindInt(':customers_id', $osC_Customer->getID()); |
  |
139 | 139 | | $Qcheck->execute(); |
| |
140 | 140 | | |
| |
141 | 141 | | if ($Qcheck->numberOfRows() === 1) { |