Contact Form by BestWebSoft - Version 3.41

Version Description

  • 22.03.2013 =
  • NEW : Added ability to change a label 'Send me a copy'.
  • Bugfix : The bug of changing the message 'Action after email is sent' was fixed.
Download this release

Release Info

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

Code changes from version 3.40 to 3.41

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.40
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -150,6 +150,7 @@ if( ! function_exists( 'cntctfrm_settings' ) ) {
150
  'cntctfrm_subject_label' => array( 'en' => __( "Subject:", 'contact_form' ) ),
151
  'cntctfrm_message_label' => array( 'en' => __( "Message:", 'contact_form' ) ),
152
  'cntctfrm_attachment_label' => array( 'en' => __( "Attachment:", 'contact_form' ) ),
 
153
  'cntctfrm_submit_label' => array( 'en' => __( "Submit", 'contact_form' ) ),
154
  'cntctfrm_name_error' => array( 'en' => __( "Your name is required.", 'contact_form' ) ),
155
  'cntctfrm_email_error' => array( 'en' => __( "A proper e-mail address is required.", 'contact_form' ) ),
@@ -174,6 +175,7 @@ if( ! function_exists( 'cntctfrm_settings' ) ) {
174
  $cntctfrm_options['cntctfrm_subject_label'] = array( 'en' => $cntctfrm_options['cntctfrm_subject_label'] );
175
  $cntctfrm_options['cntctfrm_message_label'] = array( 'en' => $cntctfrm_options['cntctfrm_message_label'] );
176
  $cntctfrm_options['cntctfrm_attachment_label'] = array( 'en' => $cntctfrm_options['cntctfrm_attachment_label'] );
 
177
  $cntctfrm_options['cntctfrm_thank_text'] = array( 'en' => $cntctfrm_options['cntctfrm_thank_text'] );
178
  $cntctfrm_options['cntctfrm_submit_label'] = array( 'en' => $cntctfrm_option_defaults['cntctfrm_submit_label']['en'] );
179
  $cntctfrm_options['cntctfrm_name_error'] = array( 'en' => $cntctfrm_option_defaults['cntctfrm_name_error']['en'] );
@@ -193,6 +195,8 @@ if( ! function_exists( 'cntctfrm_settings' ) ) {
193
  $cntctfrm_options['cntctfrm_message_error']['en'] = __( "Message text is required.", 'contact_form' );
194
  if ( $cntctfrm_options['cntctfrm_phone_error']['en'] == __( "Subject is required.", 'contact_form' ) )
195
  $cntctfrm_options['cntctfrm_phone_error']['en'] = __( "Phone number is required.", 'contact_form' );
 
 
196
 
197
  update_option( 'cntctfrm_options', $cntctfrm_options );
198
  }
@@ -240,6 +244,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
240
  $cntctfrm_options_submit['cntctfrm_subject_label'] = $cntctfrm_option_defaults['cntctfrm_subject_label'];
241
  $cntctfrm_options_submit['cntctfrm_message_label'] = $cntctfrm_option_defaults['cntctfrm_message_label'];
242
  $cntctfrm_options_submit['cntctfrm_attachment_label'] = $cntctfrm_option_defaults['cntctfrm_attachment_label'];
 
243
  $cntctfrm_options_submit['cntctfrm_thank_text'] = $cntctfrm_option_defaults['cntctfrm_thank_text'];
244
  $cntctfrm_options_submit['cntctfrm_submit_label'] = $cntctfrm_option_defaults['cntctfrm_submit_label'];
245
  $cntctfrm_options_submit['cntctfrm_name_error'] = $cntctfrm_option_defaults['cntctfrm_name_error'];
@@ -258,6 +263,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
258
  $cntctfrm_options_submit['cntctfrm_subject_label']['en'] = $cntctfrm_option_defaults['cntctfrm_subject_label']['en'];
259
  $cntctfrm_options_submit['cntctfrm_message_label']['en'] = $cntctfrm_option_defaults['cntctfrm_message_label']['en'];
260
  $cntctfrm_options_submit['cntctfrm_attachment_label']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_label']['en'];
 
261
  $cntctfrm_options_submit['cntctfrm_thank_text']['en'] = $cntctfrm_option_defaults['cntctfrm_thank_text']['en'];
262
  $cntctfrm_options_submit['cntctfrm_submit_label']['en'] = $cntctfrm_option_defaults['cntctfrm_submit_label']['en'];
263
  $cntctfrm_options_submit['cntctfrm_name_error']['en'] = $cntctfrm_option_defaults['cntctfrm_name_error']['en'];
@@ -306,6 +312,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
306
  $cntctfrm_options_submit['cntctfrm_subject_label'][$key] = $_POST['cntctfrm_subject_label'][$key];
307
  $cntctfrm_options_submit['cntctfrm_message_label'][$key] = $_POST['cntctfrm_message_label'][$key];
308
  $cntctfrm_options_submit['cntctfrm_attachment_label'][$key] = $_POST['cntctfrm_attachment_label'][$key];
 
309
  $cntctfrm_options_submit['cntctfrm_thank_text'][$key] = $_POST['cntctfrm_thank_text'][$key];
310
  $cntctfrm_options_submit['cntctfrm_submit_label'][$key] = $_POST['cntctfrm_submit_label'][$key];
311
  $cntctfrm_options_submit['cntctfrm_name_error'][$key] = $_POST['cntctfrm_name_error'][$key];
@@ -326,7 +333,9 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
326
  $cntctfrm_options_submit['cntctfrm_subject_label'] = $cntctfrm_option_defaults['cntctfrm_subject_label'];
327
  $cntctfrm_options_submit['cntctfrm_message_label'] = $cntctfrm_option_defaults['cntctfrm_message_label'];
328
  $cntctfrm_options_submit['cntctfrm_attachment_label'] = $cntctfrm_option_defaults['cntctfrm_attachment_label'];
329
- $cntctfrm_options_submit['cntctfrm_thank_text'] = $cntctfrm_option_defaults['cntctfrm_thank_text'];
 
 
330
  $cntctfrm_options_submit['cntctfrm_submit_label'] = $cntctfrm_option_defaults['cntctfrm_submit_label'];
331
  $cntctfrm_options_submit['cntctfrm_name_error'] = $cntctfrm_option_defaults['cntctfrm_name_error'];
332
  $cntctfrm_options_submit['cntctfrm_email_error'] = $cntctfrm_option_defaults['cntctfrm_email_error'];
@@ -335,7 +344,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
335
  $cntctfrm_options_submit['cntctfrm_message_error'] = $cntctfrm_option_defaults['cntctfrm_message_error'];
336
  $cntctfrm_options_submit['cntctfrm_attachment_error'] = $cntctfrm_option_defaults['cntctfrm_attachment_error'];
337
  $cntctfrm_options_submit['cntctfrm_captcha_error'] = $cntctfrm_option_defaults['cntctfrm_captcha_error'];
338
- $cntctfrm_options_submit['cntctfrm_form_error'] = $cntctfrm_option_defaults['cntctfrm_form_error'];
339
  }
340
  else{
341
  $cntctfrm_options_submit['cntctfrm_name_label']['en'] = $cntctfrm_option_defaults['cntctfrm_name_label']['en'];
@@ -344,7 +353,8 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
344
  $cntctfrm_options_submit['cntctfrm_subject_label']['en'] = $cntctfrm_option_defaults['cntctfrm_subject_label']['en'];
345
  $cntctfrm_options_submit['cntctfrm_message_label']['en'] = $cntctfrm_option_defaults['cntctfrm_message_label']['en'];
346
  $cntctfrm_options_submit['cntctfrm_attachment_label']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_label']['en'];
347
- $cntctfrm_options_submit['cntctfrm_thank_text']['en'] = $cntctfrm_option_defaults['cntctfrm_thank_text']['en'];
 
348
  $cntctfrm_options_submit['cntctfrm_submit_label']['en'] = $cntctfrm_option_defaults['cntctfrm_submit_label']['en'];
349
  $cntctfrm_options_submit['cntctfrm_name_error']['en'] = $cntctfrm_option_defaults['cntctfrm_name_error']['en'];
350
  $cntctfrm_options_submit['cntctfrm_email_error']['en'] = $cntctfrm_option_defaults['cntctfrm_email_error']['en'];
@@ -354,6 +364,10 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
354
  $cntctfrm_options_submit['cntctfrm_attachment_error']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_error']['en'];
355
  $cntctfrm_options_submit['cntctfrm_captcha_error']['en'] = $cntctfrm_option_defaults['cntctfrm_captcha_error']['en'];
356
  $cntctfrm_options_submit['cntctfrm_form_error']['en'] = $cntctfrm_option_defaults['cntctfrm_form_error']['en'];
 
 
 
 
357
  }
358
  }
