Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
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);
}
}