Server IP : 104.21.14.103 / Your IP : 3.144.9.172 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/pro/privilege/ |
Upload File : |
<?php class ITSEC_Privilege_Setup { public function __construct() { add_action( 'itsec_modules_do_plugin_uninstall', array( $this, 'execute_uninstall' ) ); add_action( 'itsec_modules_do_plugin_upgrade', array( $this, 'execute_upgrade' ) ); } /** * Execute module uninstall * * @return void */ public function execute_uninstall() { delete_site_option( 'itsec_privilege' ); } /** * Execute module upgrade * * @param int $itsec_old_version */ public function execute_upgrade( $itsec_old_version ) { if ( $itsec_old_version < 4041 ) { $current_options = get_site_option( 'itsec_privilege' ); // If there are no current options, go with the new defaults by not saving anything if ( is_array( $current_options ) ) { // Make sure the new module is properly activated or deactivated if ( $current_options['enabled'] ) { ITSEC_Modules::activate( 'privilege' ); } else { ITSEC_Modules::deactivate( 'privilege' ); } } } if ( $itsec_old_version < 4068 ) { delete_site_option( 'itsec_privilege' ); } } } new ITSEC_Privilege_Setup();