403Webshell
Server IP : 104.21.14.103  /  Your IP : 3.147.126.180
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/version-management/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/version-management/setup.php
<?php

final class ITSEC_Version_Management_Setup {
	public function __construct() {
		add_action( 'itsec_modules_do_plugin_deactivation', array( $this, 'execute_deactivate' ) );
		add_action( 'itsec_modules_do_plugin_uninstall', array( $this, 'execute_uninstall' ) );
		add_action( 'itsec_modules_do_plugin_upgrade', array( $this, 'execute_upgrade' ) );
	}

	/**
	 * Execute module deactivation
	 *
	 * @since 2.9.0
	 *
	 * @return void
	 */
	public function execute_deactivate() {
		delete_site_option( 'itsec_vm_wp_releases' );
	}

	/**
	 * Execute module uninstall
	 *
	 * @since 2.9.0
	 *
	 * @return void
	 */
	public function execute_uninstall() {
		$this->execute_deactivate();
	}

	/**
	 * Execute upgrade routine.
	 *
	 * @param int $old_version
	 */
	public function execute_upgrade( $old_version ) {
		if ( $old_version < 4079 ) {
			wp_clear_scheduled_hook( 'itsec_vm_outdated_wp_check' );
			wp_clear_scheduled_hook( 'itsec_vm_outdated_check' );
			wp_clear_scheduled_hook( 'itsec_vm_scan_for_old_sites' );
		}

		if ( $old_version < 4098 ) {
			$settings = ITSEC_Modules::get_settings( 'version-management' );

			if ( is_bool( $settings['plugin_automatic_updates'] ) ) {
				$settings['plugin_automatic_updates'] = $settings['plugin_automatic_updates'] ? 'all' : 'none';
			}

			if ( is_bool( $settings['theme_automatic_updates'] ) ) {
				$settings['theme_automatic_updates'] = $settings['theme_automatic_updates'] ? 'all' : 'none';
			}

			ITSEC_Modules::set_settings( 'version-management', $settings );
		}

		if ( ( $old_version < 4122 ) && null === get_site_option( 'auto_update_core_major', null ) ) {
			update_site_option(
				'auto_update_core_major',
				ITSEC_Modules::get_setting( 'version-management', 'wordpress_automatic_updates' ) ? 'enabled' : 'unset'
			);
		}
	}
}

new ITSEC_Version_Management_Setup();

Youez - 2016 - github.com/yon3zu
LinuXploit