Changeset 3340906
- Timestamp:
- 08/07/2025 11:02:10 AM (7 months ago)
- Location:
- admin-safety-guard
- Files:
-
- 16 added
- 16 edited
- 1 copied
-
tags/1.0.4 (copied) (copied from admin-safety-guard/trunk)
-
tags/1.0.4/admin-safety-guard.php (modified) (2 diffs)
-
tags/1.0.4/app/Classes/Admin.php (modified) (1 diff)
-
tags/1.0.4/app/Classes/Features/LoginLogout.php (modified) (1 diff)
-
tags/1.0.4/app/Classes/Install.php (modified) (1 diff)
-
tags/1.0.4/app/Classes/Notice.php (added)
-
tags/1.0.4/app/Classes/Wizard.php (added)
-
tags/1.0.4/assets/admin/css/notice.css (added)
-
tags/1.0.4/assets/admin/css/wizard.css (added)
-
tags/1.0.4/inc/functions.php (modified) (1 diff)
-
tags/1.0.4/readme.txt (modified) (4 diffs)
-
tags/1.0.4/views/notice (added)
-
tags/1.0.4/views/notice/setup-wizard-notice.php (added)
-
tags/1.0.4/views/settings/layout.php (modified) (1 diff)
-
tags/1.0.4/views/settings/parts/topbar.php (modified) (2 diffs)
-
tags/1.0.4/views/wizard (added)
-
tags/1.0.4/views/wizard/wizard.php (added)
-
trunk/admin-safety-guard.php (modified) (2 diffs)
-
trunk/app/Classes/Admin.php (modified) (1 diff)
-
trunk/app/Classes/Features/LoginLogout.php (modified) (1 diff)
-
trunk/app/Classes/Install.php (modified) (1 diff)
-
trunk/app/Classes/Notice.php (added)
-
trunk/app/Classes/Wizard.php (added)
-
trunk/assets/admin/css/notice.css (added)
-
trunk/assets/admin/css/wizard.css (added)
-
trunk/inc/functions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/views/notice (added)
-
trunk/views/notice/setup-wizard-notice.php (added)
-
trunk/views/settings/layout.php (modified) (1 diff)
-
trunk/views/settings/parts/topbar.php (modified) (2 diffs)
-
trunk/views/wizard (added)
-
trunk/views/wizard/wizard.php (added)
Legend:
- Unmodified
- Added
- Removed
-
admin-safety-guard/tags/1.0.4/admin-safety-guard.php
r3340085 r3340906 3 3 Plugin Name: Admin Safety Guard 4 4 Plugin URI: http://themepaste.com/product/themepaste-secure-admin-pro/ 5 Description: Secure your WordPress admin with Admin safety guard to ensure secured access with limit login attempts, 2FA, reCaptcha, IP Blocking, Disable XML-RPC and activity tracking.6 Version: 1.0. 35 Description: Secure your WordPress login with Admin safety guard to ensure secured access with limit login attempts, 2FA, reCaptcha, IP Blocking, Disable XML-RPC and activity tracking. 6 Version: 1.0.4 7 7 Author: Themepaste Team 8 8 Author URI: http://themepaste.com/ … … 39 39 define( 'TPSA_PLUGIN_FILE', __FILE__ ); 40 40 define( 'TPSA_PREFIX', 'tpsa' ); 41 define( 'TPSA_PLUGIN_VERSION', '1.0. 3' );41 define( 'TPSA_PLUGIN_VERSION', '1.0.4' ); 42 42 define( 'TPSA_PLUGIN_DIRNAME', dirname( TPSA_PLUGIN_FILE ) ); 43 43 define( 'TPSA_PLUGIN_BASENAME', plugin_basename( TPSA_PLUGIN_FILE ) ); -
admin-safety-guard/tags/1.0.4/app/Classes/Admin.php
r3337798 r3340906 26 26 public function __construct() { 27 27 $this->action( 'plugins_loaded', function() { 28 new Wizard(); 29 new Notice(); 28 30 ( new Settings() )->init(); 29 31 } ); -
admin-safety-guard/tags/1.0.4/app/Classes/Features/LoginLogout.php
r3340085 r3340906 37 37 $this->filter( 'logout_redirect', [$this, 'logout_redirect'], 10, 3 ); 38 38 } 39 40 $this->action( 'updated_option', function( $option_name, $old_value, $new_value ) { 41 if ( $option_name === 'tpsa_custom-login-url_settings' ) { 42 $keys_to_check = ['login-url', 'redirect-url', 'logout-url']; 43 44 foreach ( $keys_to_check as $key ) { 45 if ( isset( $old_value[$key] ) && isset( $new_value[$key] ) && $old_value[$key] !== $new_value[$key] ) { 46 flush_rewrite_rules(); 47 break; // No need to continue checking once we've flushed 48 } 49 } 50 } 51 }, 10, 3 ); 52 39 53 40 54 $this->filter( 'tpsa_custom-login-url_login-url', [$this, 'modify_the_custom_login_logout_url_field'], 10, 2 ); -
admin-safety-guard/tags/1.0.4/app/Classes/Install.php
r3340085 r3340906 25 25 public function bootstrapping() { 26 26 if ( ! $this->is_database_up_to_date() ) { 27 28 set_transient( 'tpsm_do_activation_redirect', true, 30 ); 27 29 28 30 $this->create_table( -
admin-safety-guard/tags/1.0.4/inc/functions.php
r3340085 r3340906 447 447 return $role_names; 448 448 } 449 450 451 if( ! function_exists( 'tpsm_saved_remote_data' ) ) { 452 453 /** 454 * Sends the current user's information to a remote server. 455 * 456 * This function retrieves the currently logged-in user's full name, 457 * email address, and the site URL, and sends this data to a specified 458 * remote server endpoint using a POST request. This is intended to 459 * collect user data for integration with a remote service. 460 * 461 * @return void 462 */ 463 function tpsm_saved_remote_data() { 464 $current_user = wp_get_current_user(); 465 466 // Check if a user is logged in 467 if ( ! $current_user || 0 === $current_user->ID ) { 468 return; 469 } 470 471 // Get full name (first + last or fallback to display name) 472 $full_name = trim( $current_user->first_name . ' ' . $current_user->last_name ); 473 if ( empty( $full_name ) ) { 474 $full_name = $current_user->display_name; 475 } 476 477 $email_address = $current_user->user_email; 478 $site_url = get_site_url(); 479 480 $response = wp_remote_post( 'http://18.215.124.169/wp-json/v2/collect-email/admin-safety-guard', [ 481 'headers' => [ 482 'X-Auth-Token' => 'c7fc312817194d30c79da538204eaec3', 483 'Content-Type' => 'application/json', 484 ], 485 'body' => json_encode([ 486 'email_address' => $email_address, 487 'full_name' => $full_name, 488 'site_url' => $site_url, 489 ]), 490 ] ); 491 492 } 493 } -
admin-safety-guard/tags/1.0.4/readme.txt
r3340085 r3340906 1 === Admin Safety Guard ===1 === Admin Safety Guard – WP Security: Limit Login Attempts, IP Blocking, 2FA & reCAPTCHA === 2 2 Contributors: themepaste, habibnote 3 Tags: Admin Safety Guard, Limit login Attempts, 2 fa, reCaptcha, Password Protection3 Tags: Admin Safety Guard, Limit login Attempts, 2FA, reCaptcha, WP Security 4 4 Requires at least: 5.8 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.0 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Secure your WordPress admin with Admin safety guard to ensure secured access with limit login attempts, 2FA, reCaptcha, IP Blocking, Disable XML-RPC and activity tracking.11 Secure your WordPress login with Admin safety guard to ensure secured access with limit login attempts, 2FA, reCaptcha, IP Blocking, Disable XML-RPC and activity tracking. 12 12 13 13 == Description == 14 14 15 Admin Safety Guard is your comprehensive solution to harden the WordPress admin area without sacrificing usability or performance. This powerful plugin features a sleek interface and robust protection tools. Administrators can secure their sites against common threats while customizing the login experience with precision and accuracy.15 For *WordPress Security* Admin Safety Guard is your comprehensive solution to harden the WordPress admin area without sacrificing usability or performance. This powerful plugin features a sleek interface and robust protection tools. Administrators can secure their sites against common threats while customizing the login experience with precision and accuracy. 16 16 17 17 Whether you're looking to block suspicious IPs, enforce two-factor authentication, or add branded styling to your login screen, Admin Safety Guard has it covered. … … 36 36 37 37 ✅ [Support](https://themepaste.com/contact-us) 38 ✅ [Documentation](https://themepaste.com/documentation/admin-safety-guard-documentation) 38 39 39 40 == Features == … … 76 77 77 78 🛂🔏 **Password Protection**: Allows password-based access restrictions for pages or sections of your site to control who sees what. 78 79 79 80 80 ⚙️🛑 **Disable XML-RPC**: Disables WordPress XML-RPC features known for being exploited by attackers, enhancing core security. … … 128 128 == Changelog == 129 129 130 = 1.0.4 = 131 [new] Auto permalink flush added, based on custom login logout url 132 [new] Admin Notice added 133 [new] Setup wizard added 134 [new] Documentation added 135 130 136 = 1.0.3 = 131 137 [new] added subdirectory Support -
admin-safety-guard/tags/1.0.4/views/settings/layout.php
r3337798 r3340906 19 19 20 20 <div class="wrap"> 21 <!-- Empty h1 for showing the notice --> 22 <h1></h1> 21 23 <div class="tp-secure-admin_wrapper"> 22 24 <?php echo Utility::get_template( 'settings/parts/topbar.php' ); ?> -
admin-safety-guard/tags/1.0.4/views/settings/parts/topbar.php
r3337798 r3340906 2 2 <!-- Top bar wrapper for the Shipping Manager plugin --> 3 3 <div class="tpsa-plugin-topbar-wrapper"> 4 4 5 5 <!-- Logo and title area --> 6 6 <div class="tpsa-logo-title-area"> … … 27 27 <div class="tpsa-topbar-info-area"> 28 28 <!-- Link to plugin documentation --> 29 <a href="https:// wordpress.org/plugins/admin-safety-guard/#description" target="_blank">29 <a href="https://themepaste.com/documentation/admin-safety-guard-documentation" target="_blank"> 30 30 <?php esc_html_e( 'Documentation', 'tp-secure-plugin' ); ?> 31 31 </a> -
admin-safety-guard/trunk/admin-safety-guard.php
r3340085 r3340906 3 3 Plugin Name: Admin Safety Guard 4 4 Plugin URI: http://themepaste.com/product/themepaste-secure-admin-pro/ 5 Description: Secure your WordPress admin with Admin safety guard to ensure secured access with limit login attempts, 2FA, reCaptcha, IP Blocking, Disable XML-RPC and activity tracking.6 Version: 1.0. 35 Description: Secure your WordPress login with Admin safety guard to ensure secured access with limit login attempts, 2FA, reCaptcha, IP Blocking, Disable XML-RPC and activity tracking. 6 Version: 1.0.4 7 7 Author: Themepaste Team 8 8 Author URI: http://themepaste.com/ … … 39 39 define( 'TPSA_PLUGIN_FILE', __FILE__ ); 40 40 define( 'TPSA_PREFIX', 'tpsa' ); 41 define( 'TPSA_PLUGIN_VERSION', '1.0. 3' );41 define( 'TPSA_PLUGIN_VERSION', '1.0.4' ); 42 42 define( 'TPSA_PLUGIN_DIRNAME', dirname( TPSA_PLUGIN_FILE ) ); 43 43 define( 'TPSA_PLUGIN_BASENAME', plugin_basename( TPSA_PLUGIN_FILE ) ); -
admin-safety-guard/trunk/app/Classes/Admin.php
r3337798 r3340906 26 26 public function __construct() { 27 27 $this->action( 'plugins_loaded', function() { 28 new Wizard(); 29 new Notice(); 28 30 ( new Settings() )->init(); 29 31 } ); -
admin-safety-guard/trunk/app/Classes/Features/LoginLogout.php
r3340085 r3340906 37 37 $this->filter( 'logout_redirect', [$this, 'logout_redirect'], 10, 3 ); 38 38 } 39 40 $this->action( 'updated_option', function( $option_name, $old_value, $new_value ) { 41 if ( $option_name === 'tpsa_custom-login-url_settings' ) { 42 $keys_to_check = ['login-url', 'redirect-url', 'logout-url']; 43 44 foreach ( $keys_to_check as $key ) { 45 if ( isset( $old_value[$key] ) && isset( $new_value[$key] ) && $old_value[$key] !== $new_value[$key] ) { 46 flush_rewrite_rules(); 47 break; // No need to continue checking once we've flushed 48 } 49 } 50 } 51 }, 10, 3 ); 52 39 53 40 54 $this->filter( 'tpsa_custom-login-url_login-url', [$this, 'modify_the_custom_login_logout_url_field'], 10, 2 ); -
admin-safety-guard/trunk/app/Classes/Install.php
r3340085 r3340906 25 25 public function bootstrapping() { 26 26 if ( ! $this->is_database_up_to_date() ) { 27 28 set_transient( 'tpsm_do_activation_redirect', true, 30 ); 27 29 28 30 $this->create_table( -
admin-safety-guard/trunk/inc/functions.php
r3340085 r3340906 447 447 return $role_names; 448 448 } 449 450 451 if( ! function_exists( 'tpsm_saved_remote_data' ) ) { 452 453 /** 454 * Sends the current user's information to a remote server. 455 * 456 * This function retrieves the currently logged-in user's full name, 457 * email address, and the site URL, and sends this data to a specified 458 * remote server endpoint using a POST request. This is intended to 459 * collect user data for integration with a remote service. 460 * 461 * @return void 462 */ 463 function tpsm_saved_remote_data() { 464 $current_user = wp_get_current_user(); 465 466 // Check if a user is logged in 467 if ( ! $current_user || 0 === $current_user->ID ) { 468 return; 469 } 470 471 // Get full name (first + last or fallback to display name) 472 $full_name = trim( $current_user->first_name . ' ' . $current_user->last_name ); 473 if ( empty( $full_name ) ) { 474 $full_name = $current_user->display_name; 475 } 476 477 $email_address = $current_user->user_email; 478 $site_url = get_site_url(); 479 480 $response = wp_remote_post( 'http://18.215.124.169/wp-json/v2/collect-email/admin-safety-guard', [ 481 'headers' => [ 482 'X-Auth-Token' => 'c7fc312817194d30c79da538204eaec3', 483 'Content-Type' => 'application/json', 484 ], 485 'body' => json_encode([ 486 'email_address' => $email_address, 487 'full_name' => $full_name, 488 'site_url' => $site_url, 489 ]), 490 ] ); 491 492 } 493 } -
admin-safety-guard/trunk/readme.txt
r3340085 r3340906 1 === Admin Safety Guard ===1 === Admin Safety Guard – WP Security: Limit Login Attempts, IP Blocking, 2FA & reCAPTCHA === 2 2 Contributors: themepaste, habibnote 3 Tags: Admin Safety Guard, Limit login Attempts, 2 fa, reCaptcha, Password Protection3 Tags: Admin Safety Guard, Limit login Attempts, 2FA, reCaptcha, WP Security 4 4 Requires at least: 5.8 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.0 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Secure your WordPress admin with Admin safety guard to ensure secured access with limit login attempts, 2FA, reCaptcha, IP Blocking, Disable XML-RPC and activity tracking.11 Secure your WordPress login with Admin safety guard to ensure secured access with limit login attempts, 2FA, reCaptcha, IP Blocking, Disable XML-RPC and activity tracking. 12 12 13 13 == Description == 14 14 15 Admin Safety Guard is your comprehensive solution to harden the WordPress admin area without sacrificing usability or performance. This powerful plugin features a sleek interface and robust protection tools. Administrators can secure their sites against common threats while customizing the login experience with precision and accuracy.15 For *WordPress Security* Admin Safety Guard is your comprehensive solution to harden the WordPress admin area without sacrificing usability or performance. This powerful plugin features a sleek interface and robust protection tools. Administrators can secure their sites against common threats while customizing the login experience with precision and accuracy. 16 16 17 17 Whether you're looking to block suspicious IPs, enforce two-factor authentication, or add branded styling to your login screen, Admin Safety Guard has it covered. … … 36 36 37 37 ✅ [Support](https://themepaste.com/contact-us) 38 ✅ [Documentation](https://themepaste.com/documentation/admin-safety-guard-documentation) 38 39 39 40 == Features == … … 76 77 77 78 🛂🔏 **Password Protection**: Allows password-based access restrictions for pages or sections of your site to control who sees what. 78 79 79 80 80 ⚙️🛑 **Disable XML-RPC**: Disables WordPress XML-RPC features known for being exploited by attackers, enhancing core security. … … 128 128 == Changelog == 129 129 130 = 1.0.4 = 131 [new] Auto permalink flush added, based on custom login logout url 132 [new] Admin Notice added 133 [new] Setup wizard added 134 [new] Documentation added 135 130 136 = 1.0.3 = 131 137 [new] added subdirectory Support -
admin-safety-guard/trunk/views/settings/layout.php
r3337798 r3340906 19 19 20 20 <div class="wrap"> 21 <!-- Empty h1 for showing the notice --> 22 <h1></h1> 21 23 <div class="tp-secure-admin_wrapper"> 22 24 <?php echo Utility::get_template( 'settings/parts/topbar.php' ); ?> -
admin-safety-guard/trunk/views/settings/parts/topbar.php
r3337798 r3340906 2 2 <!-- Top bar wrapper for the Shipping Manager plugin --> 3 3 <div class="tpsa-plugin-topbar-wrapper"> 4 4 5 5 <!-- Logo and title area --> 6 6 <div class="tpsa-logo-title-area"> … … 27 27 <div class="tpsa-topbar-info-area"> 28 28 <!-- Link to plugin documentation --> 29 <a href="https:// wordpress.org/plugins/admin-safety-guard/#description" target="_blank">29 <a href="https://themepaste.com/documentation/admin-safety-guard-documentation" target="_blank"> 30 30 <?php esc_html_e( 'Documentation', 'tp-secure-plugin' ); ?> 31 31 </a>
Note: See TracChangeset
for help on using the changeset viewer.