Contact Form Email - Version 1.2.42

Version Description

  • Update to avoid issues with ASP extensions
Download this release

Release Info

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

Code changes from version 1.2.41 to 1.2.42

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.41 =
452
  * New features for deleting messages (GDPR-related improvements)
453
 
@@ -878,5 +881,5 @@ When you click a field already added into the contact form builder area, you can
878
 
879
  == Upgrade Notice ==
880
 
881
- = 1.2.41 =
882
- * New features for deleting messages (GDPR-related improvements)
448
 
449
  == Changelog ==
450
 
451
+ = 1.2.42 =
452
+ * Update to avoid issues with ASP extensions
453
+
454
  = 1.2.41 =
455
  * New features for deleting messages (GDPR-related improvements)
456
 
881
 
882
  == Upgrade Notice ==
883
 
884
+ = 1.2.42 =
885
+ * Update to avoid issues with ASP extensions
cp-admin-int-list.inc.php CHANGED
@@ -216,7 +216,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
216
 
217
  <table cellspacing="10">
218
  <tr>
219
- <th align="left">ID</th><th align="left">Form Name</th><th align="left">&nbsp; &nbsp; Options</th><th align="left">Shorttag for Pages and Posts</th>
220
  </tr>
221
  <?php
222
 
216
 
217
  <table cellspacing="10">
218
  <tr>
219
+ <th align="left">ID</th><th align="left">Form Name</th><th align="left">&nbsp; &nbsp; Options</th><th align="left">Shortcode for Pages and Posts</th>
220
  </tr>
221
  <?php
222
 
cp-main-class.inc.php CHANGED
@@ -647,25 +647,25 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
647
  //---------------------------
648
  $attachments = array();
649
  if ('html' == $this->get_option('fp_emailformat', CP_CFEMAIL_DEFAULT_email_format))
650
- $message = str_replace('<%INFO%>',str_replace("\n","<br />",str_replace('<','&lt;',$buffer)),$this->get_option('fp_message', CP_CFEMAIL_DEFAULT_fp_message));
651
  else
652
- $message = str_replace('<%INFO%>',$buffer,$this->get_option('fp_message', CP_CFEMAIL_DEFAULT_fp_message));
653
  $subject = $this->get_option('fp_subject', CP_CFEMAIL_DEFAULT_fp_subject);
654
  foreach ($params as $item => $value)
655
  {
656
- $message = str_replace('<%'.$item.'%>',(is_array($value)?(implode(", ",$value)):($value)),$message);
657
- $subject = str_replace('<%'.$item.'%>',(is_array($value)?(implode(", ",$value)):($value)),$subject);
658
  if (strpos($item,"_link"))
659
  $attachments[] = $value;
660
  }
661
 
662
- $message = str_replace('<%itemnumber%>',$itemnumber,$message);
663
- $subject = str_replace('<%itemnumber%>',$itemnumber,$subject);
664
 
665
  for ($i=0;$i<500;$i++)
666
  {
667
- $subject = str_replace('<%fieldname'.$i.'%>',"",$subject);
668
- $message = str_replace('<%fieldname'.$i.'%>',"",$message);
669
  }
670
 
671
  $from = trim($this->get_option('fp_from_email', @CP_CFEMAIL_DEFAULT_fp_from_email));
@@ -700,21 +700,21 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
700
  if ((trim($_POST[$to]) != '' || $payer_email != '') && 'true' == $this->get_option('cu_enable_copy_to_user', CP_CFEMAIL_DEFAULT_cu_enable_copy_to_user))
