Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.44
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
league /
glide /
src /
Manipulators /
Delete
Unzip
Name
Size
Permission
Date
Action
Helpers
[ DIR ]
drwxr-xr-x
2020-11-05 09:00
Background.php
776
B
-rw-r--r--
2020-11-05 09:00
BaseManipulator.php
907
B
-rw-r--r--
2020-11-05 09:00
Blur.php
800
B
-rw-r--r--
2020-11-05 09:00
Border.php
4.48
KB
-rw-r--r--
2020-11-05 09:00
Brightness.php
874
B
-rw-r--r--
2020-11-05 09:00
Contrast.php
854
B
-rw-r--r--
2020-11-05 09:00
Crop.php
2.21
KB
-rw-r--r--
2020-11-05 09:00
Encode.php
1.79
KB
-rw-r--r--
2020-11-05 09:00
Filter.php
1.22
KB
-rw-r--r--
2020-11-05 09:00
Flip.php
789
B
-rw-r--r--
2020-11-05 09:00
Gamma.php
824
B
-rw-r--r--
2020-11-05 09:00
ManipulatorInterface.php
447
B
-rw-r--r--
2020-11-05 09:00
Orientation.php
823
B
-rw-r--r--
2020-11-05 09:00
Pixelate.php
846
B
-rw-r--r--
2020-11-05 09:00
Sharpen.php
835
B
-rw-r--r--
2020-11-05 09:00
Size.php
11.1
KB
-rw-r--r--
2020-11-05 09:00
Watermark.php
6.16
KB
-rw-r--r--
2020-11-05 09:00
Save
Rename
<?php namespace League\Glide\Manipulators; use Intervention\Image\Image; /** * @property string $crop */ class Crop extends BaseManipulator { /** * Perform crop image manipulation. * @param Image $image The source image. * @return Image The manipulated image. */ public function run(Image $image) { $coordinates = $this->getCoordinates($image); if ($coordinates) { $coordinates = $this->limitToImageBoundaries($image, $coordinates); $image->crop( $coordinates[0], $coordinates[1], $coordinates[2], $coordinates[3] ); } return $image; } /** * Resolve coordinates. * @param Image $image The source image. * @return int[] The resolved coordinates. */ public function getCoordinates(Image $image) { $coordinates = explode(',', $this->crop); if (count($coordinates) !== 4 or (!is_numeric($coordinates[0])) or (!is_numeric($coordinates[1])) or (!is_numeric($coordinates[2])) or (!is_numeric($coordinates[3])) or ($coordinates[0] <= 0) or ($coordinates[1] <= 0) or ($coordinates[2] < 0) or ($coordinates[3] < 0) or ($coordinates[2] >= $image->width()) or ($coordinates[3] >= $image->height())) { return; } return [ (int) $coordinates[0], (int) $coordinates[1], (int) $coordinates[2], (int) $coordinates[3], ]; } /** * Limit coordinates to image boundaries. * @param Image $image The source image. * @param int[] $coordinates The coordinates. * @return int[] The limited coordinates. */ public function limitToImageBoundaries(Image $image, array $coordinates) { if ($coordinates[0] > ($image->width() - $coordinates[2])) { $coordinates[0] = $image->width() - $coordinates[2]; } if ($coordinates[1] > ($image->height() - $coordinates[3])) { $coordinates[1] = $image->height() - $coordinates[3]; } return $coordinates; } }