!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/intervention/image/src/Intervention/Image/   drwxr-xr-x
Free 13.29 GB of 57.97 GB (22.93%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Intervention\Image;

use 
Illuminate\Support\ServiceProvider;

class 
ImageServiceProviderLaravelRecent extends ServiceProvider
{
    
/**
     * Determines if Intervention Imagecache is installed
     *
     * @return boolean
     */
    
private function cacheIsInstalled()
    {
        return 
class_exists('Intervention\\Image\\ImageCache');
    }

    
/**
     * Bootstrap the application events.
     *
     * @return void
     */
    
public function boot()
    {
        
$this->publishes([
            
__DIR__.'/../../config/config.php' => config_path('image.php')
        ]);

        
// setup intervention/imagecache if package is installed
        
$this->cacheIsInstalled() ? $this->bootstrapImageCache() : null;
    }

    
/**
     * Register the service provider.
     *
     * @return void
     */
    
public function register()
    {
        
$app $this->app;

        
// merge default config
        
$this->mergeConfigFrom(
            
__DIR__.'/../../config/config.php',
            
'image'
        
);

        
// create image
        
$app->singleton('image', function ($app) {
            return new 
ImageManager($this->getImageConfig($app));
        });

        
$app->alias('image''Intervention\Image\ImageManager');
    }

    
/**
     * Bootstrap imagecache
     *
     * @return void
     */
    
protected function bootstrapImageCache()
    {
        
$app $this->app;
        
$config __DIR__.'/../../../../imagecache/src/config/config.php';

        
$this->publishes([
            
$config => config_path('imagecache.php')
        ]);

        
// merge default config
        
$this->mergeConfigFrom(
            
$config,
            
'imagecache'
        
);

        
// imagecache route
        
if (is_string(config('imagecache.route'))) {

            
$filename_pattern '[ \w\\.\\/\\-\\@\(\)]+';

            
// route to access template applied image file
            
$app['router']->get(config('imagecache.route').'/{template}/{filename}', [
                
'uses' => 'Intervention\Image\ImageCacheController@getResponse',
                
'as' => 'imagecache'
            
])->where(['filename' => $filename_pattern]);
        }
    }

    
/**
     * Return image configuration as array
     *
     * @param  Application $app
     * @return array
     */
    
private function getImageConfig($app)
    {
        
$config $app['config']->get('image');

        if (
is_null($config)) {
            return [];
        }

        return 
$config;
    }
}

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