!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/egulias/email-validator/src/Egulias/EmailValidator/   drwxrwxr-x
Free 15.67 GB of 61.93 GB (25.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     EmailParser.php (2.44 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Egulias\EmailValidator;

use 
Egulias\EmailValidator\Parser\DomainPart;
use 
Egulias\EmailValidator\Parser\LocalPart;

/**
 * EmailParser
 *
 * @author Eduardo Gulias Davis <me@egulias.com>
 */
class EmailParser
{
    const 
EMAIL_MAX_LENGTH 254;

    protected 
$warnings = array();
    protected 
$domainPart '';
    protected 
$localPart '';
    protected 
$lexer;
    protected 
$localPartParser;
    protected 
$domainPartParser;

    public function 
__construct(EmailLexer $lexer)
    {
        
$this->lexer $lexer;
        
$this->localPartParser = new LocalPart($this->lexer);
        
$this->domainPartParser = new DomainPart($this->lexer);
    }

    
/**
     * @param $str
     * @return array
     */
    
public function parse($str)
    {
        
$this->lexer->setInput($str);

        if (!
$this->hasAtToken()) {
            throw new \
InvalidArgumentException('ERR_NOLOCALPART');
        }


        
$this->localPartParser->parse($str);
        
$this->domainPartParser->parse($str);

        
$this->setParts($str);

        if (
$this->lexer->hasInvalidTokens()) {
            throw new \
InvalidArgumentException('ERR_INVALID_ATEXT');
        }

        return array(
'local' => $this->localPart'domain' => $this->domainPart);
    }

    public function 
getWarnings()
    {
        
$localPartWarnings $this->localPartParser->getWarnings();
        
$domainPartWarnings $this->domainPartParser->getWarnings();

        
$this->warnings array_merge($localPartWarnings$domainPartWarnings);
        
$this->addLongEmailWarning($this->localPart$this->domainPart);

        return 
$this->warnings;
    }

    public function 
getParsedDomainPart()
    {
        return 
$this->domainPart;
    }

    protected function 
setParts($email)
    {
        
$parts explode('@'$email);
        
$this->domainPart $this->domainPartParser->getDomainPart();
        
$this->localPart $parts[0];
    }

    protected function 
hasAtToken()
    {
        
$this->lexer->moveNext();
        
$this->lexer->moveNext();
        if (
$this->lexer->token['type'] === EmailLexer::S_AT) {
            return 
false;
        }

        return 
true;
    }

    
/**
     * @param string $localPart
     * @param string $parsedDomainPart
     */
    
protected function addLongEmailWarning($localPart$parsedDomainPart)
    {
        if (
strlen($localPart '@' $parsedDomainPart) > self::EMAIL_MAX_LENGTH) {
            
$this->warnings[] = EmailValidator::RFC5322_TOOLONG;
        }
    }
}

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