Contact Form Email - Version 1.2.33

Version Description

  • Adjustments to make the form GDPR compliant
Download this release

Release Info

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

Code changes from version 1.2.32 to 1.2.33

Files changed (3) hide show
  1. README.txt +10 -2
  2. cp-main-class.inc.php +2 -1
  3. form-to-email.php +1 -1
README.txt CHANGED
@@ -335,6 +335,11 @@ A: To modify the **whole styles of the contact form fields and labels**, edit th
335
 
336
  To get the modifications shown into the public contact form you may have to refresh the page twice or clear the browser cache to be sure that the old CSS styles aren't still being shown from the cache.
337
 
 
 
 
 
 
338
  == Other Notes ==
339
 
340
  **Opening the contact form messages in Excel:** Go either to the "Reports" or "Messages" section. There is a button labeled "Export to CSV". CSV files can be opened in Excel, just double-click the downloaded CSV file, it will contain the selected contact form submissions, one per line.
@@ -442,6 +447,9 @@ When you click a field already added into the contact form builder area, you can
442
 
443
  == Changelog ==
444
 
 
 
 
445
  = 1.2.32 =
446
  * Renamed plugin references to avoid conflicts
447
 
@@ -848,5 +856,5 @@ When you click a field already added into the contact form builder area, you can
848
 
849
  == Upgrade Notice ==
850
 
851
- = 1.2.32 =
852
- * Renamed plugin references to avoid conflicts
335
 
336
  To get the modifications shown into the public contact form you may have to refresh the page twice or clear the browser cache to be sure that the old CSS styles aren't still being shown from the cache.
337
 
338
+ = Q: Are the forms GDPR compliant? =
339
+
340
+ A: In all plugin versions you can turn off IP tracking to avoid saving that user info. Full GDPR compliant forms can be built using the commercial versions of the plugin.
341
+
342
+
343
  == Other Notes ==
344
 
345
  **Opening the contact form messages in Excel:** Go either to the "Reports" or "Messages" section. There is a button labeled "Export to CSV". CSV files can be opened in Excel, just double-click the downloaded CSV file, it will contain the selected contact form submissions, one per line.
447
 
448
  == Changelog ==
449
 
450
+ = 1.2.33 =
451
+ * Adjustments to make the form GDPR compliant
452
+
453
  = 1.2.32 =
454
  * Renamed plugin references to avoid conflicts
455
 
856
 
857
  == Upgrade Notice ==
858
 
859
+ = 1.2.33 =
860
+ * Adjustments to make the form GDPR compliant
cp-main-class.inc.php CHANGED
@@ -578,13 +578,14 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
578
  $_SESSION['rand_code'.$sequence] = '';
579
  setCookie('rand_code'.$sequence, '', time()+36000,"/");
580
 
 
581
  // insert into database
582
  //---------------------------
583
  $wpdb->query("ALTER TABLE ".$wpdb->prefix.$this->table_messages." CHANGE `ipaddr` `ipaddr` VARCHAR(250)");
584
  $to = $this->get_option('cu_user_email_field', CP_CFEMAIL_DEFAULT_cu_user_email_field);
585
  $rows_affected = $wpdb->insert( $wpdb->prefix.$this->table_messages, array( 'formid' => $this->item,
586
  'time' => current_time('mysql'),
587
- 'ipaddr' => $this->getRealUserIP(),
588
  'notifyto' => (@$_POST[$to.$sequence]?$_POST[$to.$sequence]:''),
589
  'posted_data' => serialize($params),
590
  'data' =>$buffer_A
578
  $_SESSION['rand_code'.$sequence] = '';
579
  setCookie('rand_code'.$sequence, '', time()+36000,"/");
580
 
581
+ $saveipaddr = ('true' == $this->get_option('fp_inc_additional_info', CP_CFEMAIL_DEFAULT_fp_inc_additional_info));
582
  // insert into database
583
  //---------------------------
584
  $wpdb->query("ALTER TABLE ".$wpdb->prefix.$this->table_messages." CHANGE `ipaddr` `ipaddr` VARCHAR(250)");
585
  $to = $this->get_option('cu_user_email_field', CP_CFEMAIL_DEFAULT_cu_user_email_field);
586
  $rows_affected = $wpdb->insert( $wpdb->prefix.$this->table_messages, array( 'formid' => $this->item,
587
  'time' => current_time('mysql'),
588
+ 'ipaddr' => ($saveipaddr?$this->getRealUserIP():'-'),
589
  'notifyto' => (@$_POST[$to.$sequence]?$_POST[$to.$sequence]:''),
590
  'posted_data' => serialize($params),
591
  'data' =>$buffer_A
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.32
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.33
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email