!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/league/flysystem/src/Plugin/   drwxr-xr-x
Free 117.08 GB of 200.55 GB (58.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace League\Flysystem\Plugin;

use 
BadMethodCallException;
use 
League\Flysystem\FilesystemInterface;
use 
League\Flysystem\PluginInterface;
use 
LogicException;

trait 
PluggableTrait
{
    
/**
     * @var array
     */
    
protected $plugins = [];

    
/**
     * Register a plugin.
     *
     * @param PluginInterface $plugin
     *
     * @return $this
     */
    
public function addPlugin(PluginInterface $plugin)
    {
        
$this->plugins[$plugin->getMethod()] = $plugin;

        return 
$this;
    }

    
/**
     * Find a specific plugin.
     *
     * @param string $method
     *
     * @throws LogicException
     *
     * @return PluginInterface $plugin
     */
    
protected function findPlugin($method)
    {
        if ( ! isset(
$this->plugins[$method])) {
            throw new 
PluginNotFoundException('Plugin not found for method: ' $method);
        }

        if ( ! 
method_exists($this->plugins[$method], 'handle')) {
            throw new 
LogicException(get_class($this->plugins[$method]) . ' does not have a handle method.');
        }

        return 
$this->plugins[$method];
    }

    
/**
     * Invoke a plugin by method name.
     *
     * @param string $method
     * @param array  $arguments
     *
     * @return mixed
     */
    
protected function invokePlugin($method, array $argumentsFilesystemInterface $filesystem)
    {
        
$plugin $this->findPlugin($method);
        
$plugin->setFilesystem($filesystem);
        
$callback = [$plugin'handle'];

        return 
call_user_func_array($callback$arguments);
    }

    
/**
     * Plugins pass-through.
     *
     * @param string $method
     * @param array  $arguments
     *
     * @throws BadMethodCallException
     *
     * @return mixed
     */
    
public function __call($method, array $arguments)
    {
        try {
            return 
$this->invokePlugin($method$arguments$this);
        } catch (
PluginNotFoundException $e) {
            throw new 
BadMethodCallException(
                
'Call to undefined method '
                
get_class($this)
                . 
'::' $method
            
);
        }
    }
}

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