!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-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 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/mtdowling/jmespath.php/src/   drwxr-xr-x
Free 25.74 GB of 117.98 GB (21.81%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Env.php (2.42 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace JmesPath;

/**
 * Provides a simple environment based search.
 *
 * The runtime utilized by the Env class can be customized via environment
 * variables. If the JP_PHP_COMPILE environment variable is specified, then the
 * CompilerRuntime will be utilized. If set to "on", JMESPath expressions will
 * be cached to the system's temp directory. Set the environment variable to
 * a string to cache expressions to a specific directory.
 */
final class Env
{
    const 
COMPILE_DIR 'JP_PHP_COMPILE';

    
/**
     * Returns data from the input array that matches a JMESPath expression.
     *
     * @param string $expression JMESPath expression to evaluate
     * @param mixed  $data       JSON-like data to search
     *
     * @return mixed Returns the matching data or null
     */
    
public static function search($expression$data)
    {
        static 
$runtime;

        if (!
$runtime) {
            
$runtime Env::createRuntime();
        }

        return 
$runtime($expression$data);
    }

    
/**
     * Creates a JMESPath runtime based on environment variables and extensions
     * available on a system.
     *
     * @return callable
     */
    
public static function createRuntime()
    {
        switch (
$compileDir self::getEnvVariable(self::COMPILE_DIR)) {
            case 
false: return new AstRuntime();
            case 
'on': return new CompilerRuntime();
            default: return new 
CompilerRuntime($compileDir);
        }
    }

    
/**
     * Delete all previously compiled JMESPath files from the JP_COMPILE_DIR
     * directory or sys_get_temp_dir().
     *
     * @return int Returns the number of deleted files.
     */
    
public static function cleanCompileDir()
    {
        
$total 0;
        
$compileDir self::getEnvVariable(self::COMPILE_DIR) ?: sys_get_temp_dir();

        foreach (
glob("{$compileDir}/jmespath_*.php") as $file) {
            
$total++;
            
unlink($file);
        }

        return 
$total;
    }

    
/**
     * Reads an environment variable from $_SERVER, $_ENV or via getenv().
     *
     * @param string $name
     *
     * @return string|null
     */
    
private static function getEnvVariable($name)
    {
        if (
array_key_exists($name$_SERVER)) {
            return 
$_SERVER[$name];
        }

        if (
array_key_exists($name$_ENV)) {
            return 
$_ENV[$name];
        }

        
$value getenv($name);

        return 
$value === false null $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.0032 ]--