From 164041b7fc698b83f3dc6ddadac7c8cbaf3e17f2 Mon Sep 17 00:00:00 2001 From: "M@dD3n" Date: Thu, 13 Apr 2017 09:32:42 +0300 Subject: [PATCH] Fix Captcha --- contactsnew/class.contactsnew.php | 6 +++--- contactsnew/templates/forms.tpl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 contactsnew/class.contactsnew.php mode change 100644 => 100755 contactsnew/templates/forms.tpl diff --git a/contactsnew/class.contactsnew.php b/contactsnew/class.contactsnew.php old mode 100644 new mode 100755 index 402839f..aa29978 --- a/contactsnew/class.contactsnew.php +++ b/contactsnew/class.contactsnew.php @@ -76,7 +76,7 @@ class ContactsNew /** * Конструктор */ - function __construct ($email) + function __construct () { $this->fields_main = array_keys($this->fields_main_data); $this->fields_main_in_string = "'" . implode("','",$this->fields_main) . "'"; @@ -976,7 +976,7 @@ class ContactsNew // парсим теги полей и названий $tpl = preg_replace_callback('/\[tag:fld:(\d+)]/', array($this,'_parse_tag_fld_form'), $tpl); $tpl = preg_replace_callback('/\[tag:title:([A-Za-z0-9-_]+)]/', array($this,'_parse_tag_title'),$tpl); - unset($_SESSION['captcha_keystring']); + // выполняем код после валидации eval('?>' . $this->form['code_onvalidate'] . 'Query(" diff --git a/contactsnew/templates/forms.tpl b/contactsnew/templates/forms.tpl old mode 100644 new mode 100755 index 2b483c5..2c2e7f0 --- a/contactsnew/templates/forms.tpl +++ b/contactsnew/templates/forms.tpl @@ -13,7 +13,7 @@ +