701
  {
702
  if ('html' == $this->get_option('cu_emailformat', CP_CFEMAIL_DEFAULT_email_format))
703
- $message = str_replace('<%INFO%>',str_replace("\n","<br />",str_replace('<','&lt;',$buffer_A)).'</pre>',$this->get_option('cu_message', CP_CFEMAIL_DEFAULT_cu_message));
704
  else
705
- $message = str_replace('<%INFO%>',$buffer_A,$this->get_option('cu_message', CP_CFEMAIL_DEFAULT_cu_message));
706
  $subject = $this->get_option('cu_subject', CP_CFEMAIL_DEFAULT_cu_subject);
707
  foreach ($params as $item => $value)
708
  {
709
- $message = str_replace('<%'.$item.'%>',(is_array($value)?(implode(", ",$value)):($value)),$message);
710
- $subject = str_replace('<%'.$item.'%>',(is_array($value)?(implode(", ",$value)):($value)),$subject);
711
  }
712
  if ('html' == $this->get_option('cu_emailformat', CP_CFEMAIL_DEFAULT_email_format)) $content_type = "Content-Type: text/html; charset=utf-8\n"; else $content_type = "Content-Type: text/plain; charset=utf-8\n";
713
 
714
  for ($i=0;$i<500;$i++)
715
  {
716
- $subject = str_replace('<%fieldname'.$i.'%>',"",$subject);
717
- $message = str_replace('<%fieldname'.$i.'%>',"",$message);
718
  }
719
 
720
  if (!strpos($from,">"))
647
  //---------------------------
648
  $attachments = array();
649
  if ('html' == $this->get_option('fp_emailformat', CP_CFEMAIL_DEFAULT_email_format))
650
+ $message = str_replace('<'.'%INFO%'.'>',str_replace("\n","<br />",str_replace('<','&lt;',$buffer)),$this->get_option('fp_message', CP_CFEMAIL_DEFAULT_fp_message));
651
  else
652
+ $message = str_replace('<'.'%INFO%'.'>',$buffer,$this->get_option('fp_message', CP_CFEMAIL_DEFAULT_fp_message));
653
  $subject = $this->get_option('fp_subject', CP_CFEMAIL_DEFAULT_fp_subject);
654
  foreach ($params as $item => $value)
655
  {
656
+ $message = str_replace('<'.'%'.$item.'%'.'>',(is_array($value)?(implode(", ",$value)):($value)),$message);
657
+ $subject = str_replace('<'.'%'.$item.'%'.'>',(is_array($value)?(implode(", ",$value)):($value)),$subject);
658
  if (strpos($item,"_link"))
659
  $attachments[] = $value;
660
  }
661
 
662
+ $message = str_replace('<'.'%itemnumber%'.'>',$itemnumber,$message);
663
+ $subject = str_replace('<'.'%itemnumber%'.'>',$itemnumber,$subject);
664
 
665
  for ($i=0;$i<500;$i++)
666
  {
667
+ $subject = str_replace('<'.'%fieldname'.$i.'%'.'>',"",$subject);
668
+ $message = str_replace('<'.'%fieldname'.$i.'%'.'>',"",$message);
669
  }
670
 
671
  $from = trim($this->get_option('fp_from_email', @CP_CFEMAIL_DEFAULT_fp_from_email));
700
  if ((trim($_POST[$to]) != '' || $payer_email != '') && 'true' == $this->get_option('cu_enable_copy_to_user', CP_CFEMAIL_DEFAULT_cu_enable_copy_to_user))
701
  {
702
  if ('html' == $this->get_option('cu_emailformat', CP_CFEMAIL_DEFAULT_email_format))
703
+ $message = str_replace('<'.'%INFO%'.'>',str_replace("\n","<br />",str_replace('<','&lt;',$buffer_A)).'</pre>',$this->get_option('cu_message', CP_CFEMAIL_DEFAULT_cu_message));
704
  else
705
+ $message = str_replace('<'.'%INFO%'.'>',$buffer_A,$this->get_option('cu_message', CP_CFEMAIL_DEFAULT_cu_message));
706
  $subject = $this->get_option('cu_subject', CP_CFEMAIL_DEFAULT_cu_subject);
707
  foreach ($params as $item => $value)
708
  {
709
+ $message = str_replace('<'.'%'.$item.'%'.'>',(is_array($value)?(implode(", ",$value)):($value)),$message);
710
+ $subject = str_replace('<'.'%'.$item.'%'.'>',(is_array($value)?(implode(", ",$value)):($value)),$subject);
711
  }
712
  if ('html' == $this->get_option('cu_emailformat', CP_CFEMAIL_DEFAULT_email_format)) $content_type = "Content-Type: text/html; charset=utf-8\n"; else $content_type = "Content-Type: text/plain; charset=utf-8\n";
713
 
714
  for ($i=0;$i<500;$i++)
715
  {
716
+ $subject = str_replace('<'.'%fieldname'.$i.'%'.'>',"",$subject);
717
+ $message = str_replace('<'.'%fieldname'.$i.'%'.'>',"",$message);
718
  }
719
 
720
  if (!strpos($from,">"))
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.41
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.42
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email