!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)

/var/www/html/queuepro/vendor/egulias/email-validator/src/Parser/   drwxrwxr-x
Free 13.09 GB of 57.97 GB (22.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     DoubleQuote.php (3.13 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Egulias\EmailValidator\Parser;

use 
Egulias\EmailValidator\EmailLexer;
use 
Egulias\EmailValidator\Parser\Parser;
use 
Egulias\EmailValidator\Result\ValidEmail;
use 
Egulias\EmailValidator\Result\InvalidEmail;
use 
Egulias\EmailValidator\Warning\CFWSWithFWS;
use 
Egulias\EmailValidator\Warning\QuotedString;
use 
Egulias\EmailValidator\Result\Reason\ExpectingATEXT;
use 
Egulias\EmailValidator\Result\Reason\UnclosedQuotedString;
use 
Egulias\EmailValidator\Result\Result;

class 
DoubleQuote extends PartParser
{
    public function 
parse() : Result
    
{

        
$validQuotedString $this->checkDQUOTE();
        if(
$validQuotedString->isInvalid()) return $validQuotedString;

        
$special = array(
            
EmailLexer::S_CR => true,
            
EmailLexer::S_HTAB => true,
            
EmailLexer::S_LF => true
        
);

        
$invalid = array(
            
EmailLexer::C_NUL => true,
            
EmailLexer::S_HTAB => true,
            
EmailLexer::S_CR => true,
            
EmailLexer::S_LF => true
        
);
        
$setSpecialsWarning true;

        
$this->lexer->moveNext();

        while (
$this->lexer->token['type'] !== EmailLexer::S_DQUOTE && null !== $this->lexer->token['type']) {
            if (isset(
$special[$this->lexer->token['type']]) && $setSpecialsWarning) {
                
$this->warnings[CFWSWithFWS::CODE] = new CFWSWithFWS();
                
$setSpecialsWarning false;
            }
            if (
$this->lexer->token['type'] === EmailLexer::S_BACKSLASH && $this->lexer->isNextToken(EmailLexer::S_DQUOTE)) {
                
$this->lexer->moveNext();
            }

            
$this->lexer->moveNext();

            if (!
$this->escaped() && isset($invalid[$this->lexer->token['type']])) {
                return new 
InvalidEmail(new ExpectingATEXT("Expecting ATEXT between DQUOTE"), $this->lexer->token['value']);
            }
        }

        
$prev $this->lexer->getPrevious();

        if (
$prev['type'] === EmailLexer::S_BACKSLASH) {
            
$validQuotedString $this->checkDQUOTE();
            if(
$validQuotedString->isInvalid()) return $validQuotedString;
        }

        if (!
$this->lexer->isNextToken(EmailLexer::S_AT) && $prev['type'] !== EmailLexer::S_BACKSLASH) {
            return new 
InvalidEmail(new ExpectingATEXT("Expecting ATEXT between DQUOTE"), $this->lexer->token['value']);
        }

        return new 
ValidEmail();
    }

    protected function 
checkDQUOTE() : Result
    
{
        
$previous $this->lexer->getPrevious();

        if (
$this->lexer->isNextToken(EmailLexer::GENERIC) && $previous['type'] === EmailLexer::GENERIC) {
            
$description 'https://tools.ietf.org/html/rfc5322#section-3.2.4 - quoted string should be a unit';
            return new 
InvalidEmail(new ExpectingATEXT($description), $this->lexer->token['value']);
        }

        try {
            
$this->lexer->find(EmailLexer::S_DQUOTE);
        } catch (
\Exception $e) {
            return new 
InvalidEmail(new UnclosedQuotedString(), $this->lexer->token['value']);
        }
        
$this->warnings[QuotedString::CODE] = new QuotedString($previous['value'], $this->lexer->token['value']);

        return new 
ValidEmail();
    }

}

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