Plugin Directory

Changeset 3320207


Ignore:
Timestamp:
06/30/2025 06:48:32 PM (9 months ago)
Author:
reoon
Message:

Version upgrade: 1.2.6 to 1.3.1.

Location:
reoon-email-verifier/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • reoon-email-verifier/trunk/assets/css/admin-style.css

    r3073708 r3320207  
    401401    text-align: center;
    402402  }
     403
     404  .reo-em-ver-help{
     405    color: #555;
     406    font-size: 13px;
     407  }
  • reoon-email-verifier/trunk/includes/reoon-api.php

    r3073708 r3320207  
    3232
    3333
    34         $data = wp_remote_get("https://emailverifier.reoon.com/api/v1/verify?email=" . $email . "&mode=" . $mode . "&key=" . $key, array(
     34        $data = wp_remote_get("https://emailverifier.reoon.com/api/v1/verify?email=" . urlencode($email) . "&mode=" . urlencode($mode) . "&key=" . urlencode($key) . "&source=reoon_ev_wp_plugin", array(
    3535            "timeout" => $timeout
    3636        ));
     37
    3738
    3839        if (is_wp_error($data)) {
     
    7273    public function ValidateEmail($email)
    7374    {
     75
     76        $allowed_url_list = Util::get_reoon_option("allowed_url_list");
     77        $blocked_url_list = Util::get_reoon_option("blocked_url_list");
     78
     79        global $post;
     80        $slug = '';
     81        if ( isset( $post ) ) {
     82            $slug = $post->post_name;
     83        }
     84
     85        $current_slug = untrailingslashit( $slug );
     86       
     87
     88
     89      if ( strlen( $allowed_url_list ) > 0 ) {
     90            $allowed_slugs = Util::extract_slugs_from_urls( $allowed_url_list );
     91           
     92            if ( ! in_array( $current_slug, $allowed_slugs ) ) {
     93                return true; // Skip validation on disallowed pages
     94            }
     95        }
     96        elseif ( strlen( $blocked_url_list ) > 0 ) {
     97            $blocked_slugs = Util::extract_slugs_from_urls( $blocked_url_list );
     98
     99            if ( in_array( $current_slug, $blocked_slugs ) ) {
     100                return true; // Skip validation on blocked pages
     101            }
     102        }
     103
     104       
     105       
     106
    74107        $email = str_replace("+", "%2B", $email);
    75108       
     
    95128        }
    96129
    97         $data = wp_remote_get("https://emailverifier.reoon.com/api/v1/verify?email=" . $email . "&mode=" . $mode . "&key=" . $key, array(
     130        $data = wp_remote_get("https://emailverifier.reoon.com/api/v1/verify?email=" . urlencode($email) . "&mode=" . urlencode($mode) . "&key=" . urlencode($key) . "&source=reoon_ev_wp_plugin", array(
    98131            "timeout" => $timeout
    99132        ));
     133
    100134
    101135        if (is_wp_error($data)) {
  • reoon-email-verifier/trunk/includes/util-class.php

    r3073708 r3320207  
    9797    }
    9898
     99    public static function extract_slugs_from_urls( $url_list_string ) {
     100    $urls = array_map( 'trim', explode( "\n", $url_list_string ) );
     101    $slugs = [];
     102
     103    foreach ( $urls as $url ) {
     104        if ( empty( $url ) ) continue;
     105        $path = parse_url( $url, PHP_URL_PATH );
     106        $segments = explode( '/', trim( $path, '/' ) );
     107        $slugs[] = end( $segments ); // take last segment as slug
     108    }
     109
     110    return array_map( 'untrailingslashit', $slugs );
    99111}
     112
     113}
  • reoon-email-verifier/trunk/includes/views/admin/settings-view-class.php

    r3073708 r3320207  
    197197                    <label for="wordpress_comment_form">WordPress Comment Form</label>
    198198                </div>
     199
     200                <!-- <div>
     201                    <input <?php echo Util::get_reoon_option("mailpoet") == "1" ? "checked" : ""; ?> type="checkbox" id="mailpoet" name="reoonev-settings[mailpoet]" value="1">
     202                    <label for="mailpoet">Mail Poet</label>
     203                </div> -->
     204                <div>
     205                    <input <?php echo Util::get_reoon_option("surecart") == "1" ? "checked" : ""; ?> type="checkbox" id="surecart" name="reoonev-settings[surecart]" value="1">
     206                    <label for="surecart">SureCart</label>
     207                </div>
     208                <div>
     209                    <input <?php echo Util::get_reoon_option("wsform") == "1" ? "checked" : ""; ?> type="checkbox" id="wsform" name="reoonev-settings[wsform]" value="1">
     210                    <label for="wsform">WS Form</label>
     211                </div>
     212                <div>
     213                    <input <?php echo Util::get_reoon_option("jetformbuilder") == "1" ? "checked" : ""; ?> type="checkbox" id="jetformbuilder" name="reoonev-settings[jetformbuilder]" value="1">
     214                    <label for="jetformbuilder">JetForm Builder</label>
     215                </div>
     216                <div>
     217                    <input <?php echo Util::get_reoon_option("metform") == "1" ? "checked" : ""; ?> type="checkbox" id="metform" name="reoonev-settings[metform]" value="1">
     218                    <label for="metform">MetForm</label>
     219                </div>
     220                <div>
     221                    <input <?php echo Util::get_reoon_option("buddyform") == "1" ? "checked" : ""; ?> type="checkbox" id="buddyform" name="reoonev-settings[buddyform]" value="1">
     222                    <label for="buddyform">BuddyForms</label>
     223                </div>
     224
     225                 <div>
     226                    <input <?php echo Util::get_reoon_option("everestforms") == "1" ? "checked" : ""; ?> type="checkbox" id="everestforms" name="reoonev-settings[everestforms]" value="1">
     227                    <label for="everestforms">Everestforms</label>
     228                </div>
     229                 <div>
     230                    <input <?php echo Util::get_reoon_option("bitform") == "1" ? "checked" : ""; ?> type="checkbox" id="bitform" name="reoonev-settings[bitform]" value="1">
     231                    <label for="bitform">Bitforms</label>
     232                </div>
    199233            </div>
    200234        </div>
     
    210244                    <label for="custom_error_message">Custom Invalid Error Message:</label>
    211245                    <textarea id="custom_error_message" name="reoonev-settings[custom_error_message]"><?php echo esc_textarea(Util::get_reoon_option("custom_error_message")); ?></textarea>
     246                </div>
     247            </div>
     248        </div>
     249
     250
     251        <div class="reo-em-ver-card" style="display: none;">
     252            <div class="reo-em-ver-card-body">
     253                <div class="reo-em-ver-control">
     254                    <label for="allowed_url_list">Allowed URL List</label>
     255                     <span class="reo-em-ver-help">add multiple urls in new lines</span>                   
     256                    <textarea id="allowed_url_list" name="reoonev-settings[allowed_url_list]"><?php echo esc_textarea(Util::get_reoon_option("allowed_url_list")); ?></textarea>
     257                </div>
     258                <div class="reo-em-ver-control">
     259                    <label for="blocked_url_list">Blocked URL Lis:</label>
     260                    <span class="reo-em-ver-help">add multiple urls in new lines</span>                   
     261                    <textarea id="blocked_url_list" name="reoonev-settings[blocked_url_list]"><?php echo esc_textarea(Util::get_reoon_option("blocked_url_list")); ?></textarea>
    212262                </div>
    213263            </div>
  • reoon-email-verifier/trunk/readme.txt

    r3277340 r3320207  
    33Tags: email verifier, email validator, block spam registration, form email validation, temporary email blocker
    44Requires at least: 4.7
    5 Tested up to: 6.8
     5Tested up to: 6.8.1
    66Requires PHP: 5.4
    7 Stable tag: 1.2.6
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2828
    2929**Supported WordPress Forms:**
    30 - Formiddable Form
     30- Formidable Form
    3131- Gravity Form
    3232- Default WordPress Registration Form
     
    4242- Contact Form by BestWebSoft
    4343- WordPress Comment Form
    44 - Support for more forms will be added
     44- SureCart
     45- WS Form
     46- JetForm Builder
     47- MetForm
     48- BuddyForms
     49- EverestForms
     50- Bitforms
     51
    4552
    4653To learn about the list of features and detailed benefits, please visit https://www.reoon.com/email-verifier/.
     
    6875Yes, all data is encrypted and automatically deleted after 15 days of submission, ensuring compliance with GDPR regulations.
    6976
     77= How to get the support if something does not work? =
     78Please contact us at https://www.reoon.com/contact-support/ if you face any issues with the service. We will try our best to help you as soon as possible.
    7079
    7180
     
    7483= 1.2.3 =
    7584* Initial release version.
     85
     86= 1.2.4 =
     87* Bug fix: Plus sign in email was causing invalid results due to url-encode issue.
     88
     89= 1.2.5 =
     90* Bug fix and security updates.
     91
     92= 1.2.6 =
     93* Forminator form integration updated to match with their latest version.
     94
     95= 1.3.1 =
     96* Added support for the following new forms:
     97  - SureCart
     98  - WS Form
     99  - JetForm Builder
     100  - MetForm
     101  - BuddyForms
     102  - EverestForms
     103  - Bitforms
     104* Minor performance improvements and compatibility updates.
     105
    76106
    77107== Upgrade Notice ==
     
    88118= 1.2.6 =
    89119Forminator form integration updated to match with their latest version.
     120
     121= 1.3.1 =
     122Added support for 7 new popular WordPress form plugins.
     123
    90124
    91125
  • reoon-email-verifier/trunk/reoon-email-verifier.php

    r3277340 r3320207  
    44 * Plugin URI: https://www.reoon.com/email-verifier/
    55 * Description: This plugin verifies email addresses upon online form submission, safeguarding against invalid, temporary, disposable and harmful email addresses.
    6  * Version: 1.2.6
     6 * Version: 1.3.1
    77 * Author: Reoon Technology
    88 * Author URI: https://www.reoon.com/
     
    2828require_once plugin_dir_path(__FILE__)."includes/validator/mail-mint-form-validator.php";
    2929require_once plugin_dir_path(__FILE__)."includes/validator/bestwebsoft-forms-validator.php";
     30require_once plugin_dir_path(__FILE__)."includes/validator/mailpoet-validator.php";
     31require_once plugin_dir_path(__FILE__)."includes/validator/surecart-validator.php";
     32require_once plugin_dir_path(__FILE__)."includes/validator/wsform-validator.php";
     33require_once plugin_dir_path(__FILE__)."includes/validator/jetformbuilder-validator.php";
     34require_once plugin_dir_path(__FILE__)."includes/validator/metform-validator.php";
     35require_once plugin_dir_path(__FILE__)."includes/validator/buddyform-validator.php";
     36require_once plugin_dir_path(__FILE__)."includes/validator/everrest-forms-validator.php";
     37require_once plugin_dir_path(__FILE__)."includes/validator/bitform-validator.php";
    3038
    3139
     
    5260use REOONENV\Validator\WPFormsValidator;
    5361use REOONENV\Validator\WPRegistrationFormValidator;
     62use REOONENV\Validator\MailpoetValidator;
     63use REOONENV\Validator\SurecartValidator;
     64use REOONENV\Validator\WsFormValidator;
     65use REOONENV\Validator\JetFormBuilderValidator;
     66use REOONENV\Validator\MetformValidator;
     67use REOONENV\Validator\BuddyFormValidator;
     68use REOONENV\Validator\EverestFormValidator;
     69use REOONENV\Validator\BitFormValidator;
     70
     71
    5472use REOONENV\Views\DashboardView;
    5573use REOONENV\Views\FaqView;
    5674use REOONENV\Views\SettignsView;
     75
    5776
    5877Class ReoonEmailVerifier{
     
    111130            'happyforms'=>1,
    112131            'mailmint_form'=>1,
     132            'everestforms'=>1,
     133            'buddyform'=>1,
     134            'metform'=>1,
     135            'jetformbuilder'=>1,
     136            'wsform'=>1,
     137            'surecart'=>1,
    113138            'wordpress_comment_form'=>1,
    114139            'best_websoft_forms'=>1,
     140            'bitform'=>1,
    115141            'timeout'=>10,
    116142            'custom_error_message'=>'This email address is not allowed'
     
    215241            $mailMintFormsValidator = new MailMintFormsValidator();           
    216242            add_action( 'mailmint_before_form_submit', array($mailMintFormsValidator,'reoonev_validate_emails'), 10, 2 );
     243          }
     244
     245          if( is_plugin_active( 'everest-forms/everest-forms.php' ) && Util::get_reoon_option("everestforms")==1) {
     246            $everestFormValidator = new EverestFormValidator();           
     247            add_filter( 'everest_forms_visible_fields', array($everestFormValidator,'reoonev_validate_emails'), 10, 4 );
     248          }
     249
     250          if( is_plugin_active( 'surecart/surecart.php' ) && Util::get_reoon_option("surecart")==1) {
     251            $surecartValidator = new SurecartValidator();           
     252            add_filter( 'surecart/checkout/validate', array($surecartValidator,'reoonev_validate_emails'), 10, 3 );
     253          }
     254
     255          if( is_plugin_active( 'ws-form/ws-form.php' ) && Util::get_reoon_option("wsform")==1) {
     256            $wsFormValidator = new WsFormValidator();           
     257            add_filter( 'wsf_action_email_email_validate', array($wsFormValidator,'reoonev_validate_emails'), 10, 2 );
     258          }
     259
     260          if( is_plugin_active( 'jetformbuilder/jet-form-builder.php' ) && Util::get_reoon_option("jetformbuilder")==1) {
     261            $jetFormBuilderValidator = new JetFormBuilderValidator();           
     262            add_action( 'jet-form-builder/form-handler/before-send', array($jetFormBuilderValidator,'reoonev_validate_emails') );           
     263          }
     264
     265          if( is_plugin_active( 'metform/metform.php' ) && Util::get_reoon_option("metform")==1) {
     266            $metFormValidator = new MetformValidator();
     267            add_action( 'metform_before_store_form_data', array($metFormValidator,'reoonev_validate_emails'),10,4 );
     268
     269          }
     270          if( is_plugin_active( 'buddyforms/BuddyForms.php' ) && Util::get_reoon_option("buddyform")==1) {
     271            $buddyformValidator = new BuddyFormValidator();           
     272            add_filter( 'buddyforms_form_custom_validation', array($buddyformValidator,'reoonev_validate_emails'),10,2 );           
     273          }
     274
     275          if( is_plugin_active( 'bit-form/bitforms.php' ) && Util::get_reoon_option("bitform")==1) {
     276            $bitFormValidator = new BitFormValidator();
     277            add_filter( 'bitform_filter_form_validation', array($bitFormValidator,'reoonev_validate_emails'),10,2 );           
    217278          }
    218279         
Note: See TracChangeset for help on using the changeset viewer.