Contact Form Email - Version 1.2.40

Version Description

  • Fixed captcha reloading issue
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Contact Form Email
Version 1.2.40
Comparing to
See all releases

Code changes from version 1.2.39 to 1.2.40

Files changed (3) hide show
  1. README.txt +5 -2
  2. cp-main-class.inc.php +1 -1
  3. form-to-email.php +1 -1
README.txt CHANGED
@@ -448,6 +448,9 @@ When you click a field already added into the contact form builder area, you can
448
 
449
  == Changelog ==
450
 
 
 
 
451
  = 1.2.39 =
452
  * Fixed form builder issue
453
 
@@ -872,5 +875,5 @@ When you click a field already added into the contact form builder area, you can
872
 
873
  == Upgrade Notice ==
874
 
875
- = 1.2.39 =
876
- * Fixed form builder issue
448
 
449
  == Changelog ==
450
 
451
+ = 1.2.40 =
452
+ * Fixed captcha reloading issue
453
+
454
  = 1.2.39 =
455
  * Fixed form builder issue
456
 
875
 
876
  == Upgrade Notice ==
877
 
878
+ = 1.2.40 =
879
+ * Fixed captcha reloading issue
cp-main-class.inc.php CHANGED
@@ -253,7 +253,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
253
  if (document.<?php echo $this->prefix; ?>_pform<?php echo '_'.$this->print_counter; ?>.hdcaptcha_<?php echo $this->prefix; ?>_post.value == '') { setTimeout( "<?php echo $this->prefix; ?>_cerror<?php echo '_'.$this->print_counter; ?>()", 100); return false; }
254
  var result = $dexQuery.ajax({ type: "GET", url: "<?php echo $this->get_site_url(); ?>/?ps=<?php echo '_'.$this->print_counter; ?>&<?php echo $this->prefix; ?>_pform_process=2&inAdmin=1&ps=<?php echo '_'.$this->print_counter; ?>&hdcaptcha_<?php echo $this->prefix; ?>_post="+document.<?php echo $this->prefix; ?>_pform<?php echo '_'.$this->print_counter; ?>.hdcaptcha_<?php echo $this->prefix; ?>_post.value, async: false }).responseText;
255
  if (result.indexOf("captchafailed") != -1) {
256
- $dexQuery("#captchaimg<?php echo '_'.$this->print_counter; ?>").attr('src', $dexQuery("#captchaimg<?php echo '_'.$this->print_counter; ?>").attr('src')+'&'+Date());
257
  setTimeout( "<?php echo $this->prefix; ?>_cerror<?php echo '_'.$this->print_counter; ?>()", 100);
258
  return false;
259
  } else <?php } ?>
253
  if (document.<?php echo $this->prefix; ?>_pform<?php echo '_'.$this->print_counter; ?>.hdcaptcha_<?php echo $this->prefix; ?>_post.value == '') { setTimeout( "<?php echo $this->prefix; ?>_cerror<?php echo '_'.$this->print_counter; ?>()", 100); return false; }
254
  var result = $dexQuery.ajax({ type: "GET", url: "<?php echo $this->get_site_url(); ?>/?ps=<?php echo '_'.$this->print_counter; ?>&<?php echo $this->prefix; ?>_pform_process=2&inAdmin=1&ps=<?php echo '_'.$this->print_counter; ?>&hdcaptcha_<?php echo $this->prefix; ?>_post="+document.<?php echo $this->prefix; ?>_pform<?php echo '_'.$this->print_counter; ?>.hdcaptcha_<?php echo $this->prefix; ?>_post.value, async: false }).responseText;
255
  if (result.indexOf("captchafailed") != -1) {
256
+ $dexQuery("#captchaimg<?php echo '_'.$this->print_counter; ?>").attr('src', $dexQuery("#captchaimg<?php echo '_'.$this->print_counter; ?>").attr('src')+'&'+Math.floor((Math.random() * 99999) + 1));
257
  setTimeout( "<?php echo $this->prefix; ?>_cerror<?php echo '_'.$this->print_counter; ?>()", 100);
258
  return false;
259
  } else <?php } ?>
form-to-email.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
- Version: 1.2.39
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
+ Version: 1.2.40
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email