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 : 3.133.149.244
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
vendor /
league /
glide /
src /
Responses /
Delete
Unzip
Name
Size
Permission
Date
Action
PsrResponseFactory.php
1.97
KB
-rw-r--r--
2020-11-05 09:00
ResponseFactoryInterface.php
404
B
-rw-r--r--
2020-11-05 09:00
Save
Rename
<?php namespace League\Glide\Responses; use Closure; use League\Flysystem\FilesystemInterface; use League\Glide\Filesystem\FilesystemException; use Psr\Http\Message\ResponseInterface; class PsrResponseFactory implements ResponseFactoryInterface { /** * Base response object. * @var ResponseInterface */ protected $response; /** * Callback to create stream. * @var Closure */ protected $streamCallback; /** * Create PsrResponseFactory instance. * @param ResponseInterface $response Base response object. * @param Closure $streamCallback Callback to create stream. */ public function __construct(ResponseInterface $response, Closure $streamCallback) { $this->response = $response; $this->streamCallback = $streamCallback; } /** * Create response. * @param FilesystemInterface $cache Cache file system. * @param string $path Cached file path. * @return ResponseInterface Response object. */ public function create(FilesystemInterface $cache, $path) { $stream = $this->streamCallback->__invoke( $cache->readStream($path) ); $contentType = $cache->getMimetype($path); $contentLength = (string) $cache->getSize($path); $cacheControl = 'max-age=31536000, public'; $expires = date_create('+1 years')->format('D, d M Y H:i:s').' GMT'; if ($contentType === false) { throw new FilesystemException('Unable to determine the image content type.'); } if ($contentLength === false) { throw new FilesystemException('Unable to determine the image content length.'); } return $this->response->withBody($stream) ->withHeader('Content-Type', $contentType) ->withHeader('Content-Length', $contentLength) ->withHeader('Cache-Control', $cacheControl) ->withHeader('Expires', $expires); } }