uawdijnntqw1x1x1
IP : 18.226.214.61
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
/
install.1
/
..
/
shop
/
..
/
system.1
/
library
/
template.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 */ /** * Template class */ namespace Opencart\System\Library; class Template { private object $adaptor; /** * Constructor * * @param string $adaptor * */ public function __construct(string $adaptor) { $class = 'Opencart\System\Library\Template\\' . $adaptor; if (class_exists($class)) { $this->adaptor = new $class(); } else { throw new \Exception('Error: Could not load template adaptor ' . $adaptor . '!'); } } /** * addPath * * @param string $namespace * @param string $directory */ public function addPath(string $namespace, string $directory = ''): void { $this->adaptor->addPath($namespace, $directory); } /** * Render * * @param string $filename * @param array $data * @param string $code * * @return string */ public function render(string $filename, array $data = [], string $code = ''): string { return $this->adaptor->render($filename, $data, $code); } }
/home/sudancam/.trash/install.1/../shop/../system.1/library/template.php