!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.06 GB of 200.55 GB (58.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace League\Flysystem\Plugin;

class 
ListWith extends AbstractPlugin
{
    
/**
     * Get the method name.
     *
     * @return string
     */
    
public function getMethod()
    {
        return 
'listWith';
    }

    
/**
     * List contents with metadata.
     *
     * @param array  $keys
     * @param string $directory
     * @param bool   $recursive
     *
     * @return array listing with metadata
     */
    
public function handle(array $keys = [], $directory ''$recursive false)
    {
        
$contents $this->filesystem->listContents($directory$recursive);

        foreach (
$contents as $index => $object) {
            if (
$object['type'] === 'file') {
                
$missingKeys array_diff($keysarray_keys($object));
                
$contents[$index] = array_reduce($missingKeys, [$this'getMetadataByName'], $object);
            }
        }

        return 
$contents;
    }

    
/**
     * Get a meta-data value by key name.
     *
     * @param array $object
     * @param       $key
     *
     * @return array
     */
    
protected function getMetadataByName(array $object$key)
    {
        
$method 'get' ucfirst($key);

        if ( ! 
method_exists($this->filesystem$method)) {
            throw new \
InvalidArgumentException('Could not get meta-data for key: ' $key);
        }

        
$object[$key] = $this->filesystem->{$method}($object['path']);

        return 
$object;
    }
}

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