!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/league/glide/src/Manipulators/   drwxr-xr-x
Free 28.56 GB of 117.98 GB (24.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace League\Glide\Manipulators;

use 
Intervention\Image\Image;

/**
 * @property string $fm
 * @property string $q
 */
class Encode extends BaseManipulator
{
    
/**
     * Perform output image manipulation.
     *
     * @param Image $image The source image.
     *
     * @return Image The manipulated image.
     */
    
public function run(Image $image)
    {
        
$format $this->getFormat($image);
        
$quality $this->getQuality();

        if (
in_array($format, ['jpg''pjpg'], true)) {
            
$image $image->getDriver()
                           ->
newImage($image->width(), $image->height(), '#fff')
                           ->
insert($image'top-left'00);
        }

        if (
'pjpg' === $format) {
            
$image->interlace();
            
$format 'jpg';
        }

        return 
$image->encode($format$quality);
    }

    
/**
     * Resolve format.
     *
     * @param Image $image The source image.
     *
     * @return string The resolved format.
     */
    
public function getFormat(Image $image)
    {
        if (
array_key_exists($this->fm, static::supportedFormats())) {
            return 
$this->fm;
        }

        return 
array_search($image->mime(), static::supportedFormats(), true) ?: 'jpg';
    }

    
/**
     * Get a list of supported image formats and MIME types.
     *
     * @return array<string,string>
     */
    
public static function supportedFormats()
    {
        return [
            
'avif' => 'image/avif',
            
'gif' => 'image/gif',
            
'jpg' => 'image/jpeg',
            
'pjpg' => 'image/jpeg',
            
'png' => 'image/png',
            
'webp' => 'image/webp',
            
'tiff' => 'image/tiff',
        ];
    }

    
/**
     * Resolve quality.
     *
     * @return int The resolved quality.
     */
    
public function getQuality()
    {
        
$default 90;

        if (!
is_numeric($this->q)) {
            return 
$default;
        }

        if (
$this->or $this->100) {
            return 
$default;
        }

        return (int) 
$this->q;
    }
}

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