!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/ezyang/htmlpurifier/library/HTMLPurifier/   drwxr-xr-x
Free 28.52 GB of 117.98 GB (24.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Converts a stream of HTMLPurifier_Token into an HTMLPurifier_Node,
 * and back again.
 *
 * @note This transformation is not an equivalence.  We mutate the input
 * token stream to make it so; see all [MUT] markers in code.
 */
class HTMLPurifier_Arborize
{
    public static function 
arborize($tokens$config$context) {
        
$definition $config->getHTMLDefinition();
        
$parent = new HTMLPurifier_Token_Start($definition->info_parent);
        
$stack = array($parent->toNode());
        foreach (
$tokens as $token) {
            
$token->skip null// [MUT]
            
$token->carryover null// [MUT]
            
if ($token instanceof HTMLPurifier_Token_End) {
                
$token->start null// [MUT]
                
$r array_pop($stack);
                
//assert($r->name === $token->name);
                //assert(empty($token->attr));
                
$r->endCol $token->col;
                
$r->endLine $token->line;
                
$r->endArmor $token->armor;
                continue;
            }
            
$node $token->toNode();
            
$stack[count($stack)-1]->children[] = $node;
            if (
$token instanceof HTMLPurifier_Token_Start) {
                
$stack[] = $node;
            }
        }
        
//assert(count($stack) == 1);
        
return $stack[0];
    }

    public static function 
flatten($node$config$context) {
        
$level 0;
        
$nodes = array($level => new HTMLPurifier_Queue(array($node)));
        
$closingTokens = array();
        
$tokens = array();
        do {
            while (!
$nodes[$level]->isEmpty()) {
                
$node $nodes[$level]->shift(); // FIFO
                
list($start$end) = $node->toTokenPair();
                if (
$level 0) {
                    
$tokens[] = $start;
                }
                if (
$end !== NULL) {
                    
$closingTokens[$level][] = $end;
                }
                if (
$node instanceof HTMLPurifier_Node_Element) {
                    
$level++;
                    
$nodes[$level] = new HTMLPurifier_Queue();
                    foreach (
$node->children as $childNode) {
                        
$nodes[$level]->push($childNode);
                    }
                }
            }
            
$level--;
            if (
$level && isset($closingTokens[$level])) {
                while (
$token array_pop($closingTokens[$level])) {
                    
$tokens[] = $token;
                }
            }
        } while (
$level 0);
        return 
$tokens;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]--