!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/laravel/framework/src/Illuminate/Foundation/Bootstrap/   drwxrwxr-x
Free 13.15 GB of 57.97 GB (22.68%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     LoadEnvironmentVariables.php (2.67 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Foundation\Bootstrap;

use 
Dotenv\Dotenv;
use 
Dotenv\Exception\InvalidFileException;
use 
Illuminate\Contracts\Foundation\Application;
use 
Illuminate\Support\Env;
use 
Symfony\Component\Console\Input\ArgvInput;
use 
Symfony\Component\Console\Output\ConsoleOutput;

class 
LoadEnvironmentVariables
{
    
/**
     * Bootstrap the given application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    
public function bootstrap(Application $app)
    {
        if (
$app->configurationIsCached()) {
            return;
        }

        
$this->checkForSpecificEnvironmentFile($app);

        try {
            
$this->createDotenv($app)->safeLoad();
        } catch (
InvalidFileException $e) {
            
$this->writeErrorAndDie($e);
        }
    }

    
/**
     * Detect if a custom environment file matching the APP_ENV exists.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    
protected function checkForSpecificEnvironmentFile($app)
    {
        if (
$app->runningInConsole() &&
            (
$input = new ArgvInput)->hasParameterOption('--env') &&
            
$this->setEnvironmentFilePath($app$app->environmentFile().'.'.$input->getParameterOption('--env'))) {
            return;
        }

        
$environment Env::get('APP_ENV');

        if (! 
$environment) {
            return;
        }

        
$this->setEnvironmentFilePath(
            
$app$app->environmentFile().'.'.$environment
        
);
    }

    
/**
     * Load a custom environment file.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @param  string  $file
     * @return bool
     */
    
protected function setEnvironmentFilePath($app$file)
    {
        if (
is_file($app->environmentPath().'/'.$file)) {
            
$app->loadEnvironmentFrom($file);

            return 
true;
        }

        return 
false;
    }

    
/**
     * Create a Dotenv instance.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return \Dotenv\Dotenv
     */
    
protected function createDotenv($app)
    {
        return 
Dotenv::create(
            
Env::getRepository(),
            
$app->environmentPath(),
            
$app->environmentFile()
        );
    }

    
/**
     * Write the error information to the screen and exit.
     *
     * @param  \Dotenv\Exception\InvalidFileException  $e
     * @return void
     */
    
protected function writeErrorAndDie(InvalidFileException $e)
    {
        
$output = (new ConsoleOutput)->getErrorOutput();

        
$output->writeln('The environment file is invalid!');
        
$output->writeln($e->getMessage());

        exit(
1);
    }
}

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