403Webshell
Server IP : 52.202.253.110  /  Your IP : 216.73.217.139
Web Server : Apache/2.4.56 (Amazon Linux) OpenSSL/3.0.8
System : Linux ip-172-32-10-67.ec2.internal 6.1.49-70.116.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 6 22:13:07 UTC 2023 x86_64
User : ec2-user ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/vhosts/cirrata_html/wp-content/plugins/wpmudev-updates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/cirrata_html/wp-content/plugins/wpmudev-updates/uninstall.php
<?php
/**
 * Uninstall file.
 *
 * Cleanup plugin settings and transients if configured.
 *
 * @since   4.11.4
 * @package WPMUDEV
 */

// If uninstall not called from WordPress exit.
defined( 'WP_UNINSTALL_PLUGIN' ) || exit();

// Get uninstall settings.
$keep_data     = get_site_option( 'wdp_un_uninstall_keep_data' );
$keep_settings = get_site_option( 'wdp_un_uninstall_preserve_settings' );

global $wpdb;

if ( ! $keep_data && ! $keep_settings ) {
	// Delete both settings and transients.
	if ( is_multisite() ) {
		$wpdb->query( "DELETE FROM {$wpdb->sitemeta} WHERE meta_key LIKE '%wdp_un_%'" ); // phpcs:ignore
	} else {
		$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '%wdp_un_%'" ); // phpcs:ignore
	}

	// Delete API key if everything needs to be cleaned.
	delete_site_option( 'wpmudev_apikey' );
} elseif ( ! $keep_data ) {
	// Delete transients.
	if ( is_multisite() ) {
		$wpdb->query( "DELETE FROM {$wpdb->sitemeta} WHERE meta_key LIKE '%_wdp_un_%'" ); // phpcs:ignore
	} else {
		$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '%_wdp_un_%'" ); // phpcs:ignore
	}

	// These are not settings, but data.
	delete_site_option( 'wdp_un_membership_data' );
	delete_site_option( 'wdp_un_remote_access' );
	delete_site_option( 'wdp_un_updates_data' );
	delete_site_option( 'wdp_un_translation_updates_available' );
	delete_site_option( 'wdp_un_profile_data' );
	delete_site_option( 'wdp_un_updates_available' );
	delete_site_option( 'wdp_un_notifications' );
} elseif ( ! $keep_settings ) {
	// Delete settings.
	if ( is_multisite() ) {
		$wpdb->query( "DELETE FROM {$wpdb->sitemeta} WHERE meta_key LIKE 'wdp_un_%' AND meta_key NOT LIKE '%_wdp_un_%'" ); // phpcs:ignore
	} else {
		$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'wdp_un_%' AND option_name NOT LIKE '%_wdp_un_%'" ); // phpcs:ignore
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit