!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/phpmyadmin/sql-parser/src/Components/   drwxr-xr-x
Free 11.56 GB of 61.93 GB (18.67%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Array2d.php (3.42 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * `VALUES` keyword parser.
 */

declare(strict_types=1);

namespace 
PhpMyAdmin\SqlParser\Components;

use 
PhpMyAdmin\SqlParser\Component;
use 
PhpMyAdmin\SqlParser\Parser;
use 
PhpMyAdmin\SqlParser\Token;
use 
PhpMyAdmin\SqlParser\TokensList;
use 
PhpMyAdmin\SqlParser\Translator;

use function 
count;
use function 
sprintf;

/**
 * `VALUES` keyword parser.
 *
 * @final
 */
class Array2d extends Component
{
    
/**
     * @param Parser     $parser  the parser that serves as context
     * @param TokensList $list    the list of tokens that are being parsed
     * @param array      $options parameters for parsing
     *
     * @return ArrayObj[]
     */
    
public static function parse(Parser $parserTokensList $list, array $options = [])
    {
        
$ret = [];

        
/**
         * The number of values in each set.
         *
         * @var int
         */
        
$count = -1;

        
/**
         * The state of the parser.
         *
         * Below are the states of the parser.
         *
         *      0 ----------------------[ array ]----------------------> 1
         *
         *      1 ------------------------[ , ]------------------------> 0
         *      1 -----------------------[ else ]----------------------> (END)
         *
         * @var int
         */
        
$state 0;

        for (; 
$list->idx $list->count; ++$list->idx) {
            
/**
             * Token parsed at this moment.
             *
             * @var Token
             */
            
$token $list->tokens[$list->idx];

            
// End of statement.
            
if ($token->type === Token::TYPE_DELIMITER) {
                break;
            }

            
// Skipping whitespaces and comments.
            
if (($token->type === Token::TYPE_WHITESPACE) || ($token->type === Token::TYPE_COMMENT)) {
                continue;
            }

            
// No keyword is expected.
            
if (($token->type === Token::TYPE_KEYWORD) && ($token->flags Token::FLAG_KEYWORD_RESERVED)) {
                break;
            }

            if (
$state === 0) {
                if (
$token->value !== '(') {
                    break;
                }

                
$arr ArrayObj::parse($parser$list$options);
                
$arrCount count($arr->values);
                if (
$count === -1) {
                    
$count $arrCount;
                } elseif (
$arrCount !== $count) {
                    
$parser->error(
                        
sprintf(
                            
Translator::gettext('%1$d values were expected, but found %2$d.'),
                            
$count,
                            
$arrCount
                        
),
                        
$token
                    
);
                }

                
$ret[] = $arr;
                
$state 1;
            } elseif (
$state === 1) {
                if (
$token->value !== ',') {
                    break;
                }

                
$state 0;
            }
        }

        if (
$state === 0) {
            
$parser->error('An opening bracket followed by a set of values was expected.'$list->tokens[$list->idx]);
        }

        --
$list->idx;

        return 
$ret;
    }

    
/**
     * @param ArrayObj[] $component the component to be built
     * @param array      $options   parameters for building
     *
     * @return string
     */
    
public static function build($component, array $options = [])
    {
        return 
ArrayObj::build($component);
    }
}

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