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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/phpmyadmin/libraries/classes/Twig/I18n/   drwxr-xr-x
Free 12.98 GB of 57.97 GB (22.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     TokenParserTrans.php (2.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * hold PhpMyAdmin\Twig\I18n\TokenParserTrans class
 *
 * @package PhpMyAdmin\Twig\I18n
 */
namespace PhpMyAdmin\Twig\I18n;

use 
Twig\Extensions\TokenParser\TransTokenParser;
use 
Twig\Token;

/**
 * Class TokenParserTrans
 *
 * @package PhpMyAdmin\Twig\I18n
 */
class TokenParserTrans extends TransTokenParser
{
    
/**
     * Parses a token and returns a node.
     *
     * @param Token $token Twig token to parse
     *
     * @return Twig_NodeInterface
     *
     * @throws \Twig\Error\SyntaxError
     */
    
public function parse(Token $token)
    {
        
$lineno $token->getLine();
        
$stream $this->parser->getStream();
        
$count null;
        
$plural null;
        
$notes null;
        
$context null;

        if (!
$stream->test(Token::BLOCK_END_TYPE)) {
            
$body $this->parser->getExpressionParser()->parseExpression();
        } else {
            
$stream->expect(Token::BLOCK_END_TYPE);
            
$body $this->parser->subparse(array($this'decideForFork'));
            
$next $stream->next()->getValue();

            if (
'plural' === $next) {
                
$count $this->parser->getExpressionParser()->parseExpression();
                
$stream->expect(Token::BLOCK_END_TYPE);
                
$plural $this->parser->subparse(array($this'decideForFork'));

                if (
'notes' === $stream->next()->getValue()) {
                    
$stream->expect(Token::BLOCK_END_TYPE);
                    
$notes $this->parser->subparse(array($this'decideForEnd'), true);
                }
            } elseif (
'context' === $next) {
                
$stream->expect(Token::BLOCK_END_TYPE);
                
$context $this->parser->subparse(array($this'decideForEnd'), true);
            } elseif (
'notes' === $next) {
                
$stream->expect(Token::BLOCK_END_TYPE);
                
$notes $this->parser->subparse(array($this'decideForEnd'), true);
            }
        }

        
$stream->expect(Token::BLOCK_END_TYPE);

        
$this->checkTransString($body$lineno);

        return new 
NodeTrans($body$plural$count$context$notes$lineno$this->getTag());
    }

    
/**
     * Tests the current token for a type.
     *
     * @param Token $token Twig token to test
     *
     * @return bool
     */
    
public function decideForFork(Token $token)
    {
        return 
$token->test(array('plural''context''notes''endtrans'));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

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