!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)

/uploads/script/vendor/laravel/framework/src/Illuminate/Macroable/Traits/   drwxr-xr-x
Free 13.13 GB of 57.97 GB (22.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Support\Traits;

use 
BadMethodCallException;
use 
Closure;
use 
ReflectionClass;
use 
ReflectionMethod;

trait 
Macroable
{
    
/**
     * The registered string macros.
     *
     * @var array
     */
    
protected static $macros = [];

    
/**
     * Register a custom macro.
     *
     * @param  string  $name
     * @param  object|callable  $macro
     * @return void
     */
    
public static function macro($name$macro)
    {
        static::
$macros[$name] = $macro;
    }

    
/**
     * Mix another object into the class.
     *
     * @param  object  $mixin
     * @param  bool  $replace
     * @return void
     *
     * @throws \ReflectionException
     */
    
public static function mixin($mixin$replace true)
    {
        
$methods = (new ReflectionClass($mixin))->getMethods(
            
ReflectionMethod::IS_PUBLIC ReflectionMethod::IS_PROTECTED
        
);

        foreach (
$methods as $method) {
            if (
$replace || ! static::hasMacro($method->name)) {
                
$method->setAccessible(true);
                static::
macro($method->name$method->invoke($mixin));
            }
        }
    }

    
/**
     * Checks if macro is registered.
     *
     * @param  string  $name
     * @return bool
     */
    
public static function hasMacro($name)
    {
        return isset(static::
$macros[$name]);
    }

    
/**
     * Dynamically handle calls to the class.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    
public static function __callStatic($method$parameters)
    {
        if (! static::
hasMacro($method)) {
            throw new 
BadMethodCallException(sprintf(
                
'Method %s::%s does not exist.', static::class, $method
            
));
        }

        
$macro = static::$macros[$method];

        if (
$macro instanceof Closure) {
            
$macro $macro->bindTo(null, static::class);
        }

        return 
$macro(...$parameters);
    }

    
/**
     * Dynamically handle calls to the class.
     *
     * @param  string  $method
     * @param  array  $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    
public function __call($method$parameters)
    {
        if (! static::
hasMacro($method)) {
            throw new 
BadMethodCallException(sprintf(
                
'Method %s::%s does not exist.', static::class, $method
            
));
        }

        
$macro = static::$macros[$method];

        if (
$macro instanceof Closure) {
            
$macro $macro->bindTo($this, static::class);
        }

        return 
$macro(...$parameters);
    }
}

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