Changeset 3453549
- Timestamp:
- 02/04/2026 07:02:18 AM (7 weeks ago)
- Location:
- zt-captcha
- Files:
-
- 27 added
- 6 edited
-
tags/1.0.5 (added)
-
tags/1.0.5/captcha_settings.php (added)
-
tags/1.0.5/css (added)
-
tags/1.0.5/css/default.css (added)
-
tags/1.0.5/css/green.theme.css (added)
-
tags/1.0.5/css/theme.css (added)
-
tags/1.0.5/fonts (added)
-
tags/1.0.5/fonts/Xacto Blade.ttf (added)
-
tags/1.0.5/fonts/Xerox Sans Serif Narrow Bold.ttf (added)
-
tags/1.0.5/fonts/Year supply of fairy cakes.ttf (added)
-
tags/1.0.5/fonts/Year2000Boogie.ttf (added)
-
tags/1.0.5/fonts/monofont.ttf (added)
-
tags/1.0.5/img (added)
-
tags/1.0.5/img/check.png (added)
-
tags/1.0.5/img/left_arrow.png (added)
-
tags/1.0.5/img/loader.gif (added)
-
tags/1.0.5/img/right_arrow.png (added)
-
tags/1.0.5/inc (added)
-
tags/1.0.5/inc/Zt_Captcha.php (added)
-
tags/1.0.5/inc/template.php (added)
-
tags/1.0.5/js (added)
-
tags/1.0.5/js/app.js (added)
-
tags/1.0.5/js/popper.min.js (added)
-
tags/1.0.5/readme.txt (added)
-
tags/1.0.5/request (added)
-
tags/1.0.5/request/CaptchaRequest.php (added)
-
tags/1.0.5/zt-captcha.php (added)
-
trunk/captcha_settings.php (modified) (1 diff)
-
trunk/inc/Zt_Captcha.php (modified) (1 diff)
-
trunk/inc/template.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/request/CaptchaRequest.php (modified) (3 diffs)
-
trunk/zt-captcha.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zt-captcha/trunk/captcha_settings.php
r2959830 r3453549 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 function ztcpt_captcha_settings(){ 3 7 echo '<br>'; -
zt-captcha/trunk/inc/Zt_Captcha.php
r2959830 r3453549 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 if(!class_exists('ZTCPT_Captcha') ): 3 7 class ZTCPT_Captcha -
zt-captcha/trunk/inc/template.php
r2856982 r3453549 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 5 2 6 function ztcpt_captcha_image_template($place){ 3 7 wp_enqueue_script("ztcpt_captcha_app_js",array('jquery') , '1.0', true); -
zt-captcha/trunk/readme.txt
r3213802 r3453549 3 3 Requires at least: 4.4 4 4 Contributors: teamzt 5 Tested up to: 6. 7.16 Stable tag: 1.0. 45 Tested up to: 6.9 6 Stable tag: 1.0.5 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 Requires PHP: 7.1 10 Last Update: 2023-08-2911 10 12 11 The captcha plugin keeps WordPress sites safe from spam and password hacks by requiring a simple test to prove you're human, not a computer. … … 81 80 First Release 82 81 83 = 1.0.1 =82 = 1.0.1 = 84 83 85 84 * New: Added Captcha for woocommerce lost password form. 86 85 * Update: All functionality was updated for WordPress 6.3. 87 86 88 = 1.0.2 =87 = 1.0.2 = 89 88 90 89 * Addressed comment form redirect issue, when captcha not verified, ensuring error messages are presented within the same page for a smoother user flow. … … 92 91 * Update: All functionality was updated for WordPress 6.4.2 93 92 94 = 1.0.3 =93 = 1.0.3 = 95 94 96 95 * Update: All functionality was updated for WordPress 6.5.2 97 96 98 = 1.0.4 =97 = 1.0.4 = 99 98 100 99 * Update: All functionality was updated for WordPress 6.5.4 100 101 = 1.0.5 = 102 103 * Security: Fixed Cross-Site Request Forgery (CSRF) vulnerability in settings save action. 104 * Security: Added strict nonce verification and user capability checks. 105 * Compatibility: Tested with the latest WordPress version. -
zt-captcha/trunk/request/CaptchaRequest.php
r2856982 r3453549 1 1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; 4 } 2 5 3 6 if(!class_exists('ZTCPT_CaptchaRequest') ): … … 35 38 function save_ztcpt_captcha_settings(){ 36 39 /*Validate the the request*/ 37 if($_POST['token']){ 38 $token = sanitize_text_field($_POST['token']); 39 if ( ! isset($token) || ! wp_verify_nonce($token, 'save_ztcpt_captcha_settings' ) ){ 40 echo esc_html_e( __( 'Sorry, your nonce did not verify.', ZTCPT_TEXT_DOMAIN ) ); 41 die; 42 } 40 41 if ( 42 ! isset( $_POST['token'] ) || 43 ! wp_verify_nonce( $_POST['token'], 'save_ztcpt_captcha_settings' ) 44 ) { 45 wp_die( 46 esc_html__( 'Sorry, your nonce did not verify.', ZTCPT_TEXT_DOMAIN ), 47 403 48 ); 43 49 } 44 50 45 if($_POST['zt_captcha_selected_captcha']){ 51 if ( ! current_user_can( 'manage_options' ) ) { 52 wp_die( 53 esc_html__( 'Unauthorized request.', ZTCPT_TEXT_DOMAIN ), 54 403 55 ); 56 } 57 58 if(isset($_POST['zt_captcha_selected_captcha'])){ 46 59 $zt_captcha_selected_captcha = sanitize_text_field($_POST['zt_captcha_selected_captcha']); 47 update_option(sanitize_key('zt_captcha_selected_captcha'), sanitize_text_field($zt_captcha_selected_captcha));60 update_option(sanitize_key('zt_captcha_selected_captcha'),$zt_captcha_selected_captcha); 48 61 } 49 62 … … 56 69 $this->ztcpt_save_mathematics_captcha_setting(); 57 70 $this->ztcpt_save_image_captcha_setting(); 58 wp_redirect(admin_url('/admin.php?page=ztcpt_captcha_settings&success=1')); 71 wp_safe_redirect(admin_url( 'admin.php?page=ztcpt_captcha_settings&success=1' )); 72 exit; 59 73 } 60 74 -
zt-captcha/trunk/zt-captcha.php
r3101696 r3453549 1 1 <?php 2 2 /* 3 Plugin Name: ZT Captcha 4 Description: The simple captcha plugin was developed to keep the WordPress website safe. Captcha helps protect you from spam and password decryption by asking you to complete a simple test that proves you are human and not a computer trying to break into a password-protected account. 5 Version: 1.0.4 6 Author: Webcresty 7 Author URI: https://www.webcresty.com/ 8 Text Domain: zt-captcha 3 * Plugin Name: ZT Captcha 4 * Description: The simple captcha plugin was developed to keep the WordPress website safe. Captcha helps protect you from spam and password decryption by asking you to complete a simple test that proves you are human and not a computer trying to break into a password-protected account. 5 * Version: 1.0.5 6 * Author: Webcresty 7 * Author URI: https://www.webcresty.com/ 8 * License: GPLv2 or later 9 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 * Text Domain: zt-captcha 9 11 */ 10 12 … … 12 14 define('ZTCPT_CAPTCHA_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 13 15 define('ZTCPT_CAPTCHA_URL_DIR',plugin_dir_url( __FILE__ ) ); 14 define('ZTCPT_CAPTCHA_VERSION','1.0. 2');16 define('ZTCPT_CAPTCHA_VERSION','1.0.5'); 15 17 define('ZTCPT_VALIDATE_REQ','a_c_validate'); 16 18 define('ZTCPT_SESSION_STORAGE','a_security_code');
Note: See TracChangeset
for help on using the changeset viewer.