uawdijnntqw1x1x1
IP : 18.221.22.85
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
.trash
/
tyblue.2
/
..
/
img.1
/
..
/
system.1
/
engine
/
autoloader.php
/
/
<?php namespace Opencart\System\Engine; class Autoloader { private array $path = []; public function __construct() { spl_autoload_register([$this, 'load']); spl_autoload_extensions('.php'); } // psr-4 filename standard is stupid composer has lower case file structure than its packages have camelcase file names! public function register(string $namespace, string $directory, $psr4 = false): void { $this->path[$namespace] = [ 'directory' => $directory, 'psr4' => $psr4 ]; } public function load(string $class): bool { $namespace = ''; $parts = explode('\\', $class); foreach ($parts as $part) { if (!$namespace) { $namespace .= $part; } else { $namespace .= '\\' . $part; } if (isset($this->path[$namespace])) { if (!$this->path[$namespace]['psr4']) { $file = $this->path[$namespace]['directory'] . trim(str_replace('\\', '/', strtolower(preg_replace('~([a-z])([A-Z]|[0-9])~', '\\1_\\2', substr($class, strlen($namespace))))), '/') . '.php'; } else { $file = $this->path[$namespace]['directory'] . trim(str_replace('\\', '/', substr($class, strlen($namespace))), '/') . '.php'; } } } if (isset($file) && is_file($file)) { include_once($file); return true; } else { return false; } } }
/home/sudancam/.trash/tyblue.2/../img.1/../system.1/engine/autoloader.php