Contact Form Email - Version 1.2.50

Version Description

  • Database creating encoding fix
Download this release

Release Info

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

Code changes from version 1.2.49 to 1.2.50

README.txt CHANGED
@@ -454,6 +454,9 @@ When you click a field already added into the contact form builder area, you can
454
 
455
  == Changelog ==
456
 
 
 
 
457
  = 1.2.49 =
458
  * Email reply-to header fix
459
 
@@ -908,5 +911,5 @@ When you click a field already added into the contact form builder area, you can
908
 
909
  == Upgrade Notice ==
910
 
911
- = 1.2.49 =
912
- * Email reply-to header fix
454
 
455
  == Changelog ==
456
 
457
+ = 1.2.50 =
458
+ * Database creating encoding fix
459
+
460
  = 1.2.49 =
461
  * Email reply-to header fix
462
 
911
 
912
  == Upgrade Notice ==
913
 
914
+ = 1.2.50 =
915
+ * Database creating encoding fix
cp-admin-int-list.inc.php CHANGED
@@ -409,7 +409,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
409
 
410
  <div style="clear:both"></div>
411
 
412
- <div style="margin-top:20px;"><input type="button" style="cursor:pointer;color: #006600;font-weight:bold;" onclick="window.open('https://form2email.dwbooster.com/download');" name="activateAddon" value="Activate Addons" /></div>
413
  * Add-ons are available in <a href="https://form2email.dwbooster.com/download">upgraded versions</a>.
414
  </div>
415
  </div>
409
 
410
  <div style="clear:both"></div>
411
 
412
+ <div style="margin-top:20px;"><input type="button" style="cursor:pointer;color: #006600;font-weight:bold;" onclick="window.open('https://form2email.dwbooster.com/download?src=activateaddons');" name="activateAddon" value="Activate Addons" /></div>
413
  * Add-ons are available in <a href="https://form2email.dwbooster.com/download">upgraded versions</a>.
414
  </div>
415
  </div>
cp-admin-int.inc.php CHANGED
@@ -276,7 +276,7 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
276
 
277
  <div style="border:1px dotted black;background-color:#ffffaa;padding-left:15px;padding-right:15px;padding-top:5px;width:740px;font-size:12px;color:#000000;">
278
  <p>This version supports the most frequently used field types: "Single Line Text", "Email", "Text-area" and "Acceptance Checkbox".</p>
279
- <p><button type="button" onclick="window.open('https://form2email.dwbooster.com/download');" style="cursor:pointer;height:35px;color:#20A020;font-weight:bold;">Activate the FULL form builder</button>
280
  <p>The full set of fields also supports:
281
  <ul>
282
  <li> - Conditional Logic: Hide/show fields based in previous selections.</li>
276
 
277
  <div style="border:1px dotted black;background-color:#ffffaa;padding-left:15px;padding-right:15px;padding-top:5px;width:740px;font-size:12px;color:#000000;">
278
  <p>This version supports the most frequently used field types: "Single Line Text", "Email", "Text-area" and "Acceptance Checkbox".</p>
279
+ <p><button type="button" onclick="window.open('https://form2email.dwbooster.com/download?src=activatebtn');" style="cursor:pointer;height:35px;color:#20A020;font-weight:bold;">Activate the FULL form builder</button>
280
  <p>The full set of fields also supports:
281
  <ul>
282
  <li> - Conditional Logic: Hide/show fields based in previous selections.</li>
cp-feedback.php CHANGED
@@ -2,6 +2,9 @@
2
  add_action('admin_enqueue_scripts', 'cfte_feedback_insert_adminScripts', 1);
3
  add_action( 'wp_ajax_cpcfte_feedback', 'cpcfte_feedback' );
4
 
 
 
 
5
  function cfte_feedback_insert_adminScripts($hook) {
6
  if( 'plugins.php' == $hook )
7
  {
@@ -18,6 +21,7 @@ function cfte_feedback_insert_adminScripts($hook) {
18
  function cpcfte_feedback() {
19
  $plugin_data = get_plugin_data( dirname(__FILE__).'/form-to-email.php' );
20
  $plugin_version = $plugin_data['Version'];
 
21
  $data = array(
22
  'answer' => urlencode(@$_POST["answer"]),
23
  'otherplugin' => urlencode(@$_POST["opinfo"]),
@@ -25,6 +29,7 @@ function cpcfte_feedback() {
25
  'plugin' => urlencode($plugin_data['Name']),
26
  'pluginv' => urlencode($plugin_version),
27
  'wordpress' => urlencode(get_bloginfo( 'version' )),
 
28
  'phpversion' => urlencode(phpversion ())
29
  );
30
  if (@$_POST["onymous"] == 'false') // send this data only if explicitly accepted
2
  add_action('admin_enqueue_scripts', 'cfte_feedback_insert_adminScripts', 1);
3
  add_action( 'wp_ajax_cpcfte_feedback', 'cpcfte_feedback' );
4
 
5
+ if (!get_option('installed_contact-form-to-email', ''))
6
+ update_option('installed_contact-form-to-email', time() );
7
+
8
  function cfte_feedback_insert_adminScripts($hook) {
9
  if( 'plugins.php' == $hook )
10
  {
21
  function cpcfte_feedback() {
22
  $plugin_data = get_plugin_data( dirname(__FILE__).'/form-to-email.php' );
23
  $plugin_version = $plugin_data['Version'];
24
+ $time = time() - get_option('installed_contact-form-to-email', '');
25
  $data = array(
26
  'answer' => urlencode(@$_POST["answer"]),
27
  'otherplugin' => urlencode(@$_POST["opinfo"]),
29
  'plugin' => urlencode($plugin_data['Name']),
30
  'pluginv' => urlencode($plugin_version),
31
  'wordpress' => urlencode(get_bloginfo( 'version' )),
32
+ 'itime' => urlencode($time),
33
  'phpversion' => urlencode(phpversion ())
34
  );
35
  if (@$_POST["onymous"] == 'false') // send this data only if explicitly accepted
cp-main-class.inc.php CHANGED
@@ -17,6 +17,8 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
17
  global $wpdb;
18
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
19
 
 
 
20
  $results = $wpdb->get_results("SHOW TABLES LIKE '".$wpdb->prefix.$this->table_messages."'");
21
  if (!count($results))
22
  {
@@ -29,7 +31,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
29
  data mediumtext,
30
  posted_data mediumtext,
31
  UNIQUE KEY id (id)
32
- );";
33
  $wpdb->query($sql);
34
  }
35
 
@@ -99,7 +101,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
99
  cv_text_enter_valid_captcha VARCHAR(200) DEFAULT '' NOT NULL,
100
 
101
  UNIQUE KEY id (id)
102
- );";
103
  $wpdb->query($sql);
104
  }
105
 
17
  global $wpdb;
18
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
19
 
20
+ $charset_collate = $wpdb->get_charset_collate();
21
+
22
  $results = $wpdb->get_results("SHOW TABLES LIKE '".$wpdb->prefix.$this->table_messages."'");
23
  if (!count($results))
24
  {
31
  data mediumtext,
32
  posted_data mediumtext,
33
  UNIQUE KEY id (id)
34
+ ) ".$charset_collate.";";
35
  $wpdb->query($sql);
36
  }
37
 
101
  cv_text_enter_valid_captcha VARCHAR(200) DEFAULT '' NOT NULL,
102
 
103
  UNIQUE KEY id (id)
104
+ ) ".$charset_collate.";";
105
  $wpdb->query($sql);
106
  }
107
 
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.49
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.50
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email