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/auto.mitrofanov.ru/public/wp-content/plugins/tools4wp/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/auto.mitrofanov.ru/public/wp-content/plugins/tools4wp/includes/premium.php
<?php

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) 
{
    exit;
}

// Set Premuim Status
if ( ! (get_option('tools4wp_licensed') == 'true')){
    $tools4wp_license = get_option('tools4wp_license');
    $tools4wp_premium_number = $tools4wp_license['tools4wp_premium_number'] ?? 'null';
    $url = base64_decode($tools4wp_premium_number);
    if (filter_var($url, FILTER_VALIDATE_URL)) {
        if (@file_get_contents($url)) {
            $json = file_get_contents($url);
            $data = json_decode($json, true);
            if (isset($data['premium'])) {
                $premium = $data['premium'];
                $premium_status = $data['status'];
                $data = array(
                    'premium' => $premium,
                    'status' => $premium_status,
                );
                update_option('tools4wp_premium', $data);
                // $tools4wp_license = get_option('tools4wp_license');
                $tools4wp_license['tools4wp_licensed'] = 'true';
                update_option('tools4wp_license', $tools4wp_license);
            } else {
            update_option('tools4wp_premium', 'false');
            // $tools4wp_license = get_option( 'tools4wp_license' );
            unset( $tools4wp_license['tools4wp_premium_number'] );
            update_option( 'tools4wp_license', $tools4wp_license );
            }
        } else {
            update_option('tools4wp_premium', 'false');
            // $tools4wp_license = get_option( 'tools4wp_license' );
            unset( $tools4wp_license['tools4wp_premium_number'] );
            update_option( 'tools4wp_license', $tools4wp_license );
        }
    } else {
        update_option('tools4wp_premium', 'false');
        // $tools4wp_license = get_option( 'tools4wp_license' );
        unset( $tools4wp_license['tools4wp_premium_number'] );
        update_option( 'tools4wp_license', $tools4wp_license );
    }
}


Youez - 2016 - github.com/yon3zu
LinuXploit