!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/Symfony/Component/Routing/Matcher/   drwxr-xr-x
Free 294.19 GB of 429.69 GB (68.47%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ApacheUrlMatcher.php (3.36 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Routing\Matcher;

use 
Symfony\Component\Routing\Exception\MethodNotAllowedException;

/**
 * ApacheUrlMatcher matches URL based on Apache mod_rewrite matching (see ApacheMatcherDumper).
 *
 * @author Fabien Potencier <fabien@symfony.com>
 * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
 */
class ApacheUrlMatcher extends UrlMatcher
{
    
/**
     * Tries to match a URL based on Apache mod_rewrite matching.
     *
     * Returns false if no route matches the URL.
     *
     * @param string $pathinfo The pathinfo to be parsed
     *
     * @return array An array of parameters
     *
     * @throws MethodNotAllowedException If the current method is not allowed
     */
    
public function match($pathinfo)
    {
        
$parameters = array();
        
$defaults = array();
        
$allow = array();
        
$route null;

        foreach (
$this->denormalizeValues($_SERVER) as $key => $value) {
            
$name $key;

            
// skip non-routing variables
            // this improves performance when $_SERVER contains many usual
            // variables like HTTP_*, DOCUMENT_ROOT, REQUEST_URI, ...
            
if (false === strpos($name'_ROUTING_')) {
                continue;
            }

            while (
=== strpos($name'REDIRECT_')) {
                
$name substr($name9);
            }

            
// expect _ROUTING_<type>_<name>
            // or _ROUTING_<type>

            
if (!== strpos($name'_ROUTING_')) {
                continue;
            }
            if (
false !== $pos strpos($name'_'9)) {
                
$type substr($name9$pos-9);
                
$name substr($name$pos+1);
            } else {
                
$type substr($name9);
            }

            if (
'param' === $type) {
                if (
'' !== $value) {
                    
$parameters[$name] = $value;
                }
            } elseif (
'default' === $type) {
                
$defaults[$name] = $value;
            } elseif (
'route' === $type) {
                
$route $value;
            } elseif (
'allow' === $type) {
                
$allow[] = $name;
            }

            unset(
$_SERVER[$key]);
        }

        if (
null !== $route) {
            
$parameters['_route'] = $route;

            return 
$this->mergeDefaults($parameters$defaults);
        } elseif (
count($allow)) {
            throw new 
MethodNotAllowedException($allow);
        } else {
            return 
parent::match($pathinfo);
        }
    }

    
/**
     * Denormalizes an array of values.
     *
     * @param string[] $values
     *
     * @return array
     */
    
private function denormalizeValues(array $values)
    {
        
$normalizedValues = array();
        foreach (
$values as $key => $value) {
            if (
preg_match('~^(.*)\[(\d+)\]$~'$key$matches)) {
                if (!isset(
$normalizedValues[$matches[1]])) {
                    
$normalizedValues[$matches[1]] = array();
                }
                
$normalizedValues[$matches[1]][(int) $matches[2]] = $value;
            } else {
                
$normalizedValues[$key] = $value;
            }
        }

        return 
$normalizedValues;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0035 ]--