本文整理汇总了PHP中tep_date_raw函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_date_raw函数的具体用法?PHP tep_date_raw怎么用?PHP tep_date_raw使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_date_raw函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$Qcheck->execute();
if ($Qcheck->fetch() !== false) {
$error = true;
$messageStack->add('account_edit', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);
}
if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
$error = true;
$messageStack->add('account_edit', ENTRY_TELEPHONE_NUMBER_ERROR);
}
if ($error == false) {
$sql_data_array = array('customers_firstname' => $firstname, 'customers_lastname' => $lastname, 'customers_email_address' => $email_address, 'customers_telephone' => $telephone, 'customers_fax' => $fax);
if (ACCOUNT_GENDER == 'true') {
$sql_data_array['customers_gender'] = $gender;
}
if (ACCOUNT_DOB == 'true') {
$sql_data_array['customers_dob'] = tep_date_raw($dob);
}
$OSCOM_Db->save('customers', $sql_data_array, ['customers_id' => (int) $_SESSION['customer_id']]);
$OSCOM_Db->save('customers_info', ['customers_info_date_account_last_modified' => 'now()'], ['customers_info_id' => (int) $_SESSION['customer_id']]);
$sql_data_array = ['entry_firstname' => $firstname, 'entry_lastname' => $lastname];
$OSCOM_Db->save('address_book', $sql_data_array, ['customers_id' => (int) $_SESSION['customer_id'], 'address_book_id' => (int) $_SESSION['customer_default_address_id']]);
// reset the session variables
$_SESSION['customer_first_name'] = $firstname;
$messageStack->add_session('account', SUCCESS_ACCOUNT_UPDATED, 'success');
OSCOM::redirect('account.php', '', 'SSL');
}
}
$Qaccount = $OSCOM_Db->prepare('select * from :table_customers where customers_id = :customers_id');
$Qaccount->bindInt(':customers_id', $_SESSION['customer_id']);
$Qaccount->execute();
$breadcrumb->add(NAVBAR_TITLE_1, OSCOM::link('account.php', '', 'SSL'));
示例2: trim
if (empty($company_inn) && ENTRY_COMPANY_INN_MIN_LENGTH == 'true') {
$error = true;
$messageStack->add('header', ENTRY_COMPANY_INN_ERROR);
}
if (empty($company_kpp) && ENTRY_COMPANY_KPP_MIN_LENGTH == 'true') {
$error = true;
$messageStack->add('header', ENTRY_COMPANY_KPP_ERROR);
}
}
if ($error == false) {
$sql = "update " . TABLE_CUSTOMERS . " set customers_firstname = '" . trim(tep_db_input($firstname . ' ' . $middlename)) . "', customers_lastname = '" . tep_db_input($lastname) . "', customers_email_address = '" . tep_db_input($email_address) . "'";
if (ACCOUNT_GENDER == 'true') {
$sql .= ", customers_gender = '" . tep_db_input($gender) . "'";
}
if (ACCOUNT_DOB == 'true') {
$sql .= ", customers_dob = '" . tep_db_input(tep_date_raw($dob)) . "'";
}
$sql .= " where customers_id = '" . (int) $customer_id . "'";
tep_db_query($sql);
$customer_first_name = $firstname;
$customer_middle_name = $middlename;
$customer_last_name = $lastname;
tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_account_last_modified = now() where customers_info_id = '" . (int) $customer_id . "'");
tep_db_query("update " . TABLE_ADDRESS_BOOK . " set entry_lastname = '" . tep_db_input($lastname) . "', entry_firstname = '" . trim(tep_db_input($firstname . ' ' . $middlename)) . "' where customers_id = '" . (int) $customer_id . "' and address_book_id = '" . (int) $customer_default_address_id . "'");
if ($customer_type == 'corporate') {
$sql_data_array = array('customers_id' => $customer_id, 'companies_name' => $company, 'companies_full_name' => $company_full, 'companies_inn' => $company_inn, 'companies_kpp' => $company_kpp, 'companies_ogrn' => $company_ogrn, 'companies_okpo' => $company_okpo, 'companies_okogu' => $company_okogu, 'companies_okato' => $company_okato, 'companies_okved' => $company_okved, 'companies_okfs' => $company_okfs, 'companies_okopf' => $company_okopf, 'companies_address_corporate' => $company_address_corporate, 'companies_address_post' => $company_address_post, 'companies_telephone' => $company_telephone, 'companies_fax' => $company_fax, 'companies_bank' => $company_bank, 'companies_bik' => $company_bik, 'companies_ks' => $company_ks, 'companies_rs' => $company_rs, 'companies_general' => $company_general, 'companies_financial' => $company_financial);
tep_db_perform(TABLE_COMPANIES, $sql_data_array, 'update', "customers_id = '" . (int) $customer_id . "'");
}
// reset the session variables
$customer_first_name = $firstname;
$customer_middle_name = $middlename;
示例3: tep_db_prepare_input
$keyword = tep_db_prepare_input($search_keywords[$i]);
$where_str .= "(pd.products_name like '%" . tep_db_input($keyword) . "%' or p.products_model like '%" . tep_db_input($keyword) . "%' or m.manufacturers_name like '%" . tep_db_input($keyword) . "%'";
if (isset($HTTP_GET_VARS['search_in_description']) && $HTTP_GET_VARS['search_in_description'] == '1') {
$where_str .= " or pd.products_description like '%" . tep_db_input($keyword) . "%'";
}
$where_str .= ')';
break;
}
}
$where_str .= " )";
}
if (tep_not_null($dfrom)) {
$where_str .= " and p.products_date_added >= '" . tep_date_raw($dfrom) . "'";
}
if (tep_not_null($dto)) {
$where_str .= " and p.products_date_added <= '" . tep_date_raw($dto) . "'";
}
if (tep_not_null($pfrom)) {
if ($currencies->is_set($currency)) {
$rate = $currencies->get_value($currency);
$pfrom = $pfrom / $rate;
}
}
if (tep_not_null($pto)) {
if (isset($rate)) {
$pto = $pto / $rate;
}
}
if (DISPLAY_PRICE_WITH_TAX == 'true') {
if ($pfrom > 0) {
$where_str .= " and (IF(s.status, s.specials_new_products_price, p.products_price) * if(gz.geo_zone_id is null, 1, 1 + (tr.tax_rate / 100) ) >= " . (double) $pfrom . ")";
示例4: array
$entry_newsletter_error = false;
// Check Payment
$entry_payment_check_error = false;
$entry_payment_paypal_error = false;
$entry_payment_bank_name_error = false;
$entry_payment_bank_branch_number_error = false;
$entry_payment_bank_swift_code_error = false;
$entry_payment_bank_account_name_error = false;
$entry_payment_bank_account_number_error = false;
if (!$error) {
$sql_data_array = array('affiliate_firstname' => $a_firstname, 'affiliate_lastname' => $a_lastname, 'affiliate_email_address' => $a_email_address, 'affiliate_payment_check' => $a_payment_check, 'affiliate_payment_paypal' => $a_payment_paypal, 'affiliate_payment_bank_name' => $a_payment_bank_name, 'affiliate_payment_bank_branch_number' => $a_payment_bank_branch_number, 'affiliate_payment_bank_swift_code' => $a_payment_bank_swift_code, 'affiliate_payment_bank_account_name' => $a_payment_bank_account_name, 'affiliate_payment_bank_account_number' => $a_payment_bank_account_number, 'affiliate_street_address' => $a_street_address, 'affiliate_postcode' => $a_postcode, 'affiliate_city' => $a_city, 'affiliate_country_id' => $a_country, 'affiliate_telephone' => $a_telephone, 'affiliate_fax' => $a_fax, 'affiliate_homepage' => $a_homepage, 'affiliate_password' => tep_encrypt_password($a_password), 'affiliate_agb' => '1', 'affiliate_newsletter' => $a_newsletter);
if (ACCOUNT_GENDER == 'true') {
$sql_data_array['affiliate_gender'] = $a_gender;
}
if (ACCOUNT_DOB == 'true') {
$sql_data_array['affiliate_dob'] = tep_date_raw($a_dob);
}
if (ACCOUNT_COMPANY == 'true') {
$sql_data_array['affiliate_company'] = $a_company;
$sql_data_array['affiliate_company_taxid'] = $a_company_taxid;
}
if (ACCOUNT_SUBURB == 'true') {
$sql_data_array['affiliate_suburb'] = $a_suburb;
}
if (ACCOUNT_STATE == 'true') {
// +Country-State Selector
if ($a_zone_id == 0) {
// -Country-State Selector
if (strlen($a_state) < ENTRY_STATE_MIN_LENGTH) {
$error = true;
$messageStack->add('affiliate_signup', ENTRY_STATE_ERROR);
示例5: createCustomerAccount
function createCustomerAccount()
{
global $currencies, $customer_id, $onepage, $customer_default_address_id, $customer_first_name, $customer_country_id, $customer_zone_id, $languages_id, $sendto, $billto, $user, $auth, $cart, $customer_id, $_SERVER, $messageStack;
$this->checkCartValidity();
if ($onepage['createAccount'] === true && $this->checkEmailAddress($onepage['customer']['email_address'])) {
require_once 'includes/functions/account.php';
$data = array('firstname' => $onepage['billing']['firstname'], 'lastname' => $onepage['billing']['lastname'], 'email_address' => $onepage['customer']['email_address'], 'telephone' => $onepage['customer']['telephone'], 'fax' => $onepage['customer']['fax'], 'password' => $onepage['customer']['password'], 'confirmation' => $onepage['customer']['password'], 'street_address' => $onepage['billing']['street_address'], 'postcode' => $onepage['billing']['postcode'], 'city' => $onepage['billing']['city'], 'country' => $onepage['billing']['country_id'], 'forum_username' => '', 'TermsAgree' => '1');
if (ACCOUNT_GENDER == 'true') {
$data['gender'] = $onepage['billing']['gender'];
}
if (ACCOUNT_DOB == 'true') {
$data['dob'] = tep_date_raw($onepage['customer']['dob']);
}
if (ACCOUNT_COMPANY == 'true') {
$data['company'] = $onepage['billing']['company'];
}
if (ACCOUNT_COMPANY == 'true') {
$data['btwnr'] = $onepage['billing']['btwnr'];
}
if (ACCOUNT_SUBURB == 'true') {
$data['entry_suburb'] = $onepage['billing']['suburb'];
}
if (ACCOUNT_STATE == 'true') {
$state = $onepage['billing']['state'];
$zone_name = '';
$zone_id = 0;
$check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int) $onepage['billing']['country_id'] . "'");
$check = tep_db_fetch_array($check_query);
$entry_state_has_zones = $check['total'] > 0;
if ($entry_state_has_zones == true) {
$zone_query = tep_db_query("select distinct zone_id, zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int) $onepage['billing']['country_id'] . "' and (zone_name = '" . tep_db_input($state) . "' or zone_code = '" . tep_db_input($state) . "')");
if (tep_db_num_rows($zone_query) == 1) {
$zone = tep_db_fetch_array($zone_query);
$zone_id = $zone['zone_id'];
$zone_name = $zone['zone_name'];
}
}
if ($zone_id > 0) {
$data['zone_id'] = $zone_id;
$data['state'] = '';
} else {
$data['zone_id'] = '0';
$data['state'] = $state;
}
}
if (count($onepage['customer']['newsletters']) > 0) {
foreach ($onepage['customer']['newsletters'] as $newsletter) {
$data['newsletters_' . $newsletter] = '1';
}
}
create_account($data);
if (isset($_POST['diffShipping'])) {
$sql_data_array = array('customers_id' => $customer_id, 'entry_firstname' => $onepage['delivery']['firstname'], 'entry_lastname' => $onepage['delivery']['lastname'], 'entry_street_address' => $onepage['delivery']['street_address'], 'entry_postcode' => $onepage['delivery']['postcode'], 'entry_city' => $onepage['delivery']['city'], 'entry_country_id' => $onepage['delivery']['country_id']);
if (ACCOUNT_GENDER == 'true') {
$sql_data_array['entry_gender'] = $onepage['delivery']['gender'];
}
if (ACCOUNT_COMPANY == 'true') {
$sql_data_array['entry_company'] = $onepage['delivery']['company'];
}
if (ACCOUNT_SUBURB == 'true') {
$sql_data_array['entry_suburb'] = $onepage['delivery']['suburb'];
}
if (ACCOUNT_STATE == 'true') {
$state = $onepage['delivery']['state'];
$zone_name = '';
$zone_id = 0;
$check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int) $onepage['delivery']['country_id'] . "'");
$check = tep_db_fetch_array($check_query);
$entry_state_has_zones = $check['total'] > 0;
if ($entry_state_has_zones == true) {
$zone_query = tep_db_query("select distinct zone_id, zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int) $onepage['delivery']['country_id'] . "' and (zone_name = '" . tep_db_input($state) . "' or zone_code = '" . tep_db_input($state) . "')");
if (tep_db_num_rows($zone_query) == 1) {
$zone = tep_db_fetch_array($zone_query);
$zone_id = $zone['zone_id'];
$zone_name = $zone['zone_name'];
}
}
if ($zone_id > 0) {
$sql_data_array['entry_zone_id'] = $zone_id;
$sql_data_array['entry_state'] = '';
} else {
$sql_data_array['entry_zone_id'] = '0';
$sql_data_array['entry_state'] = $state;
}
}
tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);
}
if (isset($onepage['info']['order_id'])) {
tep_db_query('update ' . TABLE_ORDERS . ' set customers_id = "' . $customer_id . '" where orders_id = "' . $onepage['info']['order_id'] . '"');
unset($onepage['info']['order_id']);
}
if (!tep_session_is_registered('customer_id')) {
tep_session_register('customer_id');
}
if (!tep_session_is_registered('sendto')) {
tep_session_register('sendto');
}
if (!tep_session_is_registered('billto')) {
tep_session_register('billto');
}
//.........这里部分代码省略.........
示例6: create_customer
//.........这里部分代码省略.........
$error = true;
$errors['terms'] = Translate('U moet akkoord gaan met de algemene voorwaarden voor u een account kan aanmaken!');
}
}
//Check if error
if ($error) {
return array('errors' => $errors);
} else {
if ($this->options['create_account_mode'] == 'Direct access' || $this->options['create_account_mode'] == 'Moderated access') {
/********************************/
/* Direct Or Moderated access */
/********************************/
if ($this->options['create_account_mode'] == 'Moderated access') {
$status = '0';
} else {
$status = '1';
}
//Newsletter
$lists = PHPLIST_LISTNUMBERS;
$lists = explode(';', $lists);
$newsletter = false;
foreach ($lists as $key => $list) {
if (isset($data['newsletters_' . $list])) {
put_user_in_list($list, 'subscribe', $email_address, $lastname . ' ' . $firstname);
$newsletter = true;
}
}
//Customers table
$sql_data_array = array('customers_firstname' => $name, 'customers_lastname' => '', 'customers_email_address' => $email_address, 'customers_telephone' => $telephone, 'customers_fax' => $fax, 'customers_newsletter' => $newsletter, 'customers_password' => tep_encrypt_password($password), 'status' => $status);
if (ACCOUNT_GENDER == 'true') {
$sql_data_array['customers_gender'] = $gender;
}
if (ACCOUNT_DOB == 'true') {
$sql_data_array['customers_dob'] = tep_date_raw($dob);
}
tep_db_perform('customers', $sql_data_array);
$customer_id = tep_db_insert_id();
//Address book table
$sql_data_array = array('customers_id' => $customer_id, 'entry_firstname' => $name, 'entry_lastname' => '', 'entry_street_address' => $street_address, 'entry_postcode' => $postcode, 'entry_city' => $city, 'entry_country_id' => $country);
if (ACCOUNT_GENDER == 'true') {
$sql_data_array['entry_gender'] = $gender;
}
if (ACCOUNT_COMPANY == 'true') {
$sql_data_array['entry_company'] = $company;
}
if (ACCOUNT_COMPANY == 'true') {
$sql_data_array['billing_tva_intracom'] = $btwnr;
}
if (ACCOUNT_SUBURB == 'true') {
$sql_data_array['entry_suburb'] = $suburb;
}
if (ACCOUNT_STATE == 'true') {
if ($zone_id > 0) {
$sql_data_array['entry_zone_id'] = $zone_id;
$sql_data_array['entry_state'] = '';
} else {
$sql_data_array['entry_zone_id'] = '0';
$sql_data_array['entry_state'] = $state;
}
}
tep_db_perform('address_book', $sql_data_array);
$address_id = tep_db_insert_id();
tep_db_query("update customers set customers_default_address_id = '" . (int) $address_id . "' where customers_id = '" . (int) $customer_id . "'");
//Customers info table
tep_db_query("insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int) $customer_id . "', '0', now())");
//Session
示例7: tep_date_raw
}
if (isset($search_keywords) && sizeof($search_keywords) > 0) {
for ($i = 0, $n = sizeof($search_keywords); $i < $n; $i++) {
$Qlisting->bindValue(':products_name_' . $i, '%' . $search_keywords[$i] . '%');
$Qlisting->bindValue(':products_model_' . $i, '%' . $search_keywords[$i] . '%');
$Qlisting->bindValue(':manufacturers_name_' . $i, '%' . $search_keywords[$i] . '%');
if (isset($_GET['search_in_description']) && $_GET['search_in_description'] == '1') {
$Qlisting->bindValue(':products_description_' . $i, '%' . $search_keywords[$i] . '%');
}
}
}
if (tep_not_null($dfrom)) {
$Qlisting->bindValue(':products_date_added_from', tep_date_raw($dfrom));
}
if (tep_not_null($dto)) {
$Qlisting->bindValue(':products_date_added_to', tep_date_raw($dto));
}
if (DISPLAY_PRICE_WITH_TAX == 'true') {
if ($pfrom > 0) {
$Qlisting->bindDecimal(':price_from', $pfrom);
}
if ($pto > 0) {
$Qlisting->bindDecimal(':price_to', $pto);
}
} else {
if ($pfrom > 0) {
$Qlisting->bindDecimal(':price_from', $pfrom);
}
if ($pto > 0) {
$Qlisting->bindDecimal(':price_to', $pto);
}
示例8: createCustomerAccount
function createCustomerAccount()
{
global $currencies, $customer_id, $onepage, $customer_default_address_id, $customer_first_name, $customer_country_id, $customer_zone_id, $languages_id, $sendto, $billto;
$this->checkCartValidity();
if ($onepage['createAccount'] === true && $this->checkEmailAddress($onepage['customer']['email_address'])) {
$sql_data_array = array('customers_firstname' => $onepage['billing']['firstname'], 'customers_lastname' => $onepage['billing']['lastname'], 'customers_email_address' => $onepage['customer']['email_address'], 'customers_telephone' => $onepage['customer']['telephone'], 'customers_fax' => $onepage['customer']['fax'], 'customers_newsletter' => $onepage['customer']['newsletter'], 'customers_password' => tep_encrypt_password($onepage['customer']['password']));
if (ACCOUNT_GENDER == 'true') {
$sql_data_array['customers_gender'] = $onepage['billing']['gender'];
}
if (ACCOUNT_DOB == 'true') {
$sql_data_array['customers_dob'] = tep_date_raw($onepage['customer']['dob']);
}
tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);
$customer_id = tep_db_insert_id();
$sql_data_array = array('customers_id' => $customer_id, 'entry_firstname' => $onepage['billing']['firstname'], 'entry_lastname' => $onepage['billing']['lastname'], 'entry_street_address' => $onepage['billing']['street_address'], 'entry_postcode' => $onepage['billing']['postcode'], 'entry_city' => $onepage['billing']['city'], 'entry_country_id' => $onepage['billing']['country_id']);
if (ACCOUNT_GENDER == 'true') {
$sql_data_array['entry_gender'] = $onepage['billing']['gender'];
}
if (ACCOUNT_COMPANY == 'true') {
$sql_data_array['entry_company'] = $onepage['billing']['company'];
}
if (ACCOUNT_SUBURB == 'true') {
$sql_data_array['entry_suburb'] = $onepage['billing']['suburb'];
}
if (ACCOUNT_STATE == 'true') {
$state = $onepage['billing']['state'];
$zone_name = '';
$zone_id = 0;
$check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int) $onepage['billing']['country_id'] . "'");
$check = tep_db_fetch_array($check_query);
$entry_state_has_zones = $check['total'] > 0;
if ($entry_state_has_zones == true) {
$zone_query = tep_db_query("select distinct zone_id, zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int) $onepage['billing']['country_id'] . "' and (zone_name = '" . tep_db_input($state) . "' or zone_code = '" . tep_db_input($state) . "')");
if (tep_db_num_rows($zone_query) == 1) {
$zone = tep_db_fetch_array($zone_query);
$zone_id = $zone['zone_id'];
$zone_name = $zone['zone_name'];
}
}
if ($zone_id > 0) {
$sql_data_array['entry_zone_id'] = $zone_id;
$sql_data_array['entry_state'] = '';
} else {
$sql_data_array['entry_zone_id'] = '0';
$sql_data_array['entry_state'] = $state;
}
}
tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);
$address_id = tep_db_insert_id();
$billto = $address_id;
$sendto = $address_id;
$customer_default_address_id = $address_id;
$customer_first_name = $onepage['billing']['firstname'];
$customer_country_id = $onepage['billing']['country_id'];
$customer_zone_id = $zone_id;
if (isset($_POST['diffShipping'])) {
$sql_data_array = array('customers_id' => $customer_id, 'entry_firstname' => $onepage['delivery']['firstname'], 'entry_lastname' => $onepage['delivery']['lastname'], 'entry_street_address' => $onepage['delivery']['street_address'], 'entry_postcode' => $onepage['delivery']['postcode'], 'entry_city' => $onepage['delivery']['city'], 'entry_country_id' => $onepage['delivery']['country_id']);
if (ACCOUNT_GENDER == 'true') {
$sql_data_array['entry_gender'] = $onepage['delivery']['gender'];
}
if (ACCOUNT_COMPANY == 'true') {
$sql_data_array['entry_company'] = $onepage['delivery']['company'];
}
if (ACCOUNT_SUBURB == 'true') {
$sql_data_array['entry_suburb'] = $onepage['delivery']['suburb'];
}
if (ACCOUNT_STATE == 'true') {
$state = $onepage['delivery']['state'];
$zone_name = '';
$zone_id = 0;
$check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int) $onepage['delivery']['country_id'] . "'");
$check = tep_db_fetch_array($check_query);
$entry_state_has_zones = $check['total'] > 0;
if ($entry_state_has_zones == true) {
$zone_query = tep_db_query("select distinct zone_id, zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int) $onepage['delivery']['country_id'] . "' and (zone_name = '" . tep_db_input($state) . "' or zone_code = '" . tep_db_input($state) . "')");
if (tep_db_num_rows($zone_query) == 1) {
$zone = tep_db_fetch_array($zone_query);
$zone_id = $zone['zone_id'];
$zone_name = $zone['zone_name'];
}
}
if ($zone_id > 0) {
$sql_data_array['entry_zone_id'] = $zone_id;
$sql_data_array['entry_state'] = '';
} else {
$sql_data_array['entry_zone_id'] = '0';
$sql_data_array['entry_state'] = $state;
}
}
tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);
$sendto = tep_db_insert_id();
}
tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int) $address_id . "' where customers_id = '" . (int) $customer_id . "'");
tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int) $customer_id . "', '0', now())");
$Qcustomer = tep_db_query('select customers_firstname, customers_lastname, customers_email_address from ' . TABLE_CUSTOMERS . ' where customers_id = "' . $customer_id . '"');
$customer = tep_db_fetch_array($Qcustomer);
// build the message content
$name = $customer['customers_firstname'] . ' ' . $customer['customers_lastname'];
if (ACCOUNT_GENDER == 'true') {
if ($sql_data_array['entry_gender'] == '') {
//.........这里部分代码省略.........