403Webshell
Server IP : 103.57.220.144  /  Your IP : 216.73.217.172
Web Server : nginx/1.28.1
System : Linux cs-linux-20260128093600810 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : dulichdaohon ( 1183)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/dulichdaohon/data/www/dulichdaohong.com/wp-content/plugins/xml-sitemap-feed/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/dulichdaohon/data/www/dulichdaohong.com/wp-content/plugins/xml-sitemap-feed/uninstall.php
<?php
/**
 * Plugin Uninstallation
 *
 * @package XML Sitemap & Google News
 */

/**
 * XMLSF_MULTISITE_UNINSTALL
 *
 * Set this constant in wp-config.php if you want to allow looping over each site
 * in the network to run xmlsf_uninstall() defined in uninstall.php
 *
 * There is batch-processing on non-large networks.
 * The constant XMLSF_MULTISITE_UNINSTALL needs to be set explicitly on networks over 10k sites.
 *
 * Example:
 * define( 'XMLSF_MULTISITE_UNINSTALL', true);
 */

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

global $wpdb;

// Check if it is a multisite and if XMLSF_MULTISITE_UNINSTALL constant is defined
// if so, run the uninstall function for each blog id.
if ( is_multisite() && ( ! wp_is_large_network() || ( defined( 'XMLSF_MULTISITE_UNINSTALL' ) && XMLSF_MULTISITE_UNINSTALL ) ) ) {
	// Logging.
	WP_DEBUG && WP_DEBUG_LOG && error_log( 'Clearing XML Sitemap Feeds settings from each site before uninstall:' );

	$blogs = $wpdb->get_col( $wpdb->prepare( 'SELECT %s FROM %s', array( 'blog_id', $wpdb->prefix . 'blogs' ) ) );

	foreach ( $blogs as $_id ) {
		switch_to_blog( $_id );
		xmlsf_uninstall();
		restore_current_blog();
		// Logging.
		WP_DEBUG && WP_DEBUG_LOG && error_log( $_id );
	}
} else {
	xmlsf_uninstall();

	// Logging.
	WP_DEBUG && WP_DEBUG_LOG && error_log( 'XML Sitemap Feeds settings cleared on uninstall.' );
}


/**
 * Remove plugin data.
 *
 * @since 4.4
 */
function xmlsf_uninstall() {
	// Remove cache metadata.
	// Should already have been done on plugin deactivation unless we're unstalling on multisite...

	// Clear all meta caches...
	delete_metadata( 'post', 0, '_xmlsf_image_attached', '', true );
	delete_metadata( 'post', 0, '_xmlsf_image_featured', '', true );
	delete_metadata( 'post', 0, '_xmlsf_comment_date_gmt', '', true );
	delete_metadata( 'term', 0, 'term_modified', '', true );
	delete_metadata( 'user', 0, 'user_modified', '', true );

	// Remove post meta data.
	delete_metadata( 'post', 0, '_xmlsf_exclude', '', true );
	delete_metadata( 'post', 0, '_xmlsf_news_exclude', '', true );

	// Remove plugin settings.
	delete_option( 'xmlsf_version' );
	delete_option( 'xmlsf_sitemaps' );
	delete_option( 'xmlsf_server' );
	delete_option( 'xmlsf_disabled_providers' );
	delete_option( 'xmlsf_post_types' );
	delete_option( 'xmlsf_taxonomies' );
	delete_option( 'xmlsf_taxonomy_settings' );
	delete_option( 'xmlsf_author_settings' );
	delete_option( 'xmlsf_ping' );
	delete_option( 'xmlsf_robots' );
	delete_option( 'xmlsf_urls' );
	delete_option( 'xmlsf_custom_sitemaps' );
	delete_option( 'xmlsf_domains' );
	delete_option( 'xmlsf_news_tags' );
	delete_option( 'xmlsf_authors' );
	delete_option( 'xmlsf_post_type_settings' );
	delete_option( 'xmlsf_gsc_connect' );

	// Remove old transient.
	delete_transient( 'xmlsf_images_meta_primed' );
	delete_transient( 'xmlsf_comments_meta_primed' );
	delete_transient( 'xmlsf_static_files' );
	delete_transient( 'gsc_connect_origin' );
	delete_transient( 'sitemap_notifier_access_token' );
	delete_transient( 'sitemap_notifier_bing_access_token' );
	delete_transient( 'sitemap_notifier_google_access_token' );
	delete_transient( 'sitemap_notifier_submission' );
	delete_transient( 'sitemap_notifier_bing_submission' );
	delete_transient( 'sitemap_notifier_google_submission' );
	delete_transient( 'sitemap_notifier_submission_news' );

	// Remove scheduled events.
	wp_clear_scheduled_hook( 'xmlsf_gsc_keep_alive' );
	wp_clear_scheduled_hook( 'xmlsf_bwt_keep_alive' );

	// Flush rules.
	flush_rewrite_rules( false );
}

Youez - 2016 - github.com/yon3zu
LinuXploit