$_SESSION['customer_zone_id'] = $check_country['entry_zone_id']; //W. Kaiser - AJAX $_SESSION['account_type'] = $check_customer['account_type']; //W. Kaiser - AJAX $date_now = date('Ymd'); olc_db_query(SQL_UPDATE . TABLE_CUSTOMERS_INFO . " set\n\t\t\t\tcustomers_info_date_of_last_logon = now(),\n\t\t\t\tcustomers_info_number_of_logons = customers_info_number_of_logons+1\n\t\t\t\twhere customers_info_id = '" . $_SESSION['customer_id'] . APOS); // restore cart contents define('CUSTOMER_ID', $_SESSION['customer_id']); if ($not_forced_login) { if (NOT_IS_ADMIN_FUNCTION) { $_SESSION['cart']->restore_contents(); } $snapshot = $_SESSION['navigation']->snapshot; if (sizeof($snapshot) > 0) { $redirect_url = $snapshot['page']; $redirect_parameters = olc_array_to_string($snapshot['get'], array(olc_session_name())); $redirect_mode = $snapshot['mode']; $_SESSION['navigation']->clear_snapshot(); } else { if ($auction) { $redirect_url = FILENAME_SHOPPING_CART; } else { //normal login - redirect to user account $redirect_url = FILENAME_DEFAULT; } } } //W. Kaiser - AJAX } else { $_GET['login'] = '******'; $info_message = TEXT_LOGIN_ERROR;
require_once DIR_FS_INC . 'olc_count_customer_address_book_entries.inc.php'; $addresses_count = olc_count_customer_address_book_entries(); if ($IsAccount) { if (isset($delete)) { $smarty->assign('delete', '1'); $smarty->assign('ADDRESS', olc_address_label(CUSTOMER_ID, $delete, true, BLANK, HTML_BR)); $smarty->assign('BUTTON_BACK', HTML_A_START . $address_book_link . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END); $smarty->assign('BUTTON_DELETE', HTML_A_START . olc_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'delete=' . $delete . '&action=deleteconfirm') . '">' . olc_image_button('button_delete.gif', IMAGE_BUTTON_DELETE) . HTML_A_END); } else { include DIR_WS_MODULES . 'address_book_details.php'; if ($isset_edit_and_is_numeric_edit) { $smarty->assign('BUTTON_BACK', HTML_A_START . $address_book_link . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END); $smarty->assign('BUTTON_UPDATE', olc_draw_hidden_field('action', 'update') . olc_draw_hidden_field('edit', $edit) . olc_image_submit('button_update.gif', IMAGE_BUTTON_UPDATE)); } else { if (sizeof($_SESSION['navigation']->snapshot) > 0) { $back_link = olc_href_link($_SESSION['navigation']->snapshot['page'], olc_array_to_string($_SESSION['navigation']->snapshot['get'], array(olc_session_name())), $_SESSION['navigation']->snapshot['mode']); } else { $back_link = $address_book_link; } $smarty->assign('BUTTON_BACK', HTML_A_START . $back_link . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END); $smarty->assign('BUTTON_UPDATE', olc_draw_hidden_field('action', 'process') . olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE)); } } $submit_routine_trailer = '_new'; } else { // if no shipping destination address was selected, use their own address as default if (!isset($_SESSION[$checkout_id_text])) { $_SESSION[$checkout_id_text] = $_SESSION['customer_default_address_id']; } if (!$process) { require_once DIR_FS_INC . 'olc_draw_radio_field.inc.php';
function debug() { for ($i = 0, $n = sizeof($this->path); $i < $n; $i++) { echo $this->path[$i]['page'] . '?'; while (list($key, $value) = each($this->path[$i]['get'])) { echo $key . '=' . $value . '&'; } if (sizeof($this->path[$i]['post']) > 0) { echo '<br>'; while (list($key, $value) = each($this->path[$i]['post'])) { echo ' <b>' . $key . '=' . $value . '</b><br>'; } } echo '<br>'; } if (sizeof($this->snapshot) > 0) { echo '<br><br>'; echo $this->snapshot['mode'] . $this->snapshot['page'] . '?' . olc_array_to_string($this->snapshot['get'], array(olc_session_name())) . HTML_BR; } }