Перейти к содержанию
Форум поддержки пользователей VamShop

Каптча


Рекомендуемые сообщения

В /password_double_opt.php поменяйте:


if ($_POST['captcha'] == $_SESSION['captcha_keystring']) {

if (!vam_db_num_rows($check_customer_query)) {

$case = wrong_mail;

$info_message = TEXT_EMAIL_ERROR;

} else {

$case = first_opt_in;

vam_db_query("update ".TABLE_CUSTOMERS." set password_request_key = '".$vlcode."' where customers_id = '".$check_customer['customers_id']."'");

vam_php_mail(EMAIL_SUPPORT_ADDRESS, EMAIL_SUPPORT_NAME, $check_customer['customers_email_address'], '', '', EMAIL_SUPPORT_REPLY_ADDRESS, EMAIL_SUPPORT_REPLY_ADDRESS_NAME, '', '', TEXT_EMAIL_PASSWORD_FORGOTTEN, $html_mail, $txt_mail);



}

} else {

$case = code_error;

$info_message = TEXT_CODE_ERROR;

}

}
[/code] на:
[code]
if (!vam_db_num_rows($check_customer_query)) {

$case = wrong_mail;

$info_message = TEXT_EMAIL_ERROR;

} else {

$case = first_opt_in;

vam_db_query("update ".TABLE_CUSTOMERS." set password_request_key = '".$vlcode."' where customers_id = '".$check_customer['customers_id']."'");

vam_php_mail(EMAIL_SUPPORT_ADDRESS, EMAIL_SUPPORT_NAME, $check_customer['customers_email_address'], '', '', EMAIL_SUPPORT_REPLY_ADDRESS, EMAIL_SUPPORT_REPLY_ADDRESS_NAME, '', '', TEXT_EMAIL_PASSWORD_FORGOTTEN, $html_mail, $txt_mail);



}

}
и в шаблоне страницы /templates/шаблон/module/password_double_opt_in.html удалите:

<p><span class="bold">{#text_sec_code#}</span> {$CAPTCHA_IMG}</p>
<p><span class="bold">{#text_sec_code#}</span> {$CAPTCHA_INPUT}</p>
[/code]

Ссылка на сообщение
Поделиться на другие сайты
×
×
  • Создать...