include('includes/application_top.php'); ?>
$include_file = DIR_LANGUAGES . $language . '/' . FILENAME_PASSWORD_FORGOTTEN; include(DIR_INCLUDES . 'include_once.php'); ?>
$page = 'password_forgotten.php'; ?>
if ($HTTP_GET_VARS['action'] == 'process') {
$check_customer = tep_db_query("select login, pass from customer where email = '" . $HTTP_POST_VARS['email_address'] . "'");
if (tep_db_num_rows($check_customer)) {
$check_customer_values = tep_db_fetch_array($check_customer);
mail($HTTP_POST_VARS['email_address'], EMAIL_PASSWORD_REMINDER_SUBJECT, sprintf(EMAIL_PASSWORD_REMINDER_BODY, $check_customer_values['login'], $check_customer_values['pass']), 'From: ' . EMAIL_FROM);
header('Location: ' . tep_href_link(FILENAME_LOGIN, '', 'NONSSL'));
tep_exit();
} else {
header('Location: ' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, 'email=nonexistent', 'NONSSL'));
tep_exit();
}
} else {
?>
$location = ' : ' . NAVBAR_TITLE_1 . ' : ' . NAVBAR_TITLE_2 . ''; ?>
=TITLE;?> - Password Forgotten
$include_file = DIR_INCLUDES . 'header.php'; include(DIR_INCLUDES . 'include_once.php'); ?>
$include_file = DIR_INCLUDES . 'column_left.php'; include(DIR_INCLUDES . 'include_once.php'); ?>
|
|
|
=TOP_BAR_TITLE;?> |
|
|
=tep_black_line();?> |
|
|
|
|
|
|
|
|
$include_file = DIR_INCLUDES . 'column_right.php'; include(DIR_INCLUDES . 'include_once.php'); ?>
|
|
$include_file = DIR_INCLUDES . 'footer.php'; include(DIR_INCLUDES . 'include_once.php'); ?>
}
?>
$include_file = DIR_INCLUDES . 'application_bottom.php'; include(DIR_INCLUDES . 'include_once.php'); ?>