Browse Source

Fix Captcha

master
M@dD3n 8 years ago
parent
commit
164041b7fc
  1. 6
      contactsnew/class.contactsnew.php
  2. 4
      contactsnew/templates/forms.tpl

6
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 = array_keys($this->fields_main_data);
$this->fields_main_in_string = "'" . implode("','",$this->fields_main) . "'"; $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: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); $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'] . '<?'); eval('?>' . $this->form['code_onvalidate'] . '<?');
@ -1270,7 +1270,7 @@ class ContactsNew
* Удаление выбранного e-mail * Удаление выбранного e-mail
*/ */
function email_del ($hid) function email_del ($hid)
{ {
global $AVE_DB, $AVE_Template; global $AVE_DB, $AVE_Template;
$AVE_DB->Query(" $AVE_DB->Query("

4
contactsnew/templates/forms.tpl

@ -13,7 +13,7 @@
<ul style="list-style: none; margin-left:0px;"> <ul style="list-style: none; margin-left:0px;">
<li>{#mod_info#}</li> <li>{#mod_info#}</li>
<li><strong>{#cn_mod_info#}<a class="doclink" href="index.php?do=settings&amp;cp={$sess}">{#cn_mod_info_a#}</a></strong></li> <li><strong>{#cn_mod_info#}<a class="doclink" href="index.php?do=settings&amp;cp={$sess}">{#cn_mod_info_a#}</a></strong></li>
</ul> </ul>
</div> </div>
</div> </div>
<div class="breadCrumbHolder module"> <div class="breadCrumbHolder module">
@ -86,7 +86,7 @@
</tr> </tr>
{foreachelse} {foreachelse}
<tr> <tr>
<td colspan="8"> <td colspan="10">
<ul class="messages"> <ul class="messages">
<li class="highlight yellow">{#noforms#}</li> <li class="highlight yellow">{#noforms#}</li>
</ul> </ul>

Loading…
Cancel
Save