!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/apex_led/php/vendor/seld/jsonlint/src/Seld/JsonLint/   drwxrwxr-x
Free 15.65 GB of 61.93 GB (25.27%)
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 (5.59 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the JSON Lint package.
 *
 * (c) Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Seld\JsonLint;

/**
 * Lexer class
 *
 * Ported from https://github.com/zaach/jsonlint
 */
class Lexer
{
    private 
$EOF 1;
    private 
$rules = array(
        
=> '/^\s+/',
        
=> '/^-?([0-9]|[1-9][0-9]+)(\.[0-9]+)?([eE][+-]?[0-9]+)?\b/',
        
=> '{^"(?>\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^\0-\x1f\\\\"]++)*+"}',
        
=> '/^\{/',
        
=> '/^\}/',
        
=> '/^\[/',
        
=> '/^\]/',
        
=> '/^,/',
        
=> '/^:/',
        
=> '/^true\b/',
        
10 => '/^false\b/',
        
11 => '/^null\b/',
        
12 => '/^$/',
        
13 => '/^./',
    );

    private 
$conditions = array(
        
"INITIAL" => array(
            
"rules" => array(0,1,2,3,4,5,6,7,8,9,10,11,12,13),
            
"inclusive" => true,
        ),
    );

    private 
$conditionStack;
    private 
$input;
    private 
$more;
    private 
$done;
    private 
$matched;

    public 
$match;
    public 
$yylineno;
    public 
$yyleng;
    public 
$yytext;
    public 
$yylloc;

    public function 
lex()
    {
        
$r $this->next();
        if (!
$r instanceof Undefined) {
            return 
$r;
        }

        return 
$this->lex();
    }

    public function 
setInput($input)
    {
        
$this->input $input;
        
$this->more false;
        
$this->done false;
        
$this->yylineno $this->yyleng 0;
        
$this->yytext $this->matched $this->match '';
        
$this->conditionStack = array('INITIAL');
        
$this->yylloc = array('first_line' => 1'first_column' => 0'last_line' => 1'last_column' => 0);

        return 
$this;
    }

    public function 
showPosition()
    {
        
$pre str_replace("\n"''$this->getPastInput());
        
$c str_repeat('-'max(0strlen($pre) - 1)); // new Array(pre.length + 1).join("-");

        
return $pre str_replace("\n"''$this->getUpcomingInput()) . "\n" $c "^";
    }

    public function 
getPastInput()
    {
        
$past substr($this->matched0strlen($this->matched) - strlen($this->match));

        return (
strlen($past) > 20 '...' '') . substr($past, -20);
    }

    public function 
getUpcomingInput()
    {
        
$next $this->match;
        if (
strlen($next) < 20) {
            
$next .= substr($this->input020 strlen($next));
        }

        return 
substr($next020) . (strlen($next) > 20 '...' '');
    }

    protected function 
parseError($str$hash)
    {
        throw new \
Exception($str);
    }

    private function 
next()
    {
        if (
$this->done) {
            return 
$this->EOF;
        }
        if (!
$this->input) {
            
$this->done true;
        }

        
$token null;
        
$match null;
        
$col null;
        
$lines null;

        if (!
$this->more) {
            
$this->yytext '';
            
$this->match '';
        }

        
$rules $this->getCurrentRules();
        
$rulesLen count($rules);

        for (
$i=0$i $rulesLen$i++) {
            if (
preg_match($this->rules[$rules[$i]], $this->input$match)) {
                
preg_match_all('/\n.*/'$match[0], $lines);
                
$lines $lines[0];
                if (
$lines) {
                    
$this->yylineno += count($lines);
                }

                
$this->yylloc = array(
                    
'first_line' => $this->yylloc['last_line'],
                    
'last_line' => $this->yylineno+1,
                    
'first_column' => $this->yylloc['last_column'],
                    
'last_column' => $lines strlen($lines[count($lines) - 1]) - $this->yylloc['last_column'] + strlen($match[0]),
                );
                
$this->yytext .= $match[0];
                
$this->match .= $match[0];
                
$this->yyleng strlen($this->yytext);
                
$this->more false;
                
$this->input substr($this->inputstrlen($match[0]));
                
$this->matched .= $match[0];
                
$token $this->performAction($rules[$i], $this->conditionStack[count($this->conditionStack)-1]);
                if (
$token) {
                    return 
$token;
                }

                return new 
Undefined();
            }
        }

        if (
$this->input === "") {
            return 
$this->EOF;
        }

        
$this->parseError(
            
'Lexical error on line ' . ($this->yylineno+1) . ". Unrecognized text.\n" $this->showPosition(),
            array(
                
'text' => "",
                
'token' => null,
                
'line' => $this->yylineno,
            )
        );
    }

    private function 
getCurrentRules()
    {
        return 
$this->conditions[$this->conditionStack[count($this->conditionStack)-1]]['rules'];
    }

    private function 
performAction($avoiding_name_collisions$YY_START)
    {
        switch (
$avoiding_name_collisions) {
        case 
0:/* skip whitespace */
            
break;
        case 
1:
            return 
6;
           break;
        case 
2:
            
$this->yytext substr($this->yytext1$this->yyleng-2);

            return 
4;
        case 
3:
            return 
17;
        case 
4:
            return 
18;
        case 
5:
            return 
23;
        case 
6:
            return 
24;
        case 
7:
            return 
22;
        case 
8:
            return 
21;
        case 
9:
            return 
10;
        case 
10:
            return 
11;
        case 
11:
            return 
8;
        case 
12:
            return 
14;
        case 
13:
            return 
'INVALID';
        }
    }
}

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