Plugin Directory

Changeset 888024


Ignore:
Timestamp:
04/05/2014 04:35:17 PM (12 years ago)
Author:
zackhasit
Message:

New version

Location:
contact-form-with-captcha/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • contact-form-with-captcha/trunk/cfwc-form.php

    r713562 r888024  
    5050 
    5151                    if (mail($email_recipient, $email_subject, $email_contents, $email_header, '-f'.$email_return_to))
    52                     {     
    53                         echo "<center><h2>Thank you for contacting us!</h2></center>";
     52                    {     
     53                        if ($cfwc_success_msg != null)
     54                        {
     55                            echo "<center><h2>" . $cfwc_success_msg . "</h2></center>";
     56                        }
     57                        else
     58                        {
     59                            echo "<center><h2>Thank you for contacting us!</h2></center>";
     60                        }
    5461                    }       
    5562                    else
    56                     {     
    57                         echo "<center><h2>Can't send email to Administrator. Please try later</h2></center>";     
     63                    {     
     64                        if ($cfwc_failure_msg != null)
     65                        {
     66                            echo "<center><h2>" . $cfwc_failure_msg . "</h2></center>";
     67                        }
     68                        else
     69                        {
     70                            echo "<center><h2>Can't send email to Administrator. Please try later</h2></center>";
     71                        }     
    5872                    }
    5973                }
  • contact-form-with-captcha/trunk/cfwc-main.php

    r697964 r888024  
    44Plugin URI: http://www.teqlog.com/
    55Description: Creates a contact form with captcha. For more details you can visit plugin page <a href="http://www.teqlog.com/wordpress-contact-form-with-captcha-plugin.html"><strong>CFWC Plugin home page</strong></a>.
    6 Version: 1.5.9
    7 Date: 26 Feb 2012
     6Version: 1.6.0
     7Date: 04 Apr 2014
    88Author: Teqlog
    99Author URI: http://www.teqlog.com/
    1010
    11     Copyright 2011  Teqlog  (email : teknocrat.com@gmail.com)
     11    Copyright 2014  Teqlog  (email : teknocrat.com@gmail.com)
    1212
    1313    This program is free software; you can redistribute it and/or modify
     
    6969    register_setting( 'cfwc_options_group', 'cfwc_public_key_value',  'plugin_options_validate' );
    7070    register_setting( 'cfwc_options_group', 'cfwc_to_value',          'plugin_options_validate' );
     71      register_setting( 'cfwc_options_group', 'cfwc_success_msg_value', 'plugin_options_validate' );
     72      register_setting( 'cfwc_options_group', 'cfwc_failure_msg_value',   'plugin_options_validate' );
    7173    register_setting( 'cfwc_options_group', 'cfwc_full_name_value',   'plugin_options_validate' );
    7274    register_setting( 'cfwc_options_group', 'cfwc_e_mail_value',      'plugin_options_validate' );
     
    8890    add_settings_field('cfwc_public_key_field_id',  'Specify your public key',   'cfwc_public_key_field_callback',  'contact-form-with-captcha', 'plugin_main');
    8991    add_settings_field('cfwc_to_field_id',          'Specify your email address','cfwc_to_field_callback',          'contact-form-with-captcha', 'plugin_main');
     92       add_settings_field('cfwc_success_msg_field_id',   'Specify Success Message (Optional)'   ,'cfwc_success_msg_field_callback',   'contact-form-with-captcha', 'plugin_main');
     93      add_settings_field('cfwc_failure_msg_field_id',   'Specify Failure Message (Optional)'   ,'cfwc_failure_msg_field_callback',   'contact-form-with-captcha', 'plugin_main');
    9094      add_settings_field('cfwc_full_name_field_id',   'Specify Full Name Label (Optional)'   ,'cfwc_full_name_field_callback',   'contact-form-with-captcha', 'plugin_main');
    9195      add_settings_field('cfwc_e_mail_field_id',      'Specify E-Mail Label (Optional)'      ,'cfwc_e_mail_field_callback',      'contact-form-with-captcha', 'plugin_main');
     
    147151}
    148152
     153function cfwc_success_msg_field_callback()  {
     154
     155      $options = get_option('cfwc_success_msg_value');
     156      echo "<input id='cfwc_success_msg_field_id' name='cfwc_success_msg_value[text_string]' size='100' type='text' value='{$options['text_string']}' />";
     157}
     158
     159function cfwc_failure_msg_field_callback()  {
     160
     161      $options = get_option('cfwc_failure_msg_value');
     162      echo "<input id='cfwc_failure_msg_field_id' name='cfwc_failure_msg_value[text_string]' size='100' type='text' value='{$options['text_string']}' />";
     163}
    149164
    150165function cfwc_full_name_field_callback()  {
     
    224239      $publickey      = get_option('cfwc_public_key_value');
    225240      $cfwc_to        = get_option('cfwc_to_value');
     241      $cfwc_success_msg = get_option('cfwc_success_msg_value');
     242      $cfwc_failure_msg = get_option('cfwc_failure_msg_value');
    226243      $cfwc_full_name = get_option('cfwc_full_name_value');
    227244      $cfwc_e_mail    = get_option('cfwc_e_mail_value');
     
    240257      $publickey      = $publickey['text_string'] ;
    241258      $cfwc_to        = $cfwc_to['text_string'];
     259      $cfwc_success_msg = $cfwc_success_msg['text_string'];
     260      $cfwc_failure_msg = $cfwc_failure_msg['text_string'];
    242261      $cfwc_full_name = $cfwc_full_name['text_string'];
    243262      $cfwc_e_mail    = $cfwc_e_mail['text_string'];
  • contact-form-with-captcha/trunk/readme.txt

    r821945 r888024  
    55Requires at least: 3.0
    66Tested up to: 3.8
    7 Stable tag: 1.5.9
     7Stable tag: 1.6.0
    88
    99Contact form with captcha plugin allows you to use a Google reCAPTCHA contact form on your blog. It requires PHP 5.0 or later.
     
    3939
    4040== ChangeLog ==
     41= Version 1.6 =
     42
     43* Option to change messages
     44
    4145= Version 1.5 =
    4246
Note: See TracChangeset for help on using the changeset viewer.