⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.89
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Routes
/
Edit File: Matcher.php
<?php /** * Helper class to generate the match dictionary for the incoming request. * * PHP version 5 * * @category Horde * @package Horde_Routes * @author Gunnar Wrobel <wrobel@pardus.de> * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @link http://pear.horde.org/index.php?package=Horde_Routes */ /** * Generates the match dictionary for the incoming request. * * Copyright 2011-2016 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you did not * receive this file, see * http://www.horde.org/licenses/lgpl21. * * @category Horde * @package Horde_Routes * @author Gunnar Wrobel <wrobel@pardus.de> * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @link http://pear.horde.org/index.php?package=Horde_Routes */ class Horde_Routes_Matcher { /** * The routes mapper. * * @var Horde_Routes_Mapper */ protected $_mapper; /** * The incoming request. * * @var Horde_Controller_Request */ protected $_request; /** * The match dictionary. * * @var array */ protected $_match_dict; /** * Constructor * * @param Horde_Routes_Mapper $mapper The mapper * @param Object $request A request object that implements a ::getPath() * method similar to Horde_Controller_Request:: */ public function __construct( Horde_Routes_Mapper $mapper, $request) { $this->_mapper = $mapper; $this->_request = $request; } /** * Return the match dictionary for the incoming request. * * @return array The match dictionary. */ public function getMatchDict() { if ($this->_match_dict === null) { $path = $this->_request->getPath(); if (($pos = strpos($path, '?')) !== false) { $path = substr($path, 0, $pos); } if (!$path) { $path = '/'; } $this->_match_dict = new Horde_Support_Array($this->_mapper->match($path)); } return $this->_match_dict; } }
Simpan