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 BohwaZ <http://bohwaz.net/> */ class FossilDownloader 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()); $repoFile = $path . '.fossil'; $this->io->writeError(" Cloning ".$package->getSourceReference($repoFile)); $command = sprintf('fossil clone -- %s %s', $url, ProcessExecutor::escape($repoFile)); if (0 !== $this->process->execute($command, $ignoredOutput)) { throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput()); } $command = sprintf('fossil open -- %s', ProcessExecutor::escape($repoFile)); if (0 !== $this->process->execute($command, $ignoredOutput, realpath($path))) { throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput()); } $command = sprintf('fossil update -- %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 .fslckout file is missing from '.$path.', see https://getcomposer.org/commit-deps for more information'); } $command = sprintf('fossil pull && fossil 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 getLocalChanges(PackageInterface $package, $path) { if (!$this->hasMetadataRepository($path)) { return null; } $this->process->execute('fossil changes', $output, realpath($path)); return trim($output) ?: null; } /** * {@inheritDoc} */ protected function getCommitLogs($fromReference, $toReference, $path) { $command = sprintf('fossil timeline -t ci -W 0 -n 0 before %s', $toReference); if (0 !== $this->process->execute($command, $output, realpath($path))) { throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput()); } $log = ''; $match = '/\d\d:\d\d:\d\d\s+\[' . $toReference . '\]/'; foreach ($this->process->splitLines($output) as $line) { if (preg_match($match, $line)) { break; } $log .= $line; } return $log; } /** * {@inheritDoc} */ protected function hasMetadataRepository($path) { return is_file($path . '/.fslckout') || is_file($path . '/_FOSSIL_'); } }