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 /
Command /
[ HOME SHELL ]
Name
Size
Permission
Action
AboutCommand.php
1.1
KB
-rw-r--r--
ArchiveCommand.php
6.42
KB
-rw-r--r--
BaseCommand.php
4.51
KB
-rw-r--r--
BaseDependencyCommand.php
9.7
KB
-rw-r--r--
CheckPlatformReqsCommand.php
4.9
KB
-rw-r--r--
ClearCacheCommand.php
1.99
KB
-rw-r--r--
ConfigCommand.php
26.21
KB
-rw-r--r--
CreateProjectCommand.php
17.35
KB
-rw-r--r--
DependsCommand.php
1.29
KB
-rw-r--r--
DiagnoseCommand.php
25.52
KB
-rw-r--r--
DumpAutoloadCommand.php
3.21
KB
-rw-r--r--
ExecCommand.php
2.74
KB
-rw-r--r--
GlobalCommand.php
2.86
KB
-rw-r--r--
HomeCommand.php
5.29
KB
-rw-r--r--
InitCommand.php
28.09
KB
-rw-r--r--
InstallCommand.php
6.17
KB
-rw-r--r--
LicensesCommand.php
5.32
KB
-rw-r--r--
OutdatedCommand.php
3.44
KB
-rw-r--r--
ProhibitsCommand.php
1.31
KB
-rw-r--r--
RemoveCommand.php
6.81
KB
-rw-r--r--
RequireCommand.php
10.15
KB
-rw-r--r--
RunScriptCommand.php
4.82
KB
-rw-r--r--
ScriptAliasCommand.php
1.88
KB
-rw-r--r--
SearchCommand.php
2.86
KB
-rw-r--r--
SelfUpdateCommand.php
16.48
KB
-rw-r--r--
ShowCommand.php
37.82
KB
-rw-r--r--
StatusCommand.php
7.89
KB
-rw-r--r--
SuggestsCommand.php
5.1
KB
-rw-r--r--
UpdateCommand.php
10.82
KB
-rw-r--r--
ValidateCommand.php
6.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CheckPlatformReqsCommand.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\Command; use Composer\Package\Link; use Composer\Package\PackageInterface; use Composer\Semver\Constraint\Constraint; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Composer\Repository\PlatformRepository; class CheckPlatformReqsCommand extends BaseCommand { protected function configure() { $this->setName('check-platform-reqs') ->setDescription('Check that platform requirements are satisfied.') ->setHelp(<<<EOT Checks that your PHP and extensions versions match the platform requirements of the installed packages. <info>php composer.phar check-platform-reqs</info> EOT ); } protected function execute(InputInterface $input, OutputInterface $output) { $composer = $this->getComposer(); $repos = $composer->getRepositoryManager()->getLocalRepository(); $allPackages = array_merge(array($composer->getPackage()), $repos->getPackages()); $requires = $composer->getPackage()->getDevRequires(); foreach ($requires as $require => $link) { $requires[$require] = array($link); } /** * @var PackageInterface $package */ foreach ($allPackages as $package) { foreach ($package->getRequires() as $require => $link) { $requires[$require][] = $link; } } ksort($requires); $platformRepo = new PlatformRepository(array(), array()); $currentPlatformPackages = $platformRepo->getPackages(); $currentPlatformPackageMap = array(); /** * @var PackageInterface $currentPlatformPackage */ foreach ($currentPlatformPackages as $currentPlatformPackage) { $currentPlatformPackageMap[$currentPlatformPackage->getName()] = $currentPlatformPackage; } $results = array(); $exitCode = 0; /** * @var Link $require */ foreach ($requires as $require => $links) { if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $require)) { if (isset($currentPlatformPackageMap[$require])) { $pass = true; $version = $currentPlatformPackageMap[$require]->getVersion(); foreach ($links as $link) { if (!$link->getConstraint()->matches(new Constraint('=', $version))) { $results[] = array( $currentPlatformPackageMap[$require]->getPrettyName(), $currentPlatformPackageMap[$require]->getPrettyVersion(), $link, '<error>failed</error>', ); $pass = false; $exitCode = max($exitCode, 1); } } if ($pass) { $results[] = array( $currentPlatformPackageMap[$require]->getPrettyName(), $currentPlatformPackageMap[$require]->getPrettyVersion(), null, '<info>success</info>', ); } } else { $results[] = array( $require, 'n/a', $links[0], '<error>missing</error>', ); $exitCode = max($exitCode, 2); } } } $this->printTable($output, $results); return $exitCode; } protected function printTable(OutputInterface $output, $results) { $table = array(); $rows = array(); foreach ($results as $result) { /** * @var Link|null $link */ list($platformPackage, $version, $link, $status) = $result; $rows[] = array( $platformPackage, $version, $link ? sprintf('%s %s %s (%s)', $link->getSource(), $link->getDescription(), $link->getTarget(), $link->getPrettyConstraint()) : '', $status, ); } $table = array_merge($rows, $table); // Render table $renderer = new Table($output); $renderer->setStyle('compact'); $renderer->getStyle()->setVerticalBorderChar(''); $renderer->getStyle()->setCellRowContentFormat('%s '); $renderer->setRows($table)->render(); } }
Close