uawdijnntqw1x1x1
IP : 3.144.88.67
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,parse_ini_file,show_source,eval,open_base,symlink
OS : Linux
PATH:
/
home
/
sudancam
/
public_html3
/
.well-known
/
..
/
.
/
wp-includes
/
SimplePie
/
..
/
.
/
.
/
..
/
..
/
.trash
/
system.1
/
library
/
language.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 */ /** * Language class */ namespace Opencart\System\Library; class Language { protected string $code; protected string $directory; protected array $path = []; protected array $data = []; /** * Constructor * * @param string $code * */ public function __construct(string $code) { $this->code = $code; } /** * 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; } } /** * Get language tex string * * @param string $key * * @return string */ public function get(string $key) { return isset($this->data[$key]) ? $this->data[$key] : $key; } /** * Set language text string * * @param string $key * @param string $value */ public function set(string $key, string $value) { $this->data[$key] = $value; } /** * All * * @return array */ public function all(string $prefix = ''): array { if (!$prefix) { return $this->data; } $_ = []; $len = strlen($prefix); foreach ($this->data as $key => $value) { if (substr($key, 0, $len) == $prefix) { $_[substr($key, $len + 1)] = $value; } } return $_; } /** * Clear * * @return array */ public function clear(): void { $this->data = []; } /** * Load * * @param string $filename * @param string $code Language code * * @return array */ public function load(string $filename, string $prefix = '', string $code = ''): array { if (!$code) { $code = $this->code; } if (!isset($this->cache[$code][$filename])) { $file = $this->directory . $code . '/' . $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] . $code . substr($filename, strlen($namespace)) . '.php'; } } $_ = []; if (is_file($file)) { require($file); } $this->cache[$code][$filename] = $_; } else { $_ = $this->cache[$code][$filename]; } if ($prefix) { foreach ($_ as $key => $value) { $_[$prefix . '_' . $key] = $value; unset($_[$key]); } } $this->data = array_merge($this->data, $_); return $this->data; } }
/home/sudancam/public_html3/.well-known/.././wp-includes/SimplePie/../././../../.trash/system.1/library/language.php