uawdijnntqw1x1x1
IP : 216.73.216.103
Hostname : dsru51-17647.fornex.org
Kernel : Linux dsru51-17647.fornex.org 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
rustam
/
data
/
www
/
veka.region-saitov.ru
/
components
/
com_jlsitemap
/
router.php
/
/
<?php /** * @package JLSitemap Component * @version 1.12.0 * @author Joomline - joomline.ru * @copyright Copyright (c) 2010 - 2022 Joomline. All rights reserved. * @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html * @link https://joomline.ru/ */ defined('_JEXEC') or die; use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Component\Router\RouterView; use Joomla\CMS\Component\Router\RouterViewConfiguration; use Joomla\CMS\Component\Router\Rules\MenuRules; use Joomla\CMS\Component\Router\Rules\NomenuRules; use Joomla\CMS\Component\Router\Rules\StandardRules; use Joomla\CMS\Factory; use Joomla\CMS\Menu\AbstractMenu; class JLSitemapRouter extends RouterView { /** * Router constructor. * * @param CMSApplication $app The application object. * @param AbstractMenu $menu The menu object to work with. * * @since 1.6.0 */ public function __construct($app = null, $menu = null) { // Registration route $html = new RouterViewConfiguration('html'); $html->setKey('key'); $this->registerView($html); parent::__construct($app, $menu); $this->attachRule(new MenuRules($this)); $this->attachRule(new StandardRules($this)); $this->attachRule(new NomenuRules($this)); } /** * Method to get the segment(s) for html. * * @param string $id ID of the item to retrieve the segments. * @param array $query The request that is built right now. * * @return array|string The segments of this item. * * @since 1.6.0 */ public function getHTMLSegment($id, $query) { return array(1 => 'html'); } /** * Method to get the id for html. * * @param string $segment Segment to retrieve the ID. * @param array $query The request that is parsed right now. * * @return integer|false The id of this item or false. * * @since 1.6.0 */ public function getHTMLId($segment, $query) { return (@$query['view'] == 'html') ? 1 : false; } } /** * JLSitemap router functions. * * @param array &$query An array of URL arguments. * * @throws Exception * * @return array The URL arguments to use to assemble the subsequent URL. * * @since 1.6.0 */ function JLSitemapBuildRoute(&$query) { $app = Factory::getApplication(); $router = new JLSitemapRouter($app, $app->getMenu()); return $router->build($query); } /** * Parse the segments of a URL. * * @param array $segments The segments of the URL to parse. * * @throws Exception * * @return array The URL attributes to be used by the application. * * @since 1.6.0 */ function JLSitemapParseRoute($segments) { $app = Factory::getApplication(); $router = new JLSitemapRouter($app, $app->getMenu()); return $router->parse($segments); }
/var/www/rustam/data/www/veka.region-saitov.ru/components/com_jlsitemap/router.php