Server IP : 172.67.158.161 / Your IP : 18.216.22.17 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/core/modules/hibp/ |
Upload File : |
<?php use iThemesSecurity\User_Groups\Upgrader; class ITSEC_HIBP_Setup { public function __construct() { add_action( 'itsec_modules_do_plugin_upgrade', array( $this, 'execute_upgrade' ) ); } /** * Execute module upgrade * * @param int $itsec_old_version * * @return void */ public function execute_upgrade( $itsec_old_version ) { if ( $itsec_old_version < 4117 ) { $settings = ITSEC_Modules::get_setting( 'password-requirements', 'requirement_settings' ); if ( isset( $settings['hibp']['role'] ) ) { $settings['hibp']['group'] = ITSEC_Modules::get_container() ->get( Upgrader::class ) ->upgrade_from_min_role( $settings['hibp']['role'] ); unset( $settings['hibp']['role'] ); } else { $settings['hibp']['group'] = []; } ITSEC_Modules::set_setting( 'password-requirements', 'requirement_settings', $settings ); } } } new ITSEC_HIBP_Setup();