!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/symfony/http-kernel/DataCollector/Util/   drwxr-xr-x
Free 117.42 GB of 200.55 GB (58.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpKernel\DataCollector\Util;

/**
 * @author Bernhard Schussek <bschussek@gmail.com>
 */
class ValueExporter
{
    
/**
     * Converts a PHP value to a string.
     *
     * @param mixed $value The PHP value
     * @param int   $depth only for internal usage
     * @param bool  $deep  only for internal usage
     *
     * @return string The string representation of the given value
     */
    
public function exportValue($value$depth 1$deep false)
    {
        if (
is_object($value)) {
            if (
$value instanceof \DateTimeInterface) {
                return 
sprintf('Object(%s) - %s'get_class($value), $value->format(\DateTime::ISO8601));
            }

            return 
sprintf('Object(%s)'get_class($value));
        }

        if (
$value instanceof \__PHP_Incomplete_Class) {
            return 
sprintf('__PHP_Incomplete_Class(%s)'$this->getClassNameFromIncomplete($value));
        }

        if (
is_array($value)) {
            if (empty(
$value)) {
                return 
'[]';
            }

            
$indent str_repeat('  '$depth);

            
$a = array();
            foreach (
$value as $k => $v) {
                if (
is_array($v)) {
                    
$deep true;
                }
                
$a[] = sprintf('%s => %s'$k$this->exportValue($v$depth 1$deep));
            }

            if (
$deep) {
                return 
sprintf("[\n%s%s\n%s]"$indentimplode(sprintf(", \n%s"$indent), $a), str_repeat('  '$depth 1));
            }

            return 
sprintf('[%s]'implode(', '$a));
        }

        if (
is_resource($value)) {
            return 
sprintf('Resource(%s#%d)'get_resource_type($value), $value);
        }

        if (
null === $value) {
            return 
'null';
        }

        if (
false === $value) {
            return 
'false';
        }

        if (
true === $value) {
            return 
'true';
        }

        return (string) 
$value;
    }

    private function 
getClassNameFromIncomplete(\__PHP_Incomplete_Class $value)
    {
        
$array = new \ArrayObject($value);

        return 
$array['__PHP_Incomplete_Class_Name'];
    }
}

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