$29 GRAYBYTE WORDPRESS FILE MANAGER $23

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.51
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cpanel/ea-wappspector/src/MatchResult/

HOME
Current File : /opt/cpanel/ea-wappspector/src/MatchResult//MatchResult.php
<?php

declare(strict_types=1);


namespace Plesk\Wappspector\MatchResult;

use JsonSerializable;
use League\Flysystem\PathTraversalDetected;
use League\Flysystem\WhitespacePathNormalizer;

class MatchResult implements MatchResultInterface, JsonSerializable
{
    public const ID = null;
    public const NAME = null;

    public function __construct(
        protected string $path,
        protected ?string $version = null,
        protected ?string $application = null,
    ) {
        try {
            $this->path = (new WhitespacePathNormalizer())->normalizePath($this->path);
        } catch (PathTraversalDetected) {
            $this->path = '/';
        }
    }

    public function getId(): string
    {
        return static::ID;
    }

    public function getName(): string
    {
        return static::NAME;
    }

    public function getPath(): string
    {
        return $this->path;
    }

    public function getVersion(): ?string
    {
        return $this->version;
    }

    public function getApplication(): ?string
    {
        return $this->application;
    }

    public function jsonSerialize(): array
    {
        return [
            'id' => $this->getId(),
            'name' => $this->getName(),
            'path' => $this->getPath(),
            'version' => $this->getVersion(),
            'application' => $this->getApplication(),
        ];
    }

    public static function createById(
        string $id,
        ?string $path = null,
        ?string $version = null,
        ?string $application = null
    ): MatchResultInterface {
        $classname = match ($id) {
            CakePHP::ID => CakePHP::class,
            CodeIgniter::ID => CodeIgniter::class,
            Composer::ID => Composer::class,
            DotNet::ID => DotNet::class,
            Drupal::ID => Drupal::class,
            Joomla::ID => Joomla::class,
            Laravel::ID => Laravel::class,
            NodeJs::ID => NodeJs::class,
            Php::ID => Php::class,
            Prestashop::ID => Prestashop::class,
            Python::ID => Python::class,
            Ruby::ID => Ruby::class,
            Symfony::ID => Symfony::class,
            Typo3::ID => Typo3::class,
            Wordpress::ID => Wordpress::class,
            Yii::ID => Yii::class,
            Sitejet::ID => Sitejet::class,
            WebPresenceBuilder::ID => WebPresenceBuilder::class,
            Sitepro::ID => Sitepro::class,
            Duda::ID => Duda::class,
            Siteplus::ID => Siteplus::class,
            default => null,
        };

        if (!$classname) {
            return new EmptyMatchResult();
        }

        return new $classname(path: $path ?? '', version: $version, application: $application);
    }
}

Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
15 May 2026 8.30 AM
root / root
0755
CakePHP.php
0.178 KB
14 May 2026 3.20 PM
root / root
0644
CodeIgniter.php
0.189 KB
14 May 2026 3.20 PM
root / root
0644
Composer.php
0.181 KB
14 May 2026 3.20 PM
root / root
0644
DotNet.php
0.173 KB
14 May 2026 3.20 PM
root / root
0644
Drupal.php
0.175 KB
14 May 2026 3.20 PM
root / root
0644
Duda.php
0.172 KB
14 May 2026 3.20 PM
root / root
0644
EmptyMatchResult.php
0.5 KB
14 May 2026 3.20 PM
root / root
0644
Joomla.php
0.176 KB
14 May 2026 3.20 PM
root / root
0644
Laravel.php
0.178 KB
14 May 2026 3.20 PM
root / root
0644
MatchResult.php
2.679 KB
14 May 2026 3.20 PM
root / root
0644
MatchResultInterface.php
0.417 KB
14 May 2026 3.20 PM
root / root
0644
NodeJs.php
0.176 KB
14 May 2026 3.20 PM
root / root
0644
Php.php
0.166 KB
14 May 2026 3.20 PM
root / root
0644
Prestashop.php
0.187 KB
14 May 2026 3.20 PM
root / root
0644
Python.php
0.175 KB
14 May 2026 3.20 PM
root / root
0644
Ruby.php
0.169 KB
14 May 2026 3.20 PM
root / root
0644
Sitejet.php
0.178 KB
14 May 2026 3.20 PM
root / root
0644
Siteplus.php
0.181 KB
14 May 2026 3.20 PM
root / root
0644
Sitepro.php
0.179 KB
14 May 2026 3.20 PM
root / root
0644
Symfony.php
0.178 KB
14 May 2026 3.20 PM
root / root
0644
Typo3.php
0.172 KB
14 May 2026 3.20 PM
root / root
0644
WebPresenceBuilder.php
0.21 KB
14 May 2026 3.20 PM
root / root
0644
Wordpress.php
0.184 KB
14 May 2026 3.20 PM
root / root
0644
Yii.php
0.166 KB
14 May 2026 3.20 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF