!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/Gd/Commands/   drwxr-xr-x
Free 13.25 GB of 57.97 GB (22.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Intervention\Image\Gd\Commands;

use 
Intervention\Image\Commands\AbstractCommand;
use 
Intervention\Image\Gd\Color;
use 
Intervention\Image\Gd\Decoder;

class 
FillCommand extends AbstractCommand
{
    
/**
     * Fills image with color or pattern
     *
     * @param  \Intervention\Image\Image $image
     * @return boolean
     */
    
public function execute($image)
    {
        
$filling $this->argument(0)->value();
        
$x $this->argument(1)->type('digit')->value();
        
$y $this->argument(2)->type('digit')->value();

        
$width $image->getWidth();
        
$height $image->getHeight();
        
$resource $image->getCore();

        try {

            
// set image tile filling
            
$source = new Decoder;
            
$tile $source->init($filling);
            
imagesettile($image->getCore(), $tile->getCore());
            
$filling IMG_COLOR_TILED;

        } catch (
\Intervention\Image\Exception\NotReadableException $e) {

            
// set solid color filling
            
$color = new Color($filling);
            
$filling $color->getInt();
        }

        
imagealphablending($resourcetrue);

        if (
is_int($x) && is_int($y)) {

            
// resource should be visible through transparency
            
$base $image->getDriver()->newImage($width$height)->getCore();
            
imagecopy($base$resource0000$width$height);

            
// floodfill if exact position is defined
            
imagefill($resource$x$y$filling);

            
// copy filled original over base
            
imagecopy($base$resource0000$width$height);

            
// set base as new resource-core
            
$image->setCore($base);
            
imagedestroy($resource);

        } else {
            
// fill whole image otherwise
            
imagefilledrectangle($resource00$width 1$height 1$filling);
        }

        isset(
$tile) ? imagedestroy($tile->getCore()) : null;

        return 
true;
    }
}

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