!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/laravel-crm/vendor/webklex/php-imap/tests/   drwxrwxrwx
Free 13.19 GB of 57.97 GB (22.75%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     StructureTest.php (1.52 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
* File: StructureTest.php
* Category: -
* Author: M.Goldenbaum
* Created: 28.12.22 18:11
* Updated: -
*
* Description:
*  -
*/

namespace Tests;

use 
PHPUnit\Framework\TestCase;
use 
Webklex\PHPIMAP\Exceptions\InvalidMessageDateException;
use 
Webklex\PHPIMAP\Exceptions\MessageContentFetchingException;
use 
Webklex\PHPIMAP\Header;
use 
Webklex\PHPIMAP\Structure;

class 
StructureTest extends TestCase {

    
/**
     * Test parsing email headers
     *
     * @throws InvalidMessageDateException
     * @throws MessageContentFetchingException
     */
    
public function testStructureParsing(): void {
        
$email file_get_contents(implode(DIRECTORY_SEPARATOR, [__DIR__"messages""1366671050@github.com.eml"]));
        if(!
str_contains($email"\r\n")){
            
$email str_replace("\n""\r\n"$email);
        }

        
$raw_header substr($email0strpos($email"\r\n\r\n"));
        
$raw_body substr($emailstrlen($raw_header)+8);

        
$header = new Header($raw_header);
        
$structure = new Structure($raw_body$header);

        
self::assertSame(2count($structure->parts));

        
$textPart $structure->parts[0];

        
self::assertSame("UTF-8"$textPart->charset);
        
self::assertSame("text/plain"$textPart->content_type);
        
self::assertSame(278$textPart->bytes);

        
$htmlPart $structure->parts[1];

        
self::assertSame("UTF-8"$htmlPart->charset);
        
self::assertSame("text/html"$htmlPart->content_type);
        
self::assertSame(1478$htmlPart->bytes);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0046 ]--