Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
php /
Composer /
Downloader /
[ HOME SHELL ]
Name
Size
Permission
Action
ArchiveDownloader.php
4.42
KB
-rw-r--r--
ChangeReportInterface.php
766
B
-rw-r--r--
DownloadManager.php
10.29
KB
-rw-r--r--
DownloaderInterface.php
1.74
KB
-rw-r--r--
DvcsDownloaderInterface.php
782
B
-rw-r--r--
FileDownloader.php
9.85
KB
-rw-r--r--
FilesystemException.php
672
B
-rw-r--r--
FossilDownloader.php
3.88
KB
-rw-r--r--
GitDownloader.php
19.39
KB
-rw-r--r--
GzipDownloader.php
2.54
KB
-rw-r--r--
HgDownloader.php
3.22
KB
-rw-r--r--
PathDownloader.php
6.92
KB
-rw-r--r--
PearPackageExtractor.php
11.39
KB
-rw-r--r--
PerforceDownloader.php
2.79
KB
-rw-r--r--
PharDownloader.php
937
B
-rw-r--r--
RarDownloader.php
2.79
KB
-rw-r--r--
SvnDownloader.php
7.7
KB
-rw-r--r--
TarDownloader.php
697
B
-rw-r--r--
TransportException.php
1009
B
-rw-r--r--
VcsCapableDownloaderInterface....
795
B
-rw-r--r--
VcsDownloader.php
10.26
KB
-rw-r--r--
XzDownloader.php
1.67
KB
-rw-r--r--
ZipDownloader.php
7.91
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : PerforceDownloader.php
<?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\Repository\VcsRepository; use Composer\Util\Perforce; /** * @author Matt Whittom <Matt.Whittom@veteransunited.com> */ class PerforceDownloader extends VcsDownloader { /** @var Perforce */ protected $perforce; /** * {@inheritDoc} */ public function doDownload(PackageInterface $package, $path, $url) { $ref = $package->getSourceReference(); $label = $this->getLabelFromSourceReference($ref); $this->io->writeError('Cloning ' . $ref); $this->initPerforce($package, $path, $url); $this->perforce->setStream($ref); $this->perforce->p4Login(); $this->perforce->writeP4ClientSpec(); $this->perforce->connectClient(); $this->perforce->syncCodeBase($label); $this->perforce->cleanupClientSpec(); } private function getLabelFromSourceReference($ref) { $pos = strpos($ref, '@'); if (false !== $pos) { return substr($ref, $pos + 1); } return null; } public function initPerforce(PackageInterface $package, $path, $url) { if (!empty($this->perforce)) { $this->perforce->initializePath($path); return; } $repository = $package->getRepository(); $repoConfig = null; if ($repository instanceof VcsRepository) { $repoConfig = $this->getRepoConfig($repository); } $this->perforce = Perforce::create($repoConfig, $url, $path, $this->process, $this->io); } private function getRepoConfig(VcsRepository $repository) { return $repository->getRepoConfig(); } /** * {@inheritDoc} */ public function doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url) { $this->doDownload($target, $path, $url); } /** * {@inheritDoc} */ public function getLocalChanges(PackageInterface $package, $path) { $this->io->writeError('Perforce driver does not check for local changes before overriding', true); return; } /** * {@inheritDoc} */ protected function getCommitLogs($fromReference, $toReference, $path) { return $this->perforce->getCommitLogs($fromReference, $toReference); } public function setPerforce($perforce) { $this->perforce = $perforce; } /** * {@inheritDoc} */ protected function hasMetadataRepository($path) { return true; } }
Close