set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
if (isset($_POST['deleteaccount']) ) {
$kunden_info_query = tep_db_query("select customers_id, customers_email_address, customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
$kunden_info = tep_db_fetch_array($kunden_info_query);
tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_CUSTOMERS . " where customers_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_WHOS_ONLINE . " where customer_id = '" . tep_db_input($customer_id) . "'");
tep_session_destroy();
$extern_email_dateipfad = DIR_WS_INCLUDES . 'languages/' . $language . '/';
$extern_email_datei = $extern_email_dateipfad . FILENAME_DEFINE_DELETE_EMAIL;
$file_contents = file_get_contents($extern_email_datei);
$firstname = $kunden_info['customers_firstname'];
$lastname = $kunden_info['customers_lastname'];
$name = $firstname . ' ' . $lastname;
//$email_text = $file_contents;
$file_contents = preg_replace('/KUNDEN_NAME/', $name, $file_contents);
$email_text = $file_contents;
tep_mail($kunden_info['customers_firstname'] . ' ' . $kunden_info['customers_lastname'], $kunden_info['customers_email_address'], EMAIL_TEXT_SUBJECT_DELETE, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
tep_redirect(tep_href_link(FILENAME_LOGOFF, 'action=goodby', 'SSL'));
}
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT);
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
?>
>
|
|
size('account') > 0) {
?>
output('account'); ?> |
|
0) {
?>
|
' . OVERVIEW_SHOW_ALL_ORDERS . ''; ?> |
|
|
|
|
|
'); ?> |
' . tep_image_button_small('small_view.gif', 'Anzeigen') . ''; ?> |
|
|
|
|
|
|
|
|
|
' . MY_ACCOUNT_INFORMATION . ''; ?> |
' . MY_ACCOUNT_ADDRESS_BOOK . ''; ?> |
' . MY_ACCOUNT_PASSWORD . ''; ?> |
|
|
|
|
|
|
|
|
|
' . MY_ORDERS_VIEW . ''; ?> |
|
|
|
|
|
|
|
|
|
' . EMAIL_NOTIFICATIONS_NEWSLETTERS . ''; ?> |
' . EMAIL_NOTIFICATIONS_PRODUCTS . ''; ?> |
|
|
|
|
|
|
|