359
  $cntctfrm_options_submit['cntctfrm_action_after_send'] = $_POST['cntctfrm_action_after_send'];
@@ -418,7 +432,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
418
  </span>
419
  <table class="form-table">
420
  <tr valign="top">
421
- <th scope="row" style="width:195px;"><?php _e( "The user's email address:", 'contact_form' ); ?> </th>
422
  <td colspan="2">
423
  <input type="radio" id="cntctfrm_select_email_user" name="cntctfrm_select_email" value="user" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'user') echo "checked=\"checked\" "; ?>/>
424
  <select name="cntctfrm_user_email">
@@ -431,29 +445,29 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
431
  </td>
432
  </tr>
433
  <tr valign="top">
434
- <th scope="row" style="width:195px;"><?php _e( "Use this email address:", 'contact_form' ); ?> </th>
435
  <td colspan="2">
436
  <input type="radio" id="cntctfrm_select_email_custom" name="cntctfrm_select_email" value="custom" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'custom') echo "checked=\"checked\" "; ?>/> <input type="text" name="cntctfrm_custom_email" value="<?php echo $cntctfrm_options['cntctfrm_custom_email']; ?>" onfocus="document.getElementById('cntctfrm_select_email_custom').checked = true;" />
437
  <span class="cntctfrm_info"><?php _e( "Enter the email address you want the messages forwarded to.", 'contact_form' ); ?></span>
438
  </td>
439
  </tr>
440
  <tr valign="top">
441
- <th colspan="3" scope="row" style="width:195px;"><input type="checkbox" id="cntctfrm_additions_options" name="cntctfrm_additions_options" value="1" <?php if($cntctfrm_options['cntctfrm_additions_options'] == '1') echo "checked=\"checked\" "; ?> /> <?php _e( "Additional options", 'contact_form' ); ?></th>
442
  </tr>
443
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
444
- <th scope="row" style="width:195px;"><?php _e( "Display Attachment block", 'contact_form' ); ?></th>
445
  <td colspan="2">
446
  <input type="checkbox" id="cntctfrm_attachment" name="cntctfrm_attachment" value="1" <?php if($cntctfrm_options['cntctfrm_attachment'] == '1') echo "checked=\"checked\" "; ?>/> <span class="cntctfrm_info"><?php echo __( "Users can attach the following file formats", 'contact_form' ) . ": html, txt, css, gif, png, jpeg, jpg, tiff, bmp, ai, eps, ps, rtf, pdf, doc, docx, xls, zip, rar, wav, mp3, ppt"; ?></span>
447
  </td>
448
  </tr>
449
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
450
- <th scope="row" style="width:195px;"><?php _e( "Display Attachment tips", 'contact_form' ); ?></th>
451
  <td colspan="2">
452
  <input type="checkbox" id="cntctfrm_attachment_explanations" name="cntctfrm_attachment_explanations" value="1" <?php if( $cntctfrm_options['cntctfrm_attachment_explanations'] == '1' && $cntctfrm_options['cntctfrm_attachment'] == '1' ) echo "checked=\"checked\" "; ?>/> <span class="cntctfrm_info"><?php echo __( "Display tips below the Attachment block", 'contact_form' ); ?></span>
453
  </td>
454
  </tr>
455
  <tr valign="top" class="cntctfrm_additions_block <?php if( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
456
- <th scope="row" style="width:195px;"><?php _e( "Display Send me a copy block", 'contact_form' ); ?></th>
457
  <td colspan="2">
458
  <input type="checkbox" id="cntctfrm_send_copy" name="cntctfrm_send_copy" value="1" <?php if($cntctfrm_options['cntctfrm_send_copy'] == '1') echo "checked=\"checked\" "; ?>/>
459
  </td>
@@ -474,13 +488,13 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
474
  </td>
475
  </tr>
476
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
477
- <th scope="row" style="width:195px;"><?php _e( "Change text of the 'FROM' field", 'contact_form' ); ?></th>
478
  <td colspan="2">
