Contact Form by BestWebSoft - Version 3.05

Version Description

  • 09.01.2012 =
  • Bugfix : The bug sends email to admin user even if different user is specified when setting plugin to use "use email of wordpress user" was fixed.
  • Bugfix : The bug with sending a blank attachment field of the form was fixed.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Contact Form by BestWebSoft
Version 3.05
Comparing to
See all releases

Code changes from version 3.04 to 3.05

Files changed (2) hide show
  1. contact_form.php +5 -5
  2. readme.txt +9 -2
contact_form.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form Plugin
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin for Contact Form.
6
  Author: BestWebSoft
7
- Version: 3.04
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -138,8 +138,8 @@ if( ! function_exists( 'cntctfrm_settings' ) ) {
138
  add_option( 'cntctfrm_options', $cntctfrm_option_defaults, '', 'yes' );
139
 
140
  $cntctfrm_options = get_option( 'cntctfrm_options' );
141
-
142
  $cntctfrm_options = array_merge( $cntctfrm_option_defaults, $cntctfrm_options );
 
143
  }
144
  }
145
 
@@ -483,8 +483,8 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
483
  if( isset( $_SESSION['cntctfrm_send_mail'] ) && $_SESSION['cntctfrm_send_mail'] == true )
484
  return true;
485
  if($cntctfrm_options['cntctfrm_select_email'] == 'user') {
486
- if( false !== $user = get_userdatabylogin($cntctfrm_options_submit['cntctfrm_user_email'] ) )
487
- $to = $user['user_email'];
488
  }
489
  else {
490
  $to = $cntctfrm_options['cntctfrm_custom_email'];
@@ -555,7 +555,7 @@ if( ! function_exists( 'cntctfrm_send_mail' ) ) {
555
  </body>
556
  </html>
557
  ';
558
- if( $cntctfrm_options['cntctfrm_attachment'] == 1 ) {
559
  global $path_of_uploaded_file;
560
  $headers = "";
561
  $message_block = $message;
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin for Contact Form.
6
  Author: BestWebSoft
7
+ Version: 3.05
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
138
  add_option( 'cntctfrm_options', $cntctfrm_option_defaults, '', 'yes' );
139
 
140
  $cntctfrm_options = get_option( 'cntctfrm_options' );
 
141
  $cntctfrm_options = array_merge( $cntctfrm_option_defaults, $cntctfrm_options );
142
+ update_option( 'cntctfrm_options', $cntctfrm_options );
143
  }
144
  }
145
 
483
  if( isset( $_SESSION['cntctfrm_send_mail'] ) && $_SESSION['cntctfrm_send_mail'] == true )
484
  return true;
485
  if($cntctfrm_options['cntctfrm_select_email'] == 'user') {
486
+ if( false !== $user = get_userdatabylogin($cntctfrm_options['cntctfrm_user_email'] ) )
487
+ $to = $user->user_email;
488
  }
489
  else {
490
  $to = $cntctfrm_options['cntctfrm_custom_email'];
555
  </body>
556
  </html>
557
  ';
558
+ if( $cntctfrm_options['cntctfrm_attachment'] == 1 && isset($_FILES["cntctfrm_contact_attachment"]["tmp_name"]) && $_FILES["cntctfrm_contact_attachment"]["tmp_name"] != "") {
559
  global $path_of_uploaded_file;
560
  $headers = "";
561
  $message_block = $message;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://bestwebsoft.com/
4
  Tags: Contact Form, text, contact, form, contacts, contakt form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin, attachment, send, copy, atachment, send copy
5
  Requires at least: 2.9
6
  Tested up to: 3.3
7
- Stable tag: 3.04
8
 
9
  Add Contact Form to your WordPress website.
10
 
@@ -24,7 +24,7 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
24
 
25
  = Translate =
26
 
27
- * Brazilian Portuguese (pt_BR) (thanks Breno Jacinto)
28
  * German (de_DE) (thanks Hartung Thomas)
29
  * Italian (it_IT) (thanks <a href="mailto:ilian@ultra-violet.it">Ilian Gagliardi</a>)
30
  * Russian (ru_RU)
@@ -80,6 +80,10 @@ Here is an example for German language files.
80
 
81
  == Changelog ==
82
 
 
 
 
 
83
  = V3.04 - 05.01.2012 =
84
  * NEW : Added Brazilian Portuguese and Turkish language files for plugin.
85
 
@@ -134,6 +138,9 @@ Here is an example for German language files.
134
 
135
  == Upgrade Notice ==
136
 
 
 
 
137
  = V3.04 =
138
  Added Brazilian Portuguese and Turkish language files for plugin.
139
 
4
  Tags: Contact Form, text, contact, form, contacts, contakt form, request, contact me, feedback form, feedback, contact button, contact form plugin, contacts form plugin, attachment, send, copy, atachment, send copy
5
  Requires at least: 2.9
6
  Tested up to: 3.3
7
+ Stable tag: 3.05
8
 
9
  Add Contact Form to your WordPress website.
10
 
24
 
25
  = Translate =
26
 
27
+ * Brazilian Portuguese (pt_BR) (thanks <a href="mailto:brenojac@gmail.com">Breno Jacinto, www.iconis.org.br)
28
  * German (de_DE) (thanks Hartung Thomas)
29
  * Italian (it_IT) (thanks <a href="mailto:ilian@ultra-violet.it">Ilian Gagliardi</a>)
30
  * Russian (ru_RU)
80
 
81
  == Changelog ==
82
 
83
+ = V3.05 - 09.01.2012 =
84
+ * Bugfix : The bug sends email to admin user even if different user is specified when setting plugin to use "use email of wordpress user" was fixed.
85
+ * Bugfix : The bug with sending a blank attachment field of the form was fixed.
86
+
87
  = V3.04 - 05.01.2012 =
88
  * NEW : Added Brazilian Portuguese and Turkish language files for plugin.
89
 
138
 
139
  == Upgrade Notice ==
140
 
141
+ = V3.05 =
142
+ The bug sends email to admin user even if different user is specified when setting plugin to use "use email of wordpress user" was fixed. The bug with sending a blank attachment field of the form was fixed. Upgrade immediately.
143
+
144
  = V3.04 =
145
  Added Brazilian Portuguese and Turkish language files for plugin.
146