!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/dokan/script/vendor/enlightn/enlightn/src/Analyzers/Reliability/   drwxrwxrwx
Free 12.99 GB of 57.97 GB (22.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     EnvExampleAnalyzer.php (2.32 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Enlightn\Enlightn\Analyzers\Reliability;

use 
Dotenv\Dotenv;

class 
EnvExampleAnalyzer extends ReliabilityAnalyzer
{
    
/**
     * The title describing the analyzer.
     *
     * @var string|null
     */
    
public $title "All env variables used in your .env file are defined in your .env.example file.";

    
/**
     * The severity of the analyzer.
     *
     * @var string|null
     */
    
public $severity self::SEVERITY_MINOR;

    
/**
     * The time to fix in minutes.
     *
     * @var int|null
     */
    
public $timeToFix 10;

    
/**
     * The missing .env variables.
     *
     * @var \Illuminate\Support\Collection
     */
    
protected $missingEnvVariables;

    
/**
     * Get the error message describing the analyzer insights.
     *
     * @return string
     */
    
public function errorMessage()
    {
        return 
"Your application has some missing environment variables that are defined in your .env file "
            
."but missing in your .env.example file: ".$this->formatMissingEnvVariables();
    }

    
/**
     * Execute the analyzer.
     *
     * @return void
     */
    
public function handle()
    {
        if (
method_exists(Dotenv::class, 'createImmutable')) {
            
$this->handleDotEnvV4();

            return;
        }

        
$examples Dotenv::create(base_path(), '.env.example');
        
$actual Dotenv::create(base_path(), '.env');

        
$examples->safeLoad();
        
$actual->safeLoad();

        
$this->missingEnvVariables collect($actual->getEnvironmentVariableNames())
            ->
diff($examples->getEnvironmentVariableNames());

        if (! 
$this->missingEnvVariables->isEmpty()) {
            
$this->markFailed();
        }
    }

    
/**
     * Execute the analyzer for DotEnv v4.
     */
    
protected function handleDotEnvV4()
    {
        
$examples Dotenv::createMutable(base_path(), '.env.example');
        
$actual Dotenv::createMutable(base_path(), '.env');

        
$this->missingEnvVariables collect($actual->safeLoad())
            ->
diffKeys($examples->safeLoad())
            ->
keys();

        if (! 
$this->missingEnvVariables->isEmpty()) {
            
$this->markFailed();
        }
    }

    
/**
     * @return string
     */
    
protected function formatMissingEnvVariables()
    {
        return 
$this->missingEnvVariables->join(', '' and ');
    }
}

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