uawdijnntqw1x1x1
IP : 3.138.113.68
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
/
images
/
..
/
related-posts-by-zemanta.1
/
..
/
system.1
/
engine
/
config.php
/
/
<?php /** * @package OpenCart * @author Daniel Kerr * @copyright Copyright (c) 2005 - 2017, OpenCart, Ltd. (https://www.opencart.com/) * @license https://opensource.org/licenses/GPL-3.0 * @link https://www.opencart.com */ /** * Config class */ namespace Opencart\System\Engine; class Config { protected string $directory; private array $path = []; private array $data = []; /** * addPath * * @param string $namespace * @param string $directory */ public function addPath(string $namespace, string $directory = ''): void { if (!$directory) { $this->directory = $namespace; } else { $this->path[$namespace] = $directory; } } /** * * * @param string $key * * @return mixed */ public function get(string $key): mixed { return isset($this->data[$key]) ? $this->data[$key] : ''; } /** * * * @param string $key * @param string $value */ public function set(string $key, mixed $value): void { $this->data[$key] = $value; } /** * * * @param string $key * * @return mixed */ public function has(string $key): bool { return isset($this->data[$key]); } /** * * * @param string $filename */ public function load(string $filename): array { $file = $this->directory . $filename . '.php'; $namespace = ''; $parts = explode('/', $filename); foreach ($parts as $part) { if (!$namespace) { $namespace .= $part; } else { $namespace .= '/' . $part; } if (isset($this->path[$namespace])) { $file = $this->path[$namespace] . substr($filename, strlen($namespace)) . '.php'; } } if (is_file($file)) { $_ = []; require($file); $this->data = array_merge($this->data, $_); return $this->data; } else { return []; } } }
/home/sudancam/.trash/images/../related-posts-by-zemanta.1/../system.1/engine/config.php