479
  <input type="text" style="width:200px;" name="cntctfrm_from_field" value="<?php echo stripslashes( $cntctfrm_options['cntctfrm_from_field'] ); ?>" /><br />
480
  </td>
481
  </tr>
482
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
483
- <th scope="row" style="width:195px;"><?php _e( "Enter the email address in the 'From' field", 'contact_form' ); ?></th>
484
  <td colspan="2">
485
  <input type="radio" id="cntctfrm_from_email" name="cntctfrm_from_email" value="user" <?php if( $cntctfrm_options['cntctfrm_from_email'] == 'user' ) echo "checked=\"checked\" "; ?>/> User email <span class="cntctfrm_info">(<?php _e( "The email address of the user who fills the form is going to be used in the field 'From'.", 'contact_form' ); ?>)</span><br />
486
  <input type="radio" id="cntctfrm_from_custom_email" name="cntctfrm_from_email" value="custom" <?php if($cntctfrm_options['cntctfrm_from_email'] == 'custom') echo "checked=\"checked\" "; ?>/> <input type="text" name="cntctfrm_custom_from_email" value="<?php echo $cntctfrm_options['cntctfrm_custom_from_email']; ?>" onfocus="document.getElementById('cntctfrm_from_custom_email').checked = true;" />
@@ -488,13 +502,13 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
488
  </td>
489
  </tr>
490
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
491
- <th scope="row" style="width:195px;"><?php _e( "Display phone field", 'contact_form' ); ?></th>
492
  <td colspan="2">
493
  <input type="checkbox" id="cntctfrm_display_phone_field" name="cntctfrm_display_phone_field" value="1" <?php if($cntctfrm_options['cntctfrm_display_phone_field'] == '1') echo "checked=\"checked\" "; ?>/>
494
  </td>
495
  </tr>
496
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
497
- <th scope="row" style="width:195px;"><?php _e( "Required fields", 'contact_form' ); ?></th>
498
  <td colspan="2">
499
  <input type="checkbox" id="cntctfrm_required_name_field" name="cntctfrm_required_name_field" value="1" <?php if($cntctfrm_options['cntctfrm_required_name_field'] == '1') echo "checked=\"checked\" "; ?>/> <?php _e( "Name", 'contact_form' ); ?><br />
500
  <input type="checkbox" id="cntctfrm_required_email_field" name="cntctfrm_required_email_field" value="1" <?php if($cntctfrm_options['cntctfrm_required_email_field'] == '1') echo "checked=\"checked\" "; ?>/> <?php _e( "E-Mail Address", 'contact_form' ); ?><br />
@@ -504,7 +518,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
504
  </td>
505
  </tr>
506
  <tr valign="top" class="cntctfrm_additions_block <?php if( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
507
- <th scope="row" style="width:195px;"><?php _e( "Display additional info in email", 'contact_form' ); ?></th>
508
  <td style="width:15px;">
509
  <input type="checkbox" id="cntctfrm_display_add_info" name="cntctfrm_display_add_info" value="1" <?php if($cntctfrm_options['cntctfrm_display_add_info'] == '1') echo "checked=\"checked\" "; ?>/>
510
  </td>
@@ -516,7 +530,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
516
  </td>
517
  </tr>
518
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
519
- <th scope="row" style="width:195px;"><?php _e( "Language settings for the field names in the form", 'contact_form' ); ?></th>
520
  <td colspan="2">
521
  <select name="cntctfrm_languages" id="cntctfrm_languages" style="width:300px;">
522
  <?php foreach ( $lang_codes as $key=>$val ) {
@@ -529,7 +543,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
529
  </td>
530
  </tr>
531
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
532
- <th scope="row" style="width:195px;"><?php _e( "Change the names of the contact form fields and error messages", 'contact_form' ); ?></th>
533
  <td style="width:15px;">
534
  <input type="checkbox" id="cntctfrm_change_label" name="cntctfrm_change_label" value="1" <?php if($cntctfrm_options['cntctfrm_change_label'] == '1') echo "checked=\"checked\" "; ?>/>
535
  </td>
@@ -548,6 +562,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
548
  <input type="text" name="cntctfrm_subject_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_subject_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Subject:", 'contact_form' ); ?></span><br />
549
  <input type="text" name="cntctfrm_message_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_message_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Message:", 'contact_form' ); ?></span><br />
550
  <input type="text" name="cntctfrm_attachment_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_attachment_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Attachment:", 'contact_form' ); ?></span><br />
 
551
  <input type="text" name="cntctfrm_submit_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_submit_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Submit", 'contact_form' ); ?></span><br />
552
  <input type="text" name="cntctfrm_name_error[en]" value="<?php echo $cntctfrm_options['cntctfrm_name_error']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Error message for the Name field", 'contact_form' ); ?></span><br />
553
  <input type="text" name="cntctfrm_email_error[en]" value="<?php echo $cntctfrm_options['cntctfrm_email_error']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Error message for the Email field", 'contact_form' ); ?></span><br />
@@ -568,6 +583,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
568
  <input type="text" name="cntctfrm_subject_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_subject_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_subject_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Subject:", 'contact_form' ); ?></span><br />
569
  <input type="text" name="cntctfrm_message_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_message_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_message_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Message:", 'contact_form' ); ?></span><br />
570
  <input type="text" name="cntctfrm_attachment_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_attachment_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_attachment_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Attachment:", 'contact_form' ); ?></span><br />
 
571
  <input type="text" name="cntctfrm_submit_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_submit_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_submit_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Submit", 'contact_form' ); ?></span><br />
572
  <input type="text" name="cntctfrm_name_error[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_name_error'][$val] ) ) echo $cntctfrm_options['cntctfrm_name_error'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Error message for the Name field", 'contact_form' ); ?></span><br />
573
  <input type="text" name="cntctfrm_email_error[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_email_error'][$val] ) ) echo $cntctfrm_options['cntctfrm_email_error'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Error message for the Email field", 'contact_form' ); ?></span><br />
