uawdijnntqw1x1x1
IP : 18.218.183.18
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.2
/
..
/
MyBB-Google-SEO-1.8.4
/
..
/
system.1
/
library
/
url.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 * @author Daniel Kerr * @see https://www.opencart.com */ /** * URL class. */ namespace Opencart\System\Library; class Url { private string $url; private array $rewrite = []; /** * Constructor. * * @param string $url * @param string $ssl Depricated */ public function __construct(string $url) { $this->url = $url; } /** * Add a rewrite method to the URL system * * @param Controller $rewrite * * @return void */ public function addRewrite(\Opencart\System\Engine\Controller $rewrite): void { $this->rewrite[] = $rewrite; } /** * Generates a URL * * @param string $route * @param string|array $args * @param bool $js * * @return string */ public function link(string $route, string|array $args = '', bool $js = false): string { $url = $this->url . 'index.php?route=' . $route; if ($args) { if (is_array($args)) { $url .= '&' . http_build_query($args); } else { $url .= '&' . trim($args, '&'); } } foreach ($this->rewrite as $rewrite) { $url = $rewrite->rewrite($url); } if (!$js) { return str_replace('&', '&', $url); } else { return $url; } } }
/home/sudancam/.trash/install.2/../MyBB-Google-SEO-1.8.4/../system.1/library/url.php