HEX
Server: Apache/2
System: Linux server.cloudfly.vn 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64
User: root (0)
PHP: 7.4.29
Disabled: NONE
Upload Files
File: /home/dkhp464/public_html/wp-content/plugins/easy-watermark/index.php
<?php
/**
 * Legacy file for updating from previous version
 *
 * @package easy-watermark
 */

/**
 * Activates plugin with new file, deactivates the old file.
 */
add_action( 'admin_init', function() {

	$new_file = dirname( __FILE__ ) . '/easy-watermark.php';

	deactivate_plugins( __FILE__ );
	activate_plugin( $new_file, $_SERVER['REQUEST_URI'] ); //phpcs:ignore

	// Remove this file after new plugin activtion.
	unlink( __FILE__ );
} );