@@ -584,7 +600,7 @@ if( ! function_exists( 'cntctfrm_settings_page' ) ) {
584
  </td>
585
  </tr>
586
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
587
- <th scope="row" style="width:195px;"><?php _e( "Action after email is sent", 'contact_form' ); ?></th>
588
  <td colspan="2" class="cntctfrm_action_after_send_block">
589
  <input type="radio" id="cntctfrm_action_after_send" name="cntctfrm_action_after_send" value="1" <?php if($cntctfrm_options['cntctfrm_action_after_send'] == '1') echo "checked=\"checked\" "; ?>/> <?php _e( "Display text", 'contact_form' ); ?><br />
590
  <div class="cntctfrm_label_language_tab cntctfrm_active" id="cntctfrm_text_en"><?php _e('English', 'contact_form'); ?></div>
@@ -735,7 +751,7 @@ if( ! function_exists( 'cntctfrm_display_form' ) ) {
735
  if($cntctfrm_options['cntctfrm_send_copy'] == 1 ) {
736
  $content .= '<div style="text-align: left;">
737
  <input type="checkbox" value="1" name="cntctfrm_contact_send_copy" id="cntctfrm_contact_send_copy" style="text-align: left; margin: 0;" '.( $send_copy == '1' ? " checked=\"checked\" " : "" ).' />
738
- <label for="cntctfrm_contact_send_copy">'. __( "Send me a copy", 'contact_form' ). '</label>
739
  </div>';
740
  }
741
 
@@ -1197,6 +1213,8 @@ function cntctfrm_remove_language(){
1197
  unset( $cntctfrm_options['cntctfrm_message_label'][$_REQUEST['lang']]);
1198
  if( isset( $cntctfrm_options['cntctfrm_attachment_label'][$_REQUEST['lang']] ) )
1199
  unset( $cntctfrm_options['cntctfrm_attachment_label'][$_REQUEST['lang']]);
 
 
1200
  if( isset( $cntctfrm_options['cntctfrm_thank_text'][$_REQUEST['lang']] ) )
1201
  unset( $cntctfrm_options['cntctfrm_thank_text'][$_REQUEST['lang']]);
1202
  if( isset( $cntctfrm_options['cntctfrm_submit_label'][$_REQUEST['lang']] ) )
@@ -1221,6 +1239,14 @@ function cntctfrm_remove_language(){
1221
  die();
1222
  }
1223
 
 
 
 
 
 
 
 
 
1224
  add_action( 'init', 'cntctfrm_plugin_init' );
1225
 
1226
  add_action( 'init', 'cntctfrm_check_and_send' );
@@ -1246,4 +1272,5 @@ add_filter( 'wp_mail_from_name', 'cntctfrm_email_name_filter', 10, 1);
1246
  add_action( 'wp_ajax_cntctfrm_add_language', 'cntctfrm_add_language' );
1247
  add_action( 'wp_ajax_cntctfrm_remove_language', 'cntctfrm_remove_language' );
1248
 
 
1249
  ?>
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin for Contact Form.
6
  Author: BestWebSoft
7
+ Version: 3.41
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
150
  'cntctfrm_subject_label' => array( 'en' => __( "Subject:", 'contact_form' ) ),
151
  'cntctfrm_message_label' => array( 'en' => __( "Message:", 'contact_form' ) ),
152
  'cntctfrm_attachment_label' => array( 'en' => __( "Attachment:", 'contact_form' ) ),
153
+ 'cntctfrm_send_copy_label' => array( 'en' => __( "Send me a copy", 'contact_form' ) ),
154
  'cntctfrm_submit_label' => array( 'en' => __( "Submit", 'contact_form' ) ),
155
  'cntctfrm_name_error' => array( 'en' => __( "Your name is required.", 'contact_form' ) ),
156
  'cntctfrm_email_error' => array( 'en' => __( "A proper e-mail address is required.", 'contact_form' ) ),
175
  $cntctfrm_options['cntctfrm_subject_label'] = array( 'en' => $cntctfrm_options['cntctfrm_subject_label'] );
176
  $cntctfrm_options['cntctfrm_message_label'] = array( 'en' => $cntctfrm_options['cntctfrm_message_label'] );
177
  $cntctfrm_options['cntctfrm_attachment_label'] = array( 'en' => $cntctfrm_options['cntctfrm_attachment_label'] );
178
+ $cntctfrm_options['cntctfrm_send_copy_label'] = array( 'en' => $cntctfrm_options['cntctfrm_send_copy_label'] );
179
  $cntctfrm_options['cntctfrm_thank_text'] = array( 'en' => $cntctfrm_options['cntctfrm_thank_text'] );
180
  $cntctfrm_options['cntctfrm_submit_label'] = array( 'en' => $cntctfrm_option_defaults['cntctfrm_submit_label']['en'] );
181
  $cntctfrm_options['cntctfrm_name_error'] = array( 'en' => $cntctfrm_option_defaults['cntctfrm_name_error']['en'] );
195
  $cntctfrm_options['cntctfrm_message_error']['en'] = __( "Message text is required.", 'contact_form' );
196
  if ( $cntctfrm_options['cntctfrm_phone_error']['en'] == __( "Subject is required.", 'contact_form' ) )
197
  $cntctfrm_options['cntctfrm_phone_error']['en'] = __( "Phone number is required.", 'contact_form' );
198
+ if ( $cntctfrm_options['cntctfrm_send_copy_label']['en'] == NULL )
199
+ $cntctfrm_options['cntctfrm_send_copy_label']['en'] = __( "Send me a copy", 'contact_form' );
200
 
201
  update_option( 'cntctfrm_options', $cntctfrm_options );
202
  }
244
  $cntctfrm_options_submit['cntctfrm_subject_label'] = $cntctfrm_option_defaults['cntctfrm_subject_label'];
245
  $cntctfrm_options_submit['cntctfrm_message_label'] = $cntctfrm_option_defaults['cntctfrm_message_label'];
246
  $cntctfrm_options_submit['cntctfrm_attachment_label'] = $cntctfrm_option_defaults['cntctfrm_attachment_label'];
247
+ $cntctfrm_options_submit['cntctfrm_send_copy_label'] = $cntctfrm_option_defaults['cntctfrm_send_copy_label'];
248
  $cntctfrm_options_submit['cntctfrm_thank_text'] = $cntctfrm_option_defaults['cntctfrm_thank_text'];
249
  $cntctfrm_options_submit['cntctfrm_submit_label'] = $cntctfrm_option_defaults['cntctfrm_submit_label'];
250
  $cntctfrm_options_submit['cntctfrm_name_error'] = $cntctfrm_option_defaults['cntctfrm_name_error'];
263
  $cntctfrm_options_submit['cntctfrm_subject_label']['en'] = $cntctfrm_option_defaults['cntctfrm_subject_label']['en'];
264
  $cntctfrm_options_submit['cntctfrm_message_label']['en'] = $cntctfrm_option_defaults['cntctfrm_message_label']['en'];
265
  $cntctfrm_options_submit['cntctfrm_attachment_label']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_label']['en'];
266
+ $cntctfrm_options_submit['cntctfrm_send_copy_label']['en'] = $cntctfrm_option_defaults['cntctfrm_send_copy_label']['en'];
267
  $cntctfrm_options_submit['cntctfrm_thank_text']['en'] = $cntctfrm_option_defaults['cntctfrm_thank_text']['en'];
268
  $cntctfrm_options_submit['cntctfrm_submit_label']['en'] = $cntctfrm_option_defaults['cntctfrm_submit_label']['en'];
269
  $cntctfrm_options_submit['cntctfrm_name_error']['en'] = $cntctfrm_option_defaults['cntctfrm_name_error']['en'];
312
  $cntctfrm_options_submit['cntctfrm_subject_label'][$key] = $_POST['cntctfrm_subject_label'][$key];
313
  $cntctfrm_options_submit['cntctfrm_message_label'][$key] = $_POST['cntctfrm_message_label'][$key];
314
  $cntctfrm_options_submit['cntctfrm_attachment_label'][$key] = $_POST['cntctfrm_attachment_label'][$key];
315
+ $cntctfrm_options_submit['cntctfrm_send_copy_label'][$key] = $_POST['cntctfrm_send_copy_label'][$key];
316
  $cntctfrm_options_submit['cntctfrm_thank_text'][$key] = $_POST['cntctfrm_thank_text'][$key];
317
  $cntctfrm_options_submit['cntctfrm_submit_label'][$key] = $_POST['cntctfrm_submit_label'][$key];
318
  $cntctfrm_options_submit['cntctfrm_name_error'][$key] = $_POST['cntctfrm_name_error'][$key];
333
  $cntctfrm_options_submit['cntctfrm_subject_label'] = $cntctfrm_option_defaults['cntctfrm_subject_label'];
334
  $cntctfrm_options_submit['cntctfrm_message_label'] = $cntctfrm_option_defaults['cntctfrm_message_label'];
335
  $cntctfrm_options_submit['cntctfrm_attachment_label'] = $cntctfrm_option_defaults['cntctfrm_attachment_label'];
336
+ $cntctfrm_options_submit['cntctfrm_send_copy_label'] = $cntctfrm_option_defaults['cntctfrm_send_copy_label'];
337
+ // $cntctfrm_options_submit['cntctfrm_thank_text'] = $cntctfrm_option_defaults['cntctfrm_thank_text'];
338
+ $cntctfrm_options_submit['cntctfrm_thank_text'] = $_POST['cntctfrm_thank_text'];
339
  $cntctfrm_options_submit['cntctfrm_submit_label'] = $cntctfrm_option_defaults['cntctfrm_submit_label'];
340
  $cntctfrm_options_submit['cntctfrm_name_error'] = $cntctfrm_option_defaults['cntctfrm_name_error'];
341
  $cntctfrm_options_submit['cntctfrm_email_error'] = $cntctfrm_option_defaults['cntctfrm_email_error'];
344
  $cntctfrm_options_submit['cntctfrm_message_error'] = $cntctfrm_option_defaults['cntctfrm_message_error'];
345
  $cntctfrm_options_submit['cntctfrm_attachment_error'] = $cntctfrm_option_defaults['cntctfrm_attachment_error'];
346
  $cntctfrm_options_submit['cntctfrm_captcha_error'] = $cntctfrm_option_defaults['cntctfrm_captcha_error'];
347
+ $cntctfrm_options_submit['cntctfrm_form_error'] = $cntctfrm_option_defaults['cntctfrm_form_error'];
348
  }
349
  else{
350
  $cntctfrm_options_submit['cntctfrm_name_label']['en'] = $cntctfrm_option_defaults['cntctfrm_name_label']['en'];
353
  $cntctfrm_options_submit['cntctfrm_subject_label']['en'] = $cntctfrm_option_defaults['cntctfrm_subject_label']['en'];
354
  $cntctfrm_options_submit['cntctfrm_message_label']['en'] = $cntctfrm_option_defaults['cntctfrm_message_label']['en'];
355
  $cntctfrm_options_submit['cntctfrm_attachment_label']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_label']['en'];
356
+ $cntctfrm_options_submit['cntctfrm_send_copy_label']['en'] = $cntctfrm_option_defaults['cntctfrm_send_copy_label']['en'];
357
+ // $cntctfrm_options_submit['cntctfrm_thank_text']['en'] = $cntctfrm_option_defaults['cntctfrm_thank_text']['en'];
358
  $cntctfrm_options_submit['cntctfrm_submit_label']['en'] = $cntctfrm_option_defaults['cntctfrm_submit_label']['en'];
359
  $cntctfrm_options_submit['cntctfrm_name_error']['en'] = $cntctfrm_option_defaults['cntctfrm_name_error']['en'];
360
  $cntctfrm_options_submit['cntctfrm_email_error']['en'] = $cntctfrm_option_defaults['cntctfrm_email_error']['en'];
364
  $cntctfrm_options_submit['cntctfrm_attachment_error']['en'] = $cntctfrm_option_defaults['cntctfrm_attachment_error']['en'];
365
  $cntctfrm_options_submit['cntctfrm_captcha_error']['en'] = $cntctfrm_option_defaults['cntctfrm_captcha_error']['en'];
366
  $cntctfrm_options_submit['cntctfrm_form_error']['en'] = $cntctfrm_option_defaults['cntctfrm_form_error']['en'];
367
+
368
+ foreach( $_POST['cntctfrm_thank_text'] as $key => $val ) {
369
+ $cntctfrm_options_submit['cntctfrm_thank_text'][$key] = $_POST['cntctfrm_thank_text'][$key];
370
+ }
371
  }
372
  }
