403Webshell
Server IP : 138.197.162.186  /  Your IP : 216.73.216.17
Web Server : nginx/1.24.0
System : Linux ubuntu-s-1vcpu-512mb-10gb-tor1 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/yogaensalada-site/wp-content/plugins/w3-total-cache/lib/NetDNA/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/yogaensalada-site/wp-content/plugins/w3-total-cache/lib/NetDNA/NetDNAPresentation.php
<?php

class NetDNAPresentation {

    public static function format_popular($popular_files) {
        $formatted = array();
        foreach ($popular_files as $file) {
            // basename cannot be used, kills chinese chars and similar characters
            $filename = substr($file['uri'], strrpos($file['uri'], '/')+1);
            $formatted[] = array('file' => $filename, 'title' => $file['uri'],
                'group' => self::get_file_group($file['uri']), 'hit' => $file['hit']);
        }

        return $formatted;
    }

    public static function group_hits_per_filetype_group($filetypes) {
        $groups = array();
        foreach ($filetypes as $file) {
            $file_group = self::get_file_group($file['file_type']);
            if (!isset($groups[$file_group]))
                $groups[$file_group] = 0;
            $groups[$file_group] += $file['hit'];
        }
        return $groups;
    }
    public static function get_file_group($uri) {
        $uri_exploded = explode('.', $uri);
        $ext = end($uri_exploded);
        switch ($ext) {
            case 'css':
            case 'js':
                return $ext;
                break;
            case 'png':
            case 'tiff':
            case 'gif':
            case 'jpg':
            case 'jpeg':
                return 'images';
                break;
            default:
                return 'misc';
                break;
        }
    }

    public static function get_file_group_color($group) {
        switch ($group){
            case 'css':
                return '#739468';
            case 'js':
                return '#ffb05d';
            case 'images':
                return '#b080df';
            default:
                return '#4ba0fa';
        }
    }

    public static function get_account_status($status)  {
        switch ($status) {
            case 1:
                return __('Pending', 'w3-total-cache');
            case 2:
                return __('Active', 'w3-total-cache');
            case 3:
                return __('Cancelled', 'w3-total-cache');
            case 4:
                return __('Suspended', 'w3-total-cache');
            case 5:
                return __('Fraud', 'w3-total-cache');
            default:
                return __('unknown', 'w3-total-cache');
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit