Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Composer /
Downloader /
Delete
Unzip
Name
Size
Permission
Date
Action
ArchiveDownloader.php
6.14
KB
-rw-r--r--
2016-11-03 17:43
ChangeReportInterface.php
766
B
-rw-r--r--
2016-11-03 17:43
DownloadManager.php
10.27
KB
-rw-r--r--
2016-11-03 17:43
DownloaderInterface.php
1.74
KB
-rw-r--r--
2016-11-03 17:43
DvcsDownloaderInterface.php
782
B
-rw-r--r--
2016-11-03 17:43
FileDownloader.php
8.94
KB
-rw-r--r--
2016-11-03 17:43
FilesystemException.php
672
B
-rw-r--r--
2016-11-03 17:43
FossilDownloader.php
3.92
KB
-rw-r--r--
2021-05-09 23:44
GitDownloader.php
18.61
KB
-rw-r--r--
2021-05-09 23:44
GzipDownloader.php
2.54
KB
-rw-r--r--
2021-05-09 23:44
HgDownloader.php
3.24
KB
-rw-r--r--
2021-05-09 23:44
PathDownloader.php
5.82
KB
-rw-r--r--
2016-11-03 17:43
PearPackageExtractor.php
11.39
KB
-rw-r--r--
2016-11-03 17:43
PerforceDownloader.php
2.82
KB
-rw-r--r--
2016-11-03 17:43
PharDownloader.php
937
B
-rw-r--r--
2016-11-03 17:43
RarDownloader.php
2.99
KB
-rw-r--r--
2021-05-09 23:44
SvnDownloader.php
6.56
KB
-rw-r--r--
2016-11-03 17:43
TarDownloader.php
697
B
-rw-r--r--
2016-11-03 17:43
TransportException.php
1009
B
-rw-r--r--
2016-11-03 17:43
VcsCapableDownloaderInterface.php
796
B
-rw-r--r--
2016-11-03 17:43
VcsDownloader.php
9.91
KB
-rw-r--r--
2016-11-03 17:43
XzDownloader.php
1.67
KB
-rw-r--r--
2016-11-03 17:43
ZipDownloader.php
4.75
KB
-rw-r--r--
2016-11-03 17:43
Save
Rename
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Downloader; use Composer\Config; use Composer\Cache; use Composer\EventDispatcher\EventDispatcher; use Composer\Package\PackageInterface; use Composer\Util\Platform; use Composer\Util\ProcessExecutor; use Composer\Util\RemoteFilesystem; use Composer\IO\IOInterface; /** * GZip archive downloader. * * @author Pavel Puchkin <i@neoascetic.me> */ class GzipDownloader extends ArchiveDownloader { protected $process; public function __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null, RemoteFilesystem $rfs = null) { $this->process = $process ?: new ProcessExecutor($io); parent::__construct($io, $config, $eventDispatcher, $cache, $rfs); } protected function extract($file, $path) { $targetFilepath = $path . DIRECTORY_SEPARATOR . basename(substr($file, 0, -3)); // Try to use gunzip on *nix if (!Platform::isWindows()) { $command = 'gzip -cd -- ' . ProcessExecutor::escape($file) . ' > ' . ProcessExecutor::escape($targetFilepath); if (0 === $this->process->execute($command, $ignoredOutput)) { return; } if (extension_loaded('zlib')) { // Fallback to using the PHP extension. $this->extractUsingExt($file, $targetFilepath); return; } $processError = 'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput(); throw new \RuntimeException($processError); } // Windows version of PHP has built-in support of gzip functions $this->extractUsingExt($file, $targetFilepath); } /** * {@inheritdoc} */ protected function getFileName(PackageInterface $package, $path) { return $path.'/'.pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME); } private function extractUsingExt($file, $targetFilepath) { $archiveFile = gzopen($file, 'rb'); $targetFile = fopen($targetFilepath, 'wb'); while ($string = gzread($archiveFile, 4096)) { fwrite($targetFile, $string, Platform::strlen($string)); } gzclose($archiveFile); fclose($targetFile); } }