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\Package\PackageInterface; use Composer\Util\ProcessExecutor; /** * @author Per Bernhardt <plb@webfactory.de> */ class HgDownloader extends VcsDownloader { /** * {@inheritDoc} */ public function doDownload(PackageInterface $package, $path, $url) { // Ensure we are allowed to use this URL by config $this->config->prohibitUrlByConfig($url, $this->io); $url = ProcessExecutor::escape($url); $ref = ProcessExecutor::escape($package->getSourceReference()); $this->io->writeError(" Cloning ".$package->getSourceReference()); $command = sprintf('hg clone -- %s %s', $url, ProcessExecutor::escape($path)); if (0 !== $this->process->execute($command, $ignoredOutput)) { throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput()); } $command = sprintf('hg up -- %s', $ref); if (0 !== $this->process->execute($command, $ignoredOutput, realpath($path))) { throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput()); } } /** * {@inheritDoc} */ public function doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url) { // Ensure we are allowed to use this URL by config $this->config->prohibitUrlByConfig($url, $this->io); $url = ProcessExecutor::escape($url); $ref = ProcessExecutor::escape($target->getSourceReference()); $this->io->writeError(" Updating to ".$target->getSourceReference()); if (!$this->hasMetadataRepository($path)) { throw new \RuntimeException('The .hg directory is missing from '.$path.', see https://getcomposer.org/commit-deps for more information'); } $command = sprintf('hg pull -- %s && hg up -- %s', $url, $ref); if (0 !== $this->process->execute($command, $ignoredOutput, realpath($path))) { throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput()); } } /** * {@inheritDoc} */ public function getLocalChanges(PackageInterface $package, $path) { if (!is_dir($path.'/.hg')) { return null; } $this->process->execute('hg st', $output, realpath($path)); return trim($output) ?: null; } /** * {@inheritDoc} */ protected function getCommitLogs($fromReference, $toReference, $path) { $command = sprintf('hg log -r %s:%s --style compact', $fromReference, $toReference); if (0 !== $this->process->execute($command, $output, realpath($path))) { throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput()); } return $output; } /** * {@inheritDoc} */ protected function hasMetadataRepository($path) { return is_dir($path . '/.hg'); } }