AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/lemans/administrator/components/com_djcatalog2/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/lemans/administrator/components/com_djcatalog2/helpers/route.php
<?php
/**
 * @package DJ-Catalog2
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */

defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Application\AdministratorApplication;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Router\SiteRouter;
use Joomla\CMS\Factory;
require_once JPATH_ROOT.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_djcatalog2'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'route.php';

// usage: echo DJCatalog2HelperSiteRoute::buildRoute('getItemRoute', array('1:test', '1:test'), '&layout=promotion#plan-3', true);

class DJCatalog2HelperSiteRoute extends DJCatalog2HelperRoute {

	public static function buildRoute($function, $args = array(), $params = '', $xhtml = true) {
		$liveSite = substr(Uri::root(), 0, -1);
		$router = Factory::getContainer()->get(SiteRouter::class);
		$routed = self::call(array('DJCatalog2HelperRoute', $function), $args);
		$url = $router->build($routed . $params)->toString();

		$uri = Uri::getInstance(Uri::root());

		$link = $uri->toString(array('scheme', 'host', 'port'));
		$link .= $url;

		$link = preg_replace('/\s/u', '%20', $link);
		return ($xhtml) ? htmlspecialchars($link) : $link;
	}

	protected static function call($function, $args) {
		if (!is_callable($function)) {
			throw new InvalidArgumentException('Function not supported', 500);
		}
		$temp = array();
		foreach ($args as &$arg) {
			$temp[] = &$arg;
		}
		return call_user_func_array($function, $temp);
	}
}

Anon7 - 2022
AnonSec Team