Plugin Directory

Changeset 3484668


Ignore:
Timestamp:
03/17/2026 10:35:58 AM (2 weeks ago)
Author:
pluginscafe
Message:

Cloudflare Turnstile validation

Location:
alpha-addons-for-gravity-forms
Files:
94 added
4 edited

Legend:

Unmodified
Added
Removed
  • alpha-addons-for-gravity-forms/trunk/alphagf-addons.php

    r3446061 r3484668  
    77 * Author: PluginsCafe
    88 * Author URI: https://pluginscafe.com/
    9  * Version: 1.0.2
     9 * Version: 1.0.3
    1010 * Requires at least: 6.2
    1111 * Requires PHP: 7.4
     
    2222 */
    2323final class ALPLHAGF_Addons {
    24     const version = '1.0.2';
     24    const version = '1.0.3';
    2525
    2626    private static $_instance = null;
  • alpha-addons-for-gravity-forms/trunk/includes/addons/cloudflare-turnstile/class-field-turnstile.php

    r3446061 r3484668  
    5959        $has_previous_response = ! $this->failed_validation && ! empty($this->get_value_submission(array()));
    6060        // Always output the widget container, rendering the actual widget is controlled by the JS side.
    61         $div = '<div class="cf-turnstile" id="alphagf_turnstile_' . $this->formId . '" data-theme="' . $theme . '" data-sitekey="' . $key . '"></div>';
     61        $div = '<div class="cf-turnstile" id="alphagf_turnstile_' . $this->formId . '" data-js-turnstile data-response-field-name="cf-turnstile-response_' . $this->formId . '" data-theme="' . $theme . '" data-sitekey="' . $key . '"></div>';
    6262        // If the challenge was already solved add the token so in multipage forms it could be validated after submitting the last page.
    6363        if ($has_previous_response) {
     
    173173
    174174    public function get_value_submission($field_values, $get_from_post_global_var = true) {
    175         $value = rgpost('cf-turnstile-response');
    176 
    177         $value = $value . 'laksd';
     175        $value = rgpost('cf-turnstile-response_' . $this->formId);
    178176
    179177        if (empty($value)) {
  • alpha-addons-for-gravity-forms/trunk/includes/core/utilities.php

    r3446061 r3484668  
    9494                    'name'      => 'Cloudflare Turnstile',
    9595                    'slug'      => 'cloudflare-turnstile',
    96                     'desc'      => esc_html__('Add styles and layout options to Gravity forms', 'alpha-addons-for-gravity-forms'),
     96                    'desc'      => esc_html__('Add Cloudflare Turnstile to prevent spam submissions.', 'alpha-addons-for-gravity-forms'),
    9797                    'icon'      => 'icon-turnstile',
    9898                    'status'    => 'free',
     
    104104                    'name'      => 'hCaptcha',
    105105                    'slug'      => 'hcaptcha',
    106                     'desc'      => esc_html__('Add styles and layout options to Gravity forms', 'alpha-addons-for-gravity-forms'),
     106                    'desc'      => esc_html__('Add hCaptcha to prevent automated spam submissions.', 'alpha-addons-for-gravity-forms'),
    107107                    'icon'      => 'icon-hcaptcha',
    108108                    'status'    => 'free',
     
    114114                    'name'      => 'Google Calendar',
    115115                    'slug'      => 'google-calendar',
    116                     'desc'      => esc_html__('Add styles and layout options to Gravity forms', 'alpha-addons-for-gravity-forms'),
     116                    'desc'      => esc_html__('Add events to Google Calendar from Gravity Forms submissions.', 'alpha-addons-for-gravity-forms'),
    117117                    'icon'      => 'icon-google-calendar',
    118118                    'status'    => 'free',
     
    124124                    'name'      => 'Google Sheet',
    125125                    'slug'      => 'google-sheet',
    126                     'desc'      => esc_html__('Add styles and layout options to Gravity forms', 'alpha-addons-for-gravity-forms'),
     126                    'desc'      => esc_html__('Add form data to Google sheet from Gravity Forms submissions.', 'alpha-addons-for-gravity-forms'),
    127127                    'icon'      => 'icon-excel',
    128128                    'status'    => 'free',
     
    134134                    'name'      => 'Math Captcha',
    135135                    'slug'      => 'math-captcha',
    136                     'desc'      => esc_html__('Add styles and layout options to Gravity forms', 'alpha-addons-for-gravity-forms'),
     136                    'desc'      => esc_html__('Add math captcha to prevent spam submissions.', 'alpha-addons-for-gravity-forms'),
    137137                    'icon'      => 'icon-math-captcha',
    138138                    'status'    => 'free',
     
    144144                    'name'      => 'Read Only',
    145145                    'slug'      => 'read-only',
    146                     'desc'      => esc_html__('Add styles and layout options to Gravity forms', 'alpha-addons-for-gravity-forms'),
     146                    'desc'      => esc_html__('Add read only fields to Gravity forms', 'alpha-addons-for-gravity-forms'),
    147147                    'icon'      => 'icon-readonly',
    148148                    'status'    => 'free',
  • alpha-addons-for-gravity-forms/trunk/readme.txt

    r3453445 r3484668  
    66Requires PHP: 7.4
    77Tested up to: 6.9
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
     
    8181* Gravity Forms
    8282
    83 == Screenshots ==
    84 
    85 1. Active addons
    86 2. Custom Css & Js
    87 3. Google Sheet Feeds
    88 
    89 
    9083== Installation ==
    91841. Install Alpha Addons for Gravity Forms plugin.
     
    9386
    9487
     88
    9589== Changelog ==
    96 
    9790= 1.0.2 =
    98 * Math Captcha
    99 * Read Only
    100 * Turnstile
    101 * hCaptcha
    102 * Google Sheet
    103 * Google Calendar
    104 * Bug fix
     91* Fix Cloudflare Turnstile validation.
    10592
    10693= 1.0.1 =
Note: See TracChangeset for help on using the changeset viewer.