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/Favicon/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

namespace IAWP\Favicon;

use IAWP\Known_Referrers;
/** @internal */
class Favicon
{
    public string $domain;
    public function __construct(string $domain)
    {
        $group = Known_Referrers::get_group_for($domain);
        if (\is_array($group)) {
            $this->domain = $group['domain'];
        } else {
            $this->domain = $domain;
        }
    }
    public function file_name() : string
    {
        $sanitized = \preg_replace('/[^a-z0-9]/', '-', \strtolower($this->domain));
        if (\strlen($sanitized) > 100) {
            $sanitized = \substr($sanitized, 0, 100);
        }
        $hash = \substr(\md5($this->domain), 0, 6);
        return $sanitized . '-' . $hash . '.png';
    }
    public function exists() : bool
    {
        return $this->url() !== null;
    }
    public function url() : ?string
    {
        $path_in_plugin = 'img/favicons/' . $this->file_name();
        if (\file_exists(\IAWPSCOPED\iawp_path_to($path_in_plugin))) {
            return \IAWPSCOPED\iawp_url_to($path_in_plugin);
        }
        $path_in_uploads = 'iawp-favicons/' . $this->file_name();
        if (\file_exists(\IAWPSCOPED\iawp_upload_path_to($path_in_uploads))) {
            return \IAWPSCOPED\iawp_upload_url_to($path_in_uploads);
        }
        return null;
    }
    public static function for(string $domain) : self
    {
        return new self($domain);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit