Plugin Directory

Changeset 3340906


Ignore:
Timestamp:
08/07/2025 11:02:10 AM (7 months ago)
Author:
themepaste
Message:

Update to version 1.0.4 from GitHub

Location:
admin-safety-guard
Files:
16 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • admin-safety-guard/tags/1.0.4/admin-safety-guard.php

    r3340085 r3340906  
    33Plugin Name: Admin Safety Guard
    44Plugin 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.3
     5Description: 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. 
     6Version: 1.0.4
    77Author: Themepaste Team
    88Author URI: http://themepaste.com/
     
    3939       define( 'TPSA_PLUGIN_FILE', __FILE__ );
    4040       define( 'TPSA_PREFIX', 'tpsa' );
    41        define( 'TPSA_PLUGIN_VERSION', '1.0.3' );
     41       define( 'TPSA_PLUGIN_VERSION', '1.0.4' );
    4242       define( 'TPSA_PLUGIN_DIRNAME', dirname( TPSA_PLUGIN_FILE ) );
    4343       define( 'TPSA_PLUGIN_BASENAME', plugin_basename( TPSA_PLUGIN_FILE ) );
  • admin-safety-guard/tags/1.0.4/app/Classes/Admin.php

    r3337798 r3340906  
    2626    public function __construct() {
    2727        $this->action( 'plugins_loaded', function() {
     28            new Wizard();
     29            new Notice();
    2830            ( new Settings() )->init();
    2931        } );
  • admin-safety-guard/tags/1.0.4/app/Classes/Features/LoginLogout.php

    r3340085 r3340906  
    3737            $this->filter( 'logout_redirect', [$this, 'logout_redirect'], 10, 3 );
    3838        }
     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
    3953
    4054        $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  
    2525    public function bootstrapping() {
    2626        if ( ! $this->is_database_up_to_date() ) {
     27
     28            set_transient( 'tpsm_do_activation_redirect', true, 30 );
    2729
    2830            $this->create_table(
  • admin-safety-guard/tags/1.0.4/inc/functions.php

    r3340085 r3340906  
    447447    return $role_names;
    448448}
     449
     450
     451if( ! 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 ===
    22Contributors: themepaste, habibnote
    3 Tags: Admin Safety Guard, Limit login Attempts, 2fa, reCaptcha, Password Protection
     3Tags: Admin Safety Guard, Limit login Attempts, 2FA, reCaptcha, WP Security
    44Requires at least: 5.8
    55Tested up to: 6.8
    66Requires PHP: 7.0
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010 
    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. 
     11Secure 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. 
    1212
    1313== Description ==
    1414
    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.
     15For *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.
    1616
    1717Whether 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.
     
    3636
    3737✅ [Support](https://themepaste.com/contact-us)
     38✅ [Documentation](https://themepaste.com/documentation/admin-safety-guard-documentation)
    3839
    3940== Features ==
     
    7677
    7778🛂🔏 **Password Protection**: Allows password-based access restrictions for pages or sections of your site to control who sees what.
    78 
    7979
    8080⚙️🛑 **Disable XML-RPC**: Disables WordPress XML-RPC features known for being exploited by attackers, enhancing core security.
     
    128128== Changelog ==
    129129
     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
    130136= 1.0.3 =
    131137[new] added subdirectory Support
  • admin-safety-guard/tags/1.0.4/views/settings/layout.php

    r3337798 r3340906  
    1919
    2020<div class="wrap">
     21    <!-- Empty h1 for showing the notice -->
     22    <h1></h1>
    2123    <div class="tp-secure-admin_wrapper">
    2224        <?php echo Utility::get_template( 'settings/parts/topbar.php' ); ?>
  • admin-safety-guard/tags/1.0.4/views/settings/parts/topbar.php

    r3337798 r3340906  
    22<!-- Top bar wrapper for the Shipping Manager plugin -->
    33<div class="tpsa-plugin-topbar-wrapper">
    4 
     4   
    55    <!-- Logo and title area -->
    66    <div class="tpsa-logo-title-area">
     
    2727    <div class="tpsa-topbar-info-area">
    2828        <!-- 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">
    3030            <?php esc_html_e( 'Documentation', 'tp-secure-plugin' ); ?>
    3131        </a>
  • admin-safety-guard/trunk/admin-safety-guard.php

    r3340085 r3340906  
    33Plugin Name: Admin Safety Guard
    44Plugin 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.3
     5Description: 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. 
     6Version: 1.0.4
    77Author: Themepaste Team
    88Author URI: http://themepaste.com/
     
    3939       define( 'TPSA_PLUGIN_FILE', __FILE__ );
    4040       define( 'TPSA_PREFIX', 'tpsa' );
    41        define( 'TPSA_PLUGIN_VERSION', '1.0.3' );
     41       define( 'TPSA_PLUGIN_VERSION', '1.0.4' );
    4242       define( 'TPSA_PLUGIN_DIRNAME', dirname( TPSA_PLUGIN_FILE ) );
    4343       define( 'TPSA_PLUGIN_BASENAME', plugin_basename( TPSA_PLUGIN_FILE ) );
  • admin-safety-guard/trunk/app/Classes/Admin.php

    r3337798 r3340906  
    2626    public function __construct() {
    2727        $this->action( 'plugins_loaded', function() {
     28            new Wizard();
     29            new Notice();
    2830            ( new Settings() )->init();
    2931        } );
  • admin-safety-guard/trunk/app/Classes/Features/LoginLogout.php

    r3340085 r3340906  
    3737            $this->filter( 'logout_redirect', [$this, 'logout_redirect'], 10, 3 );
    3838        }
     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
    3953
    4054        $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  
    2525    public function bootstrapping() {
    2626        if ( ! $this->is_database_up_to_date() ) {
     27
     28            set_transient( 'tpsm_do_activation_redirect', true, 30 );
    2729
    2830            $this->create_table(
  • admin-safety-guard/trunk/inc/functions.php

    r3340085 r3340906  
    447447    return $role_names;
    448448}
     449
     450
     451if( ! 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 ===
    22Contributors: themepaste, habibnote
    3 Tags: Admin Safety Guard, Limit login Attempts, 2fa, reCaptcha, Password Protection
     3Tags: Admin Safety Guard, Limit login Attempts, 2FA, reCaptcha, WP Security
    44Requires at least: 5.8
    55Tested up to: 6.8
    66Requires PHP: 7.0
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010 
    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. 
     11Secure 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. 
    1212
    1313== Description ==
    1414
    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.
     15For *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.
    1616
    1717Whether 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.
     
    3636
    3737✅ [Support](https://themepaste.com/contact-us)
     38✅ [Documentation](https://themepaste.com/documentation/admin-safety-guard-documentation)
    3839
    3940== Features ==
     
    7677
    7778🛂🔏 **Password Protection**: Allows password-based access restrictions for pages or sections of your site to control who sees what.
    78 
    7979
    8080⚙️🛑 **Disable XML-RPC**: Disables WordPress XML-RPC features known for being exploited by attackers, enhancing core security.
     
    128128== Changelog ==
    129129
     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
    130136= 1.0.3 =
    131137[new] added subdirectory Support
  • admin-safety-guard/trunk/views/settings/layout.php

    r3337798 r3340906  
    1919
    2020<div class="wrap">
     21    <!-- Empty h1 for showing the notice -->
     22    <h1></h1>
    2123    <div class="tp-secure-admin_wrapper">
    2224        <?php echo Utility::get_template( 'settings/parts/topbar.php' ); ?>
  • admin-safety-guard/trunk/views/settings/parts/topbar.php

    r3337798 r3340906  
    22<!-- Top bar wrapper for the Shipping Manager plugin -->
    33<div class="tpsa-plugin-topbar-wrapper">
    4 
     4   
    55    <!-- Logo and title area -->
    66    <div class="tpsa-logo-title-area">
     
    2727    <div class="tpsa-topbar-info-area">
    2828        <!-- 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">
    3030            <?php esc_html_e( 'Documentation', 'tp-secure-plugin' ); ?>
    3131        </a>
Note: See TracChangeset for help on using the changeset viewer.