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; use League\Flysystem\FilesystemInterface; use League\Glide\Filesystem\FilesystemException; use League\Glide\Manipulators\Helpers\Dimension; /** * @property string $dpr * @property string $mark * @property string $markfit * @property string $markh * @property string $markpad * @property string $markpos * @property string $markw * @property string $markx * @property string $marky * @property string $markalpha */ class Watermark extends BaseManipulator { /** * The watermarks file system. * @var FilesystemInterface|null */ protected $watermarks; /** * The watermarks path prefix. * @var string */ protected $watermarksPathPrefix; /** * Create Watermark instance. * @param FilesystemInterface $watermarks The watermarks file system. */ public function __construct(FilesystemInterface $watermarks = null, $watermarksPathPrefix = '') { $this->setWatermarks($watermarks); $this->setWatermarksPathPrefix($watermarksPathPrefix); } /** * Set the watermarks file system. * @param FilesystemInterface $watermarks The watermarks file system. */ public function setWatermarks(FilesystemInterface $watermarks = null) { $this->watermarks = $watermarks; } /** * Get the watermarks file system. * @return FilesystemInterface The watermarks file system. */ public function getWatermarks() { return $this->watermarks; } /** * Set the watermarks path prefix. * @param string $watermarksPathPrefix The watermarks path prefix. */ public function setWatermarksPathPrefix($watermarksPathPrefix = '') { $this->watermarksPathPrefix = trim($watermarksPathPrefix, '/'); } /** * Get the watermarks path prefix. * @return string The watermarks path prefix. */ public function getWatermarksPathPrefix() { return $this->watermarksPathPrefix; } /** * Perform watermark image manipulation. * @param Image $image The source image. * @return Image The manipulated image. */ public function run(Image $image) { if ($watermark = $this->getImage($image)) { $markw = $this->getDimension($image, 'markw'); $markh = $this->getDimension($image, 'markh'); $markx = $this->getDimension($image, 'markx'); $marky = $this->getDimension($image, 'marky'); $markpad = $this->getDimension($image, 'markpad'); $markfit = $this->getFit(); $markpos = $this->getPosition(); $markalpha = $this->getAlpha(); if ($markpad) { $markx = $marky = $markpad; } $size = new Size(); $size->setParams([ 'w' => $markw, 'h' => $markh, 'fit' => $markfit, ]); $watermark = $size->run($watermark); if ($markalpha < 100) { $watermark->opacity($markalpha); } $image->insert($watermark, $markpos, intval($markx), intval($marky)); } return $image; } /** * Get the watermark image. * @param Image $image The source image. * @return Image|null The watermark image. */ public function getImage(Image $image) { if (is_null($this->watermarks)) { return; } if (!is_string($this->mark)) { return; } if ($this->mark === '') { return; } $path = $this->mark; if ($this->watermarksPathPrefix) { $path = $this->watermarksPathPrefix.'/'.$path; } if ($this->watermarks->has($path)) { $source = $this->watermarks->read($path); if ($source === false) { throw new FilesystemException( 'Could not read the image `'.$path.'`.' ); } return $image->getDriver()->init($source); } } /** * Get a dimension. * @param Image $image The source image. * @param string $field The requested field. * @return double|null The dimension. */ public function getDimension(Image $image, $field) { if ($this->{$field}) { return (new Dimension($image, $this->getDpr()))->get($this->{$field}); } } /** * Resolve the device pixel ratio. * @return double The device pixel ratio. */ public function getDpr() { if (!is_numeric($this->dpr)) { return 1.0; } if ($this->dpr < 0 or $this->dpr > 8) { return 1.0; } return (double) $this->dpr; } /** * Get the fit. * @return string The fit. */ public function getFit() { $fitMethods = [ 'contain', 'max', 'stretch', 'crop', 'crop-top-left', 'crop-top', 'crop-top-right', 'crop-left', 'crop-center', 'crop-right', 'crop-bottom-left', 'crop-bottom', 'crop-bottom-right', ]; if (in_array($this->markfit, $fitMethods, true)) { return $this->markfit; } } /** * Get the position. * @return string The position. */ public function getPosition() { $positions = [ 'top-left', 'top', 'top-right', 'left', 'center', 'right', 'bottom-left', 'bottom', 'bottom-right', ]; if (in_array($this->markpos, $positions, true)) { return $this->markpos; } return 'bottom-right'; } /** * Get the alpha channel. * @return int The alpha. */ public function getAlpha() { if (!is_numeric($this->markalpha)) { return 100; } if ($this->markalpha < 0 or $this->markalpha > 100) { return 100; } return (int) $this->markalpha; } }