373
  $cntctfrm_options_submit['cntctfrm_action_after_send'] = $_POST['cntctfrm_action_after_send'];
432
  </span>
433
  <table class="form-table">
434
  <tr valign="top">
435
+ <th scope="row" style="width:200px;"><?php _e( "The user's email address:", 'contact_form' ); ?> </th>
436
  <td colspan="2">
437
  <input type="radio" id="cntctfrm_select_email_user" name="cntctfrm_select_email" value="user" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'user') echo "checked=\"checked\" "; ?>/>
438
  <select name="cntctfrm_user_email">
445
  </td>
446
  </tr>
447
  <tr valign="top">
448
+ <th scope="row" style="width:200px;"><?php _e( "Use this email address:", 'contact_form' ); ?> </th>
449
  <td colspan="2">
450
  <input type="radio" id="cntctfrm_select_email_custom" name="cntctfrm_select_email" value="custom" <?php if($cntctfrm_options['cntctfrm_select_email'] == 'custom') echo "checked=\"checked\" "; ?>/> <input type="text" name="cntctfrm_custom_email" value="<?php echo $cntctfrm_options['cntctfrm_custom_email']; ?>" onfocus="document.getElementById('cntctfrm_select_email_custom').checked = true;" />
451
  <span class="cntctfrm_info"><?php _e( "Enter the email address you want the messages forwarded to.", 'contact_form' ); ?></span>
