!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)

/uploads/script/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/   drwxr-xr-x
Free 13.16 GB of 57.97 GB (22.71%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     LoadConfiguration.php (3.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Foundation\Bootstrap;

use 
Exception;
use 
Illuminate\Config\Repository;
use 
Illuminate\Contracts\Config\Repository as RepositoryContract;
use 
Illuminate\Contracts\Foundation\Application;
use 
SplFileInfo;
use 
Symfony\Component\Finder\Finder;

class 
LoadConfiguration
{
    
/**
     * Bootstrap the given application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    
public function bootstrap(Application $app)
    {
        
$items = [];

        
// First we will see if we have a cache configuration file. If we do, we'll load
        // the configuration items from that file so that it is very quick. Otherwise
        // we will need to spin through every configuration file and load them all.
        
if (is_file($cached $app->getCachedConfigPath())) {
            
$items = require $cached;

            
$loadedFromCache true;
        }

        
// Next we will spin through all of the configuration files in the configuration
        // directory and load each one into the repository. This will make all of the
        // options available to the developer for use in various parts of this app.
        
$app->instance('config'$config = new Repository($items));

        if (! isset(
$loadedFromCache)) {
            
$this->loadConfigurationFiles($app$config);
        }

        
// Finally, we will set the application's environment based on the configuration
        // values that were loaded. We will pass a callback which will be used to get
        // the environment in a web context where an "--env" switch is not present.
        
$app->detectEnvironment(function () use ($config) {
            return 
$config->get('app.env''production');
        });

        
date_default_timezone_set($config->get('app.timezone''UTC'));

        
mb_internal_encoding('UTF-8');
    }

    
/**
     * Load the configuration items from all of the files.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @param  \Illuminate\Contracts\Config\Repository  $repository
     * @return void
     *
     * @throws \Exception
     */
    
protected function loadConfigurationFiles(Application $appRepositoryContract $repository)
    {
        
$files $this->getConfigurationFiles($app);

        if (! isset(
$files['app'])) {
            throw new 
Exception('Unable to load the "app" configuration file.');
        }

        foreach (
$files as $key => $path) {
            
$repository->set($key, require $path);
        }
    }

    
/**
     * Get all of the configuration files for the application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return array
     */
    
protected function getConfigurationFiles(Application $app)
    {
        
$files = [];

        
$configPath realpath($app->configPath());

        foreach (
Finder::create()->files()->name('*.php')->in($configPath) as $file) {
            
$directory $this->getNestedDirectory($file$configPath);

            
$files[$directory.basename($file->getRealPath(), '.php')] = $file->getRealPath();
        }

        
ksort($filesSORT_NATURAL);

        return 
$files;
    }

    
/**
     * Get the configuration file nesting path.
     *
     * @param  \SplFileInfo  $file
     * @param  string  $configPath
     * @return string
     */
    
protected function getNestedDirectory(SplFileInfo $file$configPath)
    {
        
$directory $file->getPath();

        if (
$nested trim(str_replace($configPath''$directory), DIRECTORY_SEPARATOR)) {
            
$nested str_replace(DIRECTORY_SEPARATOR'.'$nested).'.';
        }

        return 
$nested;
    }
}

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