Contact Form Email - Version 1.3.11

Version Description

  • Fixed captcha conflict
Download this release

Release Info

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

Code changes from version 1.3.10 to 1.3.11

README.txt CHANGED
@@ -456,6 +456,9 @@ When you click a field already added into the contact form builder area, you can
456
 
457
  == Changelog ==
458
 
 
 
 
459
  = 1.3.10 =
460
  * Improved form display speed
461
 
@@ -1087,5 +1090,5 @@ When you click a field already added into the contact form builder area, you can
1087
 
1088
  == Upgrade Notice ==
1089
 
1090
- = 1.3.10 =
1091
- * Improved form display speed
456
 
457
  == Changelog ==
458
 
459
+ = 1.3.11 =
460
+ * Fixed captcha conflict
461
+
462
  = 1.3.10 =
463
  * Improved form display speed
464
 
1090
 
1091
  == Upgrade Notice ==
1092
 
1093
+ = 1.3.11 =
1094
+ * Fixed captcha conflict
captcha/captcha.php CHANGED
@@ -97,12 +97,15 @@ for ($i=0;$i<$noise;$i++)
97
 
98
  switch (@$_GET["font"]) {
99
  case "font-2.ttf":
 
100
  $selected_font = "font-2.ttf";
101
  break;
102
  case "font-3.ttf":
 
103
  $selected_font = "font-3.ttf";
104
  break;
105
  case "font-4.ttf":
 
106
  $selected_font = "font-4.ttf";
107
  break;
108
  default:
97
 
98
  switch (@$_GET["font"]) {
99
  case "font-2.ttf":
100
+ case "font2":
101
  $selected_font = "font-2.ttf";
102
  break;
103
  case "font-3.ttf":
104
+ case "font3":
105
  $selected_font = "font-3.ttf";
106
  break;
107
  case "font-4.ttf":
108
+ case "font4":
109
  $selected_font = "font-4.ttf";
110
  break;
111
  default:
cp-admin-int.inc.php CHANGED
@@ -552,10 +552,10 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
552
  <th scope="row">Font:</th>
553
  <td>
554
  <select name="cv_font" onchange="generateCaptcha();" >
555
- <option value="font-1.ttf"<?php if ("font-1.ttf" == $this->get_option('cv_font', CP_CFEMAIL_DEFAULT_cv_font)) echo " selected"; ?>>Font 1</option>
556
- <option value="font-2.ttf"<?php if ("font-2.ttf" == $this->get_option('cv_font', CP_CFEMAIL_DEFAULT_cv_font)) echo " selected"; ?>>Font 2</option>
557
- <option value="font-3.ttf"<?php if ("font-3.ttf" == $this->get_option('cv_font', CP_CFEMAIL_DEFAULT_cv_font)) echo " selected"; ?>>Font 3</option>
558
- <option value="font-4.ttf"<?php if ("font-4.ttf" == $this->get_option('cv_font', CP_CFEMAIL_DEFAULT_cv_font)) echo " selected"; ?>>Font 4</option>
559
  </select>
560
  </td>
561
  </tr>
552
  <th scope="row">Font:</th>
553
  <td>
554
  <select name="cv_font" onchange="generateCaptcha();" >
555
+ <option value="font1"<?php if ("font1" == $this->get_option('cv_font', CP_CFEMAIL_DEFAULT_cv_font)) echo " selected"; ?>>Font 1</option>
556
+ <option value="font2"<?php if ("font2" == $this->get_option('cv_font', CP_CFEMAIL_DEFAULT_cv_font)) echo " selected"; ?>>Font 2</option>
557
+ <option value="font3"<?php if ("font3" == $this->get_option('cv_font', CP_CFEMAIL_DEFAULT_cv_font)) echo " selected"; ?>>Font 3</option>
558
+ <option value="font4"<?php if ("font4" == $this->get_option('cv_font', CP_CFEMAIL_DEFAULT_cv_font)) echo " selected"; ?>>Font 4</option>
559
  </select>
560
  </td>
561
  </tr>
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.3.10
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.3.11
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
js/jQuery.stringify.js CHANGED
@@ -1,46 +1 @@
1
- jQuery(function(){
2
- (function($) {
3
- $.extend({
4
-
5
- stringifyXX : function stringifyXX(obj) {
6
- encodeParam = function(param,urlp) {
7
- if (urlp)
8
- {
9
- param = param.replace(/&/g, "%26");
10
- return encodeURI(param);
11
- }
12
- else
13
- return param;
14
- }
15
- enc = function(param) {
16
- param = param.replace(/\\/g, "\\\\");
17
- param = param.replace(/\"/g, "\\\"");
18
-
19
- return param;
20
- }
21
- var t = typeof (obj);
22
- if (t != "object" || obj === null) {
23
- // simple data type
24
- if (t == "string") obj = '"' + obj + '"';
25
- return encodeParam(String(obj));
26
- } else {
27
- // recurse array or object
28
- var n, v, json = [], arr = (obj && obj.constructor == Array);
29
-
30
- for (n in obj) {
31
- //alert(n+"-----------"+obj[n]);
32
- v = obj[n];
33
- t = typeof(v);
34
- if (t!="function")
35
- //if (obj.hasOwnProperty(n))
36
- {
37
- if (t == "string") v = '"' + enc(v) + '"'; else if (t == "object" && v !== null) v = $.stringifyXX(v);
38
- json.push((arr ? "" : '"' + n + '":') + String(v));
39
- }
40
- }
41
- return encodeParam(arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
42
- }
43
- }
44
- });
45
- })(jQuery);
46
- });
1
+ jQuery(function(){var n;(n=jQuery).extend({stringifyXX:function(r){encodeParam=function(n,r){return r?(n=n.replace(/&/g,"%26"),encodeURI(n)):n},enc=function(n){return n=(n=n.replace(/\\/g,"\\\\")).replace(/\"/g,'\\"')};var e=typeof r;if("object"!=e||null===r)return"string"==e&&(r='"'+r+'"'),encodeParam(String(r));var t,c,i=[],o=r&&r.constructor==Array;for(t in r)"function"!=(e=typeof(c=r[t]))&&("string"==e?c='"'+enc(c)+'"':"object"==e&&null!==c&&(c=n.stringifyXX(c)),i.push((o?"":'"'+t+'":')+String(c)));return encodeParam(o?"[":"{")+String(i)+(o?"]":"}")}})});