452
  </td>
453
  </tr>
454
  <tr valign="top">
455
+ <th colspan="3" scope="row" style="width:200px;"><input type="checkbox" id="cntctfrm_additions_options" name="cntctfrm_additions_options" value="1" <?php if($cntctfrm_options['cntctfrm_additions_options'] == '1') echo "checked=\"checked\" "; ?> /> <?php _e( "Additional options", 'contact_form' ); ?></th>
456
  </tr>
457
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
458
+ <th scope="row" style="width:200px;"><?php _e( "Display Attachment block", 'contact_form' ); ?></th>
459
  <td colspan="2">
460
  <input type="checkbox" id="cntctfrm_attachment" name="cntctfrm_attachment" value="1" <?php if($cntctfrm_options['cntctfrm_attachment'] == '1') echo "checked=\"checked\" "; ?>/> <span class="cntctfrm_info"><?php echo __( "Users can attach the following file formats", 'contact_form' ) . ": html, txt, css, gif, png, jpeg, jpg, tiff, bmp, ai, eps, ps, rtf, pdf, doc, docx, xls, zip, rar, wav, mp3, ppt"; ?></span>
461
  </td>
462
  </tr>
463
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
464
+ <th scope="row" style="width:200px;"><?php _e( "Display Attachment tips", 'contact_form' ); ?></th>
465
  <td colspan="2">
466
  <input type="checkbox" id="cntctfrm_attachment_explanations" name="cntctfrm_attachment_explanations" value="1" <?php if( $cntctfrm_options['cntctfrm_attachment_explanations'] == '1' && $cntctfrm_options['cntctfrm_attachment'] == '1' ) echo "checked=\"checked\" "; ?>/> <span class="cntctfrm_info"><?php echo __( "Display tips below the Attachment block", 'contact_form' ); ?></span>
467
  </td>
468
  </tr>
469
  <tr valign="top" class="cntctfrm_additions_block <?php if( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
470
+ <th scope="row" style="width:200px;"><?php _e( "Display Send me a copy block", 'contact_form' ); ?></th>
471
  <td colspan="2">
472
  <input type="checkbox" id="cntctfrm_send_copy" name="cntctfrm_send_copy" value="1" <?php if($cntctfrm_options['cntctfrm_send_copy'] == '1') echo "checked=\"checked\" "; ?>/>
473
  </td>
488
  </td>
489
  </tr>
490
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
491
+ <th scope="row" style="width:200px;"><?php _e( "Change text of the 'FROM' field", 'contact_form' ); ?></th>
492
  <td colspan="2">
493
  <input type="text" style="width:200px;" name="cntctfrm_from_field" value="<?php echo stripslashes( $cntctfrm_options['cntctfrm_from_field'] ); ?>" /><br />
494
  </td>
495
  </tr>
496
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
497
+ <th scope="row" style="width:200px;"><?php _e( "Enter the email address in the 'From' field", 'contact_form' ); ?></th>
498
  <td colspan="2">
499
  <input type="radio" id="cntctfrm_from_email" name="cntctfrm_from_email" value="user" <?php if( $cntctfrm_options['cntctfrm_from_email'] == 'user' ) echo "checked=\"checked\" "; ?>/> User email <span class="cntctfrm_info">(<?php _e( "The email address of the user who fills the form is going to be used in the field 'From'.", 'contact_form' ); ?>)</span><br />
500
  <input type="radio" id="cntctfrm_from_custom_email" name="cntctfrm_from_email" value="custom" <?php if($cntctfrm_options['cntctfrm_from_email'] == 'custom') echo "checked=\"checked\" "; ?>/> <input type="text" name="cntctfrm_custom_from_email" value="<?php echo $cntctfrm_options['cntctfrm_custom_from_email']; ?>" onfocus="document.getElementById('cntctfrm_from_custom_email').checked = true;" />
502
  </td>
503
  </tr>
504
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
505
+ <th scope="row" style="width:200px;"><?php _e( "Display phone field", 'contact_form' ); ?></th>
506
  <td colspan="2">
507
  <input type="checkbox" id="cntctfrm_display_phone_field" name="cntctfrm_display_phone_field" value="1" <?php if($cntctfrm_options['cntctfrm_display_phone_field'] == '1') echo "checked=\"checked\" "; ?>/>
508
  </td>
509
  </tr>
510
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
511
+ <th scope="row" style="width:200px;"><?php _e( "Required fields", 'contact_form' ); ?></th>
512
  <td colspan="2">
513
  <input type="checkbox" id="cntctfrm_required_name_field" name="cntctfrm_required_name_field" value="1" <?php if($cntctfrm_options['cntctfrm_required_name_field'] == '1') echo "checked=\"checked\" "; ?>/> <?php _e( "Name", 'contact_form' ); ?><br />
514
  <input type="checkbox" id="cntctfrm_required_email_field" name="cntctfrm_required_email_field" value="1" <?php if($cntctfrm_options['cntctfrm_required_email_field'] == '1') echo "checked=\"checked\" "; ?>/> <?php _e( "E-Mail Address", 'contact_form' ); ?><br />
518
  </td>
519
  </tr>
520
  <tr valign="top" class="cntctfrm_additions_block <?php if( $cntctfrm_options['cntctfrm_additions_options'] == '0' ) echo "cntctfrm_hidden"; ?>">
521
+ <th scope="row" style="width:200px;"><?php _e( "Display additional info in email", 'contact_form' ); ?></th>
522
  <td style="width:15px;">
