Changeset 3320207
- Timestamp:
- 06/30/2025 06:48:32 PM (9 months ago)
- Location:
- reoon-email-verifier/trunk
- Files:
-
- 6 edited
-
assets/css/admin-style.css (modified) (1 diff)
-
includes/reoon-api.php (modified) (3 diffs)
-
includes/util-class.php (modified) (1 diff)
-
includes/views/admin/settings-view-class.php (modified) (2 diffs)
-
readme.txt (modified) (6 diffs)
-
reoon-email-verifier.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
reoon-email-verifier/trunk/assets/css/admin-style.css
r3073708 r3320207 401 401 text-align: center; 402 402 } 403 404 .reo-em-ver-help{ 405 color: #555; 406 font-size: 13px; 407 } -
reoon-email-verifier/trunk/includes/reoon-api.php
r3073708 r3320207 32 32 33 33 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( 35 35 "timeout" => $timeout 36 36 )); 37 37 38 38 39 if (is_wp_error($data)) { … … 72 73 public function ValidateEmail($email) 73 74 { 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 74 107 $email = str_replace("+", "%2B", $email); 75 108 … … 95 128 } 96 129 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( 98 131 "timeout" => $timeout 99 132 )); 133 100 134 101 135 if (is_wp_error($data)) { -
reoon-email-verifier/trunk/includes/util-class.php
r3073708 r3320207 97 97 } 98 98 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 ); 99 111 } 112 113 } -
reoon-email-verifier/trunk/includes/views/admin/settings-view-class.php
r3073708 r3320207 197 197 <label for="wordpress_comment_form">WordPress Comment Form</label> 198 198 </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> 199 233 </div> 200 234 </div> … … 210 244 <label for="custom_error_message">Custom Invalid Error Message:</label> 211 245 <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> 212 262 </div> 213 263 </div> -
reoon-email-verifier/trunk/readme.txt
r3277340 r3320207 3 3 Tags: email verifier, email validator, block spam registration, form email validation, temporary email blocker 4 4 Requires at least: 4.7 5 Tested up to: 6.8 5 Tested up to: 6.8.1 6 6 Requires PHP: 5.4 7 Stable tag: 1. 2.67 Stable tag: 1.3.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 28 28 29 29 **Supported WordPress Forms:** 30 - Formid dable Form30 - Formidable Form 31 31 - Gravity Form 32 32 - Default WordPress Registration Form … … 42 42 - Contact Form by BestWebSoft 43 43 - 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 45 52 46 53 To learn about the list of features and detailed benefits, please visit https://www.reoon.com/email-verifier/. … … 68 75 Yes, all data is encrypted and automatically deleted after 15 days of submission, ensuring compliance with GDPR regulations. 69 76 77 = How to get the support if something does not work? = 78 Please 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. 70 79 71 80 … … 74 83 = 1.2.3 = 75 84 * 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 76 106 77 107 == Upgrade Notice == … … 88 118 = 1.2.6 = 89 119 Forminator form integration updated to match with their latest version. 120 121 = 1.3.1 = 122 Added support for 7 new popular WordPress form plugins. 123 90 124 91 125 -
reoon-email-verifier/trunk/reoon-email-verifier.php
r3277340 r3320207 4 4 * Plugin URI: https://www.reoon.com/email-verifier/ 5 5 * Description: This plugin verifies email addresses upon online form submission, safeguarding against invalid, temporary, disposable and harmful email addresses. 6 * Version: 1. 2.66 * Version: 1.3.1 7 7 * Author: Reoon Technology 8 8 * Author URI: https://www.reoon.com/ … … 28 28 require_once plugin_dir_path(__FILE__)."includes/validator/mail-mint-form-validator.php"; 29 29 require_once plugin_dir_path(__FILE__)."includes/validator/bestwebsoft-forms-validator.php"; 30 require_once plugin_dir_path(__FILE__)."includes/validator/mailpoet-validator.php"; 31 require_once plugin_dir_path(__FILE__)."includes/validator/surecart-validator.php"; 32 require_once plugin_dir_path(__FILE__)."includes/validator/wsform-validator.php"; 33 require_once plugin_dir_path(__FILE__)."includes/validator/jetformbuilder-validator.php"; 34 require_once plugin_dir_path(__FILE__)."includes/validator/metform-validator.php"; 35 require_once plugin_dir_path(__FILE__)."includes/validator/buddyform-validator.php"; 36 require_once plugin_dir_path(__FILE__)."includes/validator/everrest-forms-validator.php"; 37 require_once plugin_dir_path(__FILE__)."includes/validator/bitform-validator.php"; 30 38 31 39 … … 52 60 use REOONENV\Validator\WPFormsValidator; 53 61 use REOONENV\Validator\WPRegistrationFormValidator; 62 use REOONENV\Validator\MailpoetValidator; 63 use REOONENV\Validator\SurecartValidator; 64 use REOONENV\Validator\WsFormValidator; 65 use REOONENV\Validator\JetFormBuilderValidator; 66 use REOONENV\Validator\MetformValidator; 67 use REOONENV\Validator\BuddyFormValidator; 68 use REOONENV\Validator\EverestFormValidator; 69 use REOONENV\Validator\BitFormValidator; 70 71 54 72 use REOONENV\Views\DashboardView; 55 73 use REOONENV\Views\FaqView; 56 74 use REOONENV\Views\SettignsView; 75 57 76 58 77 Class ReoonEmailVerifier{ … … 111 130 'happyforms'=>1, 112 131 'mailmint_form'=>1, 132 'everestforms'=>1, 133 'buddyform'=>1, 134 'metform'=>1, 135 'jetformbuilder'=>1, 136 'wsform'=>1, 137 'surecart'=>1, 113 138 'wordpress_comment_form'=>1, 114 139 'best_websoft_forms'=>1, 140 'bitform'=>1, 115 141 'timeout'=>10, 116 142 'custom_error_message'=>'This email address is not allowed' … … 215 241 $mailMintFormsValidator = new MailMintFormsValidator(); 216 242 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 ); 217 278 } 218 279
Note: See TracChangeset
for help on using the changeset viewer.