!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/phpmyadmin/vendor/twig/twig/src/Profiler/NodeVisitor/   drwxr-xr-x
Free 13.55 GB of 61.93 GB (21.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of Twig.
 *
 * (c) Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Twig\Profiler\NodeVisitor;

use 
Twig\Environment;
use 
Twig\Node\BlockNode;
use 
Twig\Node\BodyNode;
use 
Twig\Node\MacroNode;
use 
Twig\Node\ModuleNode;
use 
Twig\Node\Node;
use 
Twig\NodeVisitor\NodeVisitorInterface;
use 
Twig\Profiler\Node\EnterProfileNode;
use 
Twig\Profiler\Node\LeaveProfileNode;
use 
Twig\Profiler\Profile;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 */
final class ProfilerNodeVisitor implements NodeVisitorInterface
{
    private 
$extensionName;
    private 
$varName;

    public function 
__construct(string $extensionName)
    {
        
$this->extensionName $extensionName;
        
$this->varName sprintf('__internal_%s'hash(\PHP_VERSION_ID 80100 'sha256' 'xxh128'$extensionName));
    }

    public function 
enterNode(Node $nodeEnvironment $env): Node
    
{
        return 
$node;
    }

    public function 
leaveNode(Node $nodeEnvironment $env): ?Node
    
{
        if (
$node instanceof ModuleNode) {
            
$node->setNode('display_start', new Node([new EnterProfileNode($this->extensionNameProfile::TEMPLATE$node->getTemplateName(), $this->varName), $node->getNode('display_start')]));
            
$node->setNode('display_end', new Node([new LeaveProfileNode($this->varName), $node->getNode('display_end')]));
        } elseif (
$node instanceof BlockNode) {
            
$node->setNode('body', new BodyNode([
                new 
EnterProfileNode($this->extensionNameProfile::BLOCK$node->getAttribute('name'), $this->varName),
                
$node->getNode('body'),
                new 
LeaveProfileNode($this->varName),
            ]));
        } elseif (
$node instanceof MacroNode) {
            
$node->setNode('body', new BodyNode([
                new 
EnterProfileNode($this->extensionNameProfile::MACRO$node->getAttribute('name'), $this->varName),
                
$node->getNode('body'),
                new 
LeaveProfileNode($this->varName),
            ]));
        }

        return 
$node;
    }

    public function 
getPriority(): int
    
{
        return 
0;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6048 ]--