523
  <input type="checkbox" id="cntctfrm_display_add_info" name="cntctfrm_display_add_info" value="1" <?php if($cntctfrm_options['cntctfrm_display_add_info'] == '1') echo "checked=\"checked\" "; ?>/>
524
  </td>
530
  </td>
531
  </tr>
532
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
533
+ <th scope="row" style="width:200px;"><?php _e( "Language settings for the field names in the form", 'contact_form' ); ?></th>
534
  <td colspan="2">
535
  <select name="cntctfrm_languages" id="cntctfrm_languages" style="width:300px;">
536
  <?php foreach ( $lang_codes as $key=>$val ) {
543
  </td>
544
  </tr>
545
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
546
+ <th scope="row" style="width:200px;"><?php _e( "Change the names of the contact form fields and error messages", 'contact_form' ); ?></th>
547
  <td style="width:15px;">
548
  <input type="checkbox" id="cntctfrm_change_label" name="cntctfrm_change_label" value="1" <?php if($cntctfrm_options['cntctfrm_change_label'] == '1') echo "checked=\"checked\" "; ?>/>
549
  </td>
562
  <input type="text" name="cntctfrm_subject_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_subject_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Subject:", 'contact_form' ); ?></span><br />
563
  <input type="text" name="cntctfrm_message_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_message_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Message:", 'contact_form' ); ?></span><br />
564
  <input type="text" name="cntctfrm_attachment_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_attachment_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Attachment:", 'contact_form' ); ?></span><br />
565
+ <input type="text" name="cntctfrm_send_copy_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_send_copy_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Send me a copy", 'contact_form' ); ?></span><br />
566
  <input type="text" name="cntctfrm_submit_label[en]" value="<?php echo $cntctfrm_options['cntctfrm_submit_label']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Submit", 'contact_form' ); ?></span><br />
567
  <input type="text" name="cntctfrm_name_error[en]" value="<?php echo $cntctfrm_options['cntctfrm_name_error']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Error message for the Name field", 'contact_form' ); ?></span><br />
568
  <input type="text" name="cntctfrm_email_error[en]" value="<?php echo $cntctfrm_options['cntctfrm_email_error']['en']; ?>" /> <span class="cntctfrm_info"><?php _e( "Error message for the Email field", 'contact_form' ); ?></span><br />
583
  <input type="text" name="cntctfrm_subject_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_subject_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_subject_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Subject:", 'contact_form' ); ?></span><br />
584
  <input type="text" name="cntctfrm_message_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_message_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_message_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Message:", 'contact_form' ); ?></span><br />
585
  <input type="text" name="cntctfrm_attachment_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_attachment_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_attachment_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Attachment:", 'contact_form' ); ?></span><br />
586
+ <input type="text" name="cntctfrm_send_copy_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_send_copy_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_send_copy_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Send me a copy", 'contact_form' ); ?></span><br />
587
  <input type="text" name="cntctfrm_submit_label[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_submit_label'][$val] ) ) echo $cntctfrm_options['cntctfrm_submit_label'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Submit", 'contact_form' ); ?></span><br />
588
  <input type="text" name="cntctfrm_name_error[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_name_error'][$val] ) ) echo $cntctfrm_options['cntctfrm_name_error'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Error message for the Name field", 'contact_form' ); ?></span><br />
589
  <input type="text" name="cntctfrm_email_error[<?php echo $val; ?>]" value="<?php if( isset( $cntctfrm_options['cntctfrm_email_error'][$val] ) ) echo $cntctfrm_options['cntctfrm_email_error'][$val]; ?>" /> <span class="cntctfrm_info"><?php _e( "Error message for the Email field", 'contact_form' ); ?></span><br />
600
  </td>
601
  </tr>
602
  <tr valign="top" class="cntctfrm_additions_block <?php if($cntctfrm_options['cntctfrm_additions_options'] == '0') echo "cntctfrm_hidden"; ?>">
603
+ <th scope="row" style="width:200px;"><?php _e( "Action after email is sent", 'contact_form' ); ?></th>
604
  <td colspan="2" class="cntctfrm_action_after_send_block">
605
  <input type="radio" id="cntctfrm_action_after_send" name="cntctfrm_action_after_send" value="1" <?php if($cntctfrm_options['cntctfrm_action_after_send'] == '1') echo "checked=\"checked\" "; ?>/> <?php _e( "Display text", 'contact_form' ); ?><br />
606
  <div class="cntctfrm_label_language_tab cntctfrm_active" id="cntctfrm_text_en"><?php _e('English', 'contact_form'); ?></div>
751
  if($cntctfrm_options['cntctfrm_send_copy'] == 1 ) {
752
  $content .= '<div style="text-align: left;">
753
  <input type="checkbox" value="1" name="cntctfrm_contact_send_copy" id="cntctfrm_contact_send_copy" style="text-align: left; margin: 0;" '.( $send_copy == '1' ? " checked=\"checked\" " : "" ).' />
754
+ <label for="cntctfrm_contact_send_copy">'. $cntctfrm_options['cntctfrm_send_copy_label'][$lang] . '</label>
755
  </div>';
756
  }
757
 
1213
  unset( $cntctfrm_options['cntctfrm_message_label'][$_REQUEST['lang']]);
1214
  if( isset( $cntctfrm_options['cntctfrm_attachment_label'][$_REQUEST['lang']] ) )
1215
  unset( $cntctfrm_options['cntctfrm_attachment_label'][$_REQUEST['lang']]);
1216
+ if( isset( $cntctfrm_options['cntctfrm_send_copy_label'][$_REQUEST['lang']] ) )
1217
+ unset( $cntctfrm_options['cntctfrm_send_copy_label'][$_REQUEST['lang']]);
1218
  if( isset( $cntctfrm_options['cntctfrm_thank_text'][$_REQUEST['lang']] ) )
1219
  unset( $cntctfrm_options['cntctfrm_thank_text'][$_REQUEST['lang']]);
1220
  if( isset( $cntctfrm_options['cntctfrm_submit_label'][$_REQUEST['lang']] ) )
1239
  die();
1240
  }
1241
 
1242
+ // Function for delete options
1243
+ if ( ! function_exists ( 'cntctfrm_delete_options' ) ) {
1244
+ function cntctfrm_delete_options() {
1245
+ global $wpdb;
1246
+ delete_option( 'cntctfrm_options' );
1247
+ }
1248
+ }
1249
+
1250
  add_action( 'init', 'cntctfrm_plugin_init' );
1251
 
1252
  add_action( 'init', 'cntctfrm_check_and_send' );
1272
  add_action( 'wp_ajax_cntctfrm_add_language', 'cntctfrm_add_language' );
1273
  add_action( 'wp_ajax_cntctfrm_remove_language', 'cntctfrm_remove_language' );
1274
 
1275
+ register_uninstall_hook( __FILE__, 'cntctfrm_delete_options' );
1276
  ?>
languages/contact_form-hu_HU.mo CHANGED
File without changes
languages/contact_form-hu_HU.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.5.1
7
- Stable tag: 3.40
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -51,8 +51,8 @@ Contact Form allows you to add a feedback form easilly and simply to a post or a
51
  * Serbian (sr_RS) (thanks to Georgijevic Team, www.georgijevic.info)
52
  * Spanish (es_ES) (thanks to Jesús Parra)
53
  * Swedish (sv_SE) (thanks to Martin Tonek, <a href="joakim@limewoodmedia.com">Joakim Lindskog</a>, <a href="mailto:maarten@vandendriest.com">Maarten van den Driest</a> - crossanddot.nl)
54
- * Turkish (tr_TR) (thanks to <a herf="mailto:d-bulent@hotmail.com ">Devrim Bulent Ibis</a>, www.devrimhoca.com)
55
- * Ukrainian (uk) (thanks to <a herf="mailto:xxxxAndyxxxx@gmail.com">Andrew Yaschuk</a>)
56
 
57
  If you create your own language pack or update the existing one, you can send <a href="http://codex.wordpress.org/Translating_WordPress" target="_blank">the text in PO and MO files</a> for <a href="http://bestwebsoft.com/" target="_blank">BWS</a> and we'll add it to the plugin. You can download the latest version of the program for work with PO and MO files <a href="http://www.poedit.net/download.php" target="_blank">Poedit</a>.
58
 
@@ -60,7 +60,7 @@ If you create your own language pack or update the existing one, you can send <a
60
 
61
  Dear users, our plugins are available for free download. If you have any questions or propositions regarding functionality of our plugins (current options, new options, current issues) please feel free to contact us. Please note that we accept requests in English language only. All messages on another languages wouldn't be accepted.
62
 
63
- Also, emails which are reporting about plugin's bugs are accepted for investigation and fixing. Your request must contain URL of the website, issues description and WordPress admin panel access. Plugin customization based on your Wordpress theme is a paid service (standard price is $10, but it could be higer and depends on the complexity of requested changes). We will analize existing issue and make necessary changes after 100% pre-payment.All these paid changes and modifications could be included to the next version of plugin and will be shared for all users like an integral part of the plugin. Free fixing services will be provided for user who send translation on their native language (this should be a new translation of a certain plugin, and you can check available translations on the official plugin page).
64
 
65
  == Installation ==
66
 
@@ -111,6 +111,10 @@ Here is an example for German language files.
111
 
112
  == Changelog ==
113
 
 
 
 
 
114
  = V3.40 - 19.03.2013 =
115
  * NEW : Hungarian language file was added to the plugin.
116
  * Bugfix : The bug of displaying error messages was fixed.
@@ -296,6 +300,9 @@ Here is an example for German language files.
296
 
297
  == Upgrade Notice ==
298
 
 
 
 
299
  = V3.40 =
300
  Hungarian language file was added to the plugin. The bug of displaying error messages was fixed.
301
 
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.5.1
7
+ Stable tag: 3.41
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
51
  * Serbian (sr_RS) (thanks to Georgijevic Team, www.georgijevic.info)
52
  * Spanish (es_ES) (thanks to Jesús Parra)
53
  * Swedish (sv_SE) (thanks to Martin Tonek, <a href="joakim@limewoodmedia.com">Joakim Lindskog</a>, <a href="mailto:maarten@vandendriest.com">Maarten van den Driest</a> - crossanddot.nl)
54
+ * Turkish (tr_TR) (thanks to <a href="mailto:d-bulent@hotmail.com ">Devrim Bulent Ibis</a>, www.devrimhoca.com)
55
+ * Ukrainian (uk) (thanks to <a href="mailto:xxxxAndyxxxx@gmail.com">Andrew Yaschuk</a>)
56
 
57
  If you create your own language pack or update the existing one, you can send <a href="http://codex.wordpress.org/Translating_WordPress" target="_blank">the text in PO and MO files</a> for <a href="http://bestwebsoft.com/" target="_blank">BWS</a> and we'll add it to the plugin. You can download the latest version of the program for work with PO and MO files <a href="http://www.poedit.net/download.php" target="_blank">Poedit</a>.
58
 
60
 
61
  Dear users, our plugins are available for free download. If you have any questions or propositions regarding functionality of our plugins (current options, new options, current issues) please feel free to contact us. Please note that we accept requests in English language only. All messages on another languages wouldn't be accepted.
62
 
63
+ Also, emails which are reporting about plugin's bugs are accepted for investigation and fixing. Your request must contain URL of the website, issues description and WordPress admin panel access. Plugin customization based on your Wordpress theme is a paid service (standard price is $40, but it could be higer and depends on the complexity of requested changes). We will analize existing issue and make necessary changes after 100% pre-payment.All these paid changes and modifications could be included to the next version of plugin and will be shared for all users like an integral part of the plugin. Free fixing services will be provided for user who send translation on their native language (this should be a new translation of a certain plugin, and you can check available translations on the official plugin page).
64
 
65
  == Installation ==
66
 
111
 
112
  == Changelog ==
113
 
114
+ = V3.41 - 22.03.2013 =
115
+ * NEW : Added ability to change a label 'Send me a copy'.
116
+ * Bugfix : The bug of changing the message 'Action after email is sent' was fixed.
117
+
118
  = V3.40 - 19.03.2013 =
119
  * NEW : Hungarian language file was added to the plugin.
120
  * Bugfix : The bug of displaying error messages was fixed.
300
 
301
  == Upgrade Notice ==
302
 
303
+ = V3.41 =
304
+ Added ability to change a label 'Send me a copy'. The bug of changing the message 'Action after email is sent' was fixed.
305
+
306
  = V3.40 =
307
  Hungarian language file was added to the plugin. The bug of displaying error messages was fixed.
308