Contact Form by BestWebSoft - Version 3.19

Version Description

  • 19.06.2012 =
  • Bugfix : The bug of email address validation in admin section was fixed.
Download this release

Release Info

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

Code changes from version 3.18 to 3.19

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.18
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -216,7 +216,12 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
216
  }
217
  $cntctfrm_options = array_merge( $cntctfrm_options, $cntctfrm_options_submit );
218
  if( 'user' == $cntctfrm_options_submit['cntctfrm_select_email'] ) {
219
- if( false !== get_user_by( 'login', $cntctfrm_options_submit['cntctfrm_user_email'] ) )
 
 
 
 
 
220
  {
221
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
222
  $message = __( "Options saved.", 'contact_form' );
@@ -224,9 +229,10 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
224
  else {
225
  $error =__( "Such user is not exist. Settings are not saved.", 'contact_form' );
226
  }
 
227
  }
228
  else {
229
- if( $cntctfrm_options_submit['cntctfrm_custom_email'] != "" && preg_match( "/^((?:[a-z0-9]+(?:[a-z0-9\-_\.]+)?@[a-z0-9]+(?:[a-z0-9\-\.]+)?\.[a-z]{2,5})(','*))+$/i", trim( $cntctfrm_options_submit['cntctfrm_custom_email'] ) ) ) {
230
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
231
  $message = __( "Options saved.", 'contact_form' );
232
  }
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin for Contact Form.
6
  Author: BestWebSoft
7
+ Version: 3.19
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
216
  }
217
  $cntctfrm_options = array_merge( $cntctfrm_options, $cntctfrm_options_submit );
218
  if( 'user' == $cntctfrm_options_submit['cntctfrm_select_email'] ) {
219
+ if( function_exists('get_userdatabylogin') && false !== get_userdatabylogin( $cntctfrm_options_submit['cntctfrm_user_email'] ) )
220
+ {
221
+ update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
222
+ $message = __( "Options saved.", 'contact_form' );
223
+ }
224
+ else if( false !== get_user_by( 'login', $cntctfrm_options_submit['cntctfrm_user_email'] ) )
225
  {
226
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
227
  $message = __( "Options saved.", 'contact_form' );
229
  else {
230
  $error =__( "Such user is not exist. Settings are not saved.", 'contact_form' );
231
  }
232
+ var_dump(function_exists('get_userdatabylogin'));
233
  }
234
  else {
235
+ if( $cntctfrm_options_submit['cntctfrm_custom_email'] != "" && preg_match( "/^((?:[a-z0-9]+(?:[a-z0-9\-_\.]+)?@[a-z0-9]+(?:[a-z0-9\-\.]+)?\.[a-z]{2,5})[, ]*)+$/i", trim( $cntctfrm_options_submit['cntctfrm_custom_email'] ) ) ) {
236
  update_option( 'cntctfrm_options', $cntctfrm_options, '', 'yes' );
237
  $message = __( "Options saved.", 'contact_form' );
238
  }
languages/contact_form-bg_BG.mo CHANGED
File without changes
languages/contact_form-bg_BG.po CHANGED
File without changes
languages/contact_form-da_DK.mo CHANGED
File without changes
languages/contact_form-da_DK.po CHANGED
File without changes
languages/contact_form-de_DE.mo CHANGED
File without changes
languages/contact_form-de_DE.po CHANGED
File without changes
languages/contact_form-el_GR.mo CHANGED
File without changes
languages/contact_form-el_GR.po CHANGED
File without changes
languages/contact_form-es_ES.mo CHANGED
File without changes
languages/contact_form-es_ES.po CHANGED
File without changes
languages/contact_form-fr_FR.mo CHANGED
File without changes
languages/contact_form-fr_FR.po CHANGED
File without changes
languages/contact_form-it_IT.mo CHANGED
File without changes
languages/contact_form-it_IT.po CHANGED
File without changes
languages/contact_form-lt_LT.mo CHANGED
File without changes
languages/contact_form-lt_LT.po CHANGED
File without changes
languages/contact_form-nb_NO.mo CHANGED
File without changes
languages/contact_form-nb_NO.po CHANGED
File without changes
languages/contact_form-nl_NL.mo CHANGED
File without changes
languages/contact_form-nl_NL.po CHANGED
File without changes
languages/contact_form-pl_PL.mo CHANGED
File without changes
languages/contact_form-pl_PL.po CHANGED
File without changes
languages/contact_form-pt_BR.mo CHANGED
File without changes
languages/contact_form-pt_BR.po CHANGED
File without changes
languages/contact_form-pt_PT.mo CHANGED
File without changes
languages/contact_form-pt_PT.po CHANGED
File without changes
languages/contact_form-ru_RU.mo CHANGED
File without changes
languages/contact_form-ru_RU.po CHANGED
File without changes
languages/contact_form-sv_SE.mo CHANGED
File without changes
languages/contact_form-sv_SE.po CHANGED
File without changes
languages/contact_form-tr_TR.mo CHANGED
File without changes
languages/contact_form-tr_TR.po CHANGED
File without changes
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10
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.4
7
- Stable tag: 3.18
8
 
9
  Add Contact Form to your WordPress website.
10
 
@@ -98,6 +98,9 @@ Here is an example for German language files.
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = V3.18 - 18.06.2012 =
102
  * NEW : Arabic and Hindi language files is added.
103
  * NEW : Added ability to display or hide explanations after Attachment block.
@@ -204,6 +207,9 @@ Here is an example for German language files.
204
 
205
  == Upgrade Notice ==
206
 
 
 
 
207
  = V3.18 =
208
  Arabic and Hindi language files is added. Added ability to display or hide explanations after Attachment block.
209
 
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.4
7
+ Stable tag: 3.19
8
 
9
  Add Contact Form to your WordPress website.
10
 
98
 
99
  == Changelog ==
100
 
101
+ = V3.19 - 19.06.2012 =
102
+ * Bugfix : The bug of email address validation in admin section was fixed.
103
+
104
  = V3.18 - 18.06.2012 =
105
  * NEW : Arabic and Hindi language files is added.
106
  * NEW : Added ability to display or hide explanations after Attachment block.
207
 
208
  == Upgrade Notice ==
209
 
210
+ = V3.19 =
211
+ The bug of email address validation in admin section was fixed.
212
+
213
  = V3.18 =
214
  Arabic and Hindi language files is added. Added ability to display or hide explanations after Attachment block.
215
 
screenshot-4.jpg CHANGED
File without changes