| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/repository/wp-content/plugins/jetpack/sync/ |
Upload File : |
<?php
/**
* logs bruteprotect failed logins via sync
*/
class Jetpack_Sync_Module_Protect extends Jetpack_Sync_Module {
function name() {
return 'protect';
}
function init_listeners( $callback ) {
add_action( 'jpp_log_failed_attempt', array( $this, 'maybe_log_failed_login_attempt' ) );
add_action( 'jetpack_valid_failed_login_attempt', $callback );
}
function maybe_log_failed_login_attempt( $failed_attempt ) {
$protect = Jetpack_Protect_Module::instance();
if ( $protect->has_login_ability() && ! Jetpack_Constants::is_true( 'XMLRPC_REQUEST' ) ) {
do_action( 'jetpack_valid_failed_login_attempt', $failed_attempt );
}
}
}