!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/queuepro/vendor/nette/utils/src/Utils/   drwxrwxr-x
Free 13.26 GB of 57.97 GB (22.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Json.php (1.53 KB)      -rwxrwxr-x
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;

    public const 
FORCE_ARRAY JSON_OBJECT_AS_ARRAY;
    public const 
PRETTY JSON_PRETTY_PRINT;
    public const 
ESCAPE_UNICODE << 19;


    
/**
     * Converts value to JSON format. The flag can be Json::PRETTY, which formats JSON for easier reading and clarity,
     * and Json::ESCAPE_UNICODE for ASCII output.
     * @param  mixed  $value
     * @throws JsonException
     */
    
public static function encode($valueint $flags 0): string
    
{
        
$flags = ($flags self::ESCAPE_UNICODE JSON_UNESCAPED_UNICODE)
            | 
JSON_UNESCAPED_SLASHES
            
| ($flags & ~self::ESCAPE_UNICODE)
            | (
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 flag can be Json::FORCE_ARRAY, which forces an array instead of an object as the return value.
     * @return mixed
     * @throws JsonException
     */
    
public static function decode(string $jsonint $flags 0)
    {
        
$value json_decode($jsonnull512$flags JSON_BIGINT_AS_STRING);
        if (
$error json_last_error()) {
            throw new 
JsonException(json_last_error_msg(), $error);
        }

        return 
$value;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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