  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: account.php 733 2006-08-20 15:32:32Z hpdl $ |
| |
| 3 | + | $Id: account.php 734 2006-08-20 17:56:47Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
51 | 51 | | $Qcustomer->bindValue(':customers_newsletter', (isset($data['newsletter']) && ($data['newsletter'] == '1') ? '1' : '')); |
| |
52 | 52 | | $Qcustomer->bindValue(':customers_status', '1'); |
| |
53 | 53 | | $Qcustomer->bindValue(':customers_ip_address', osc_get_ip_address()); |
  |
54 | | - | $Qcustomer->bindValue(':customers_password', tep_encrypt_password($data['password'])); |
| |
| 54 | + | $Qcustomer->bindValue(':customers_password', osc_encrypt_string($data['password'])); |
|
55 | 55 | | $Qcustomer->bindValue(':customers_gender', (((ACCOUNT_GENDER > -1) && isset($data['gender']) && (($data['gender'] == 'm') || ($data['gender'] == 'f'))) ? $data['gender'] : '')); |
| |
56 | 56 | | $Qcustomer->bindValue(':customers_dob', ((ACCOUNT_DATE_OF_BIRTH == '1') ? date('Ymd', $data['dob']) : '')); |
| |
57 | 57 | | $Qcustomer->execute(); |
| |
|
|
 |
… |
|
93 | 93 | | |
| |
94 | 94 | | $email_text .= sprintf($osC_Language->get('email_create_account_body'), STORE_NAME, STORE_OWNER_EMAIL_ADDRESS); |
| |
95 | 95 | | |
  |
96 | | - | tep_mail($osC_Customer->getName(), $osC_Customer->getEmailAddress(), sprintf($osC_Language->get('email_create_account_subject'), STORE_NAME), $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); |
| |
| 96 | + | osc_email($osC_Customer->getName(), $osC_Customer->getEmailAddress(), sprintf($osC_Language->get('email_create_account_subject'), STORE_NAME), $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); |
|
97 | 97 | | |
| |
98 | 98 | | return true; |
| |
99 | 99 | | } else { |
| |
|
|
 |
… |
|
140 | 140 | | |
| |
141 | 141 | | $Qcustomer = $osC_Database->query('update :table_customers set customers_password = :customers_password where customers_id = :customers_id'); |
| |
142 | 142 | | $Qcustomer->bindTable(':table_customers', TABLE_CUSTOMERS); |
  |
143 | | - | $Qcustomer->bindValue(':customers_password', tep_encrypt_password($password)); |
| |
| 143 | + | $Qcustomer->bindValue(':customers_password', osc_encrypt_string($password)); |
  |
144 | 144 | | $Qcustomer->bindInt(':customers_id', $customer_id); |
| |
145 | 145 | | $Qcustomer->execute(); |
| |
146 | 146 | | |