!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/composer/composer/src/Composer/Command/   drwxr-xr-x
Free 13.25 GB of 57.97 GB (22.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     GlobalCommand.php (3.57 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?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\Factory;
use 
Composer\Util\Filesystem;
use 
Symfony\Component\Console\Input\InputInterface;
use 
Symfony\Component\Console\Input\InputArgument;
use 
Symfony\Component\Console\Input\StringInput;
use 
Symfony\Component\Console\Output\OutputInterface;

/**
 * @author Jordi Boggiano <j.boggiano@seld.be>
 */
class GlobalCommand extends BaseCommand
{
    protected function 
configure()
    {
        
$this
            
->setName('global')
            ->
setDescription('Allows running commands in the global composer dir ($COMPOSER_HOME).')
            ->
setDefinition(array(
                new 
InputArgument('command-name'InputArgument::REQUIRED''),
                new 
InputArgument('args'InputArgument::IS_ARRAY InputArgument::OPTIONAL''),
            ))
            ->
setHelp(
                <<<EOT
Use this command as a wrapper to run other Composer commands
within the global context of COMPOSER_HOME.

You can use this to install CLI utilities globally, all you need
is to add the COMPOSER_HOME/vendor/bin dir to your PATH env var.

COMPOSER_HOME is c:\Users\<user>\AppData\Roaming\Composer on Windows
and /home/<user>/.composer on unix systems.

If your system uses freedesktop.org standards, then it will first check
XDG_CONFIG_HOME or default to /home/<user>/.config/composer

Note: This path may vary depending on customizations to bin-dir in
composer.json or the environmental variable COMPOSER_BIN_DIR.

Read more at https://getcomposer.org/doc/03-cli.md#global
EOT
            )
        ;
    }

    public function 
run(InputInterface $inputOutputInterface $output)
    {
        
// extract real command name
        
$tokens preg_split('{\s+}'$input->__toString());
        
$args = array();
        foreach (
$tokens as $token) {
            if (
$token && $token[0] !== '-') {
                
$args[] = $token;
                if (
count($args) >= 2) {
                    break;
                }
            }
        }

        
// show help for this command if no command was found
        
if (count($args) < 2) {
            return 
parent::run($input$output);
        }

        
// The COMPOSER env var should not apply to the global execution scope
        
if (getenv('COMPOSER')) {
            
putenv('COMPOSER');
            unset(
$_SERVER['COMPOSER']);
        }

        
// change to global dir
        
$config Factory::createConfig();
        
$home $config->get('home');

        if (!
is_dir($home)) {
            
$fs = new Filesystem();
            
$fs->ensureDirectoryExists($home);
            if (!
is_dir($home)) {
                throw new 
\RuntimeException('Could not create home directory');
            }
        }

        try {
            
chdir($home);
        } catch (
\Exception $e) {
            throw new 
\RuntimeException('Could not switch to home directory "'.$home.'"'0$e);
        }
        
$this->getIO()->writeError('<info>Changed current directory to '.$home.'</info>');

        
// create new input without "global" command prefix
        
$input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}'''$input->__toString(), 1));
        
$this->getApplication()->resetComposer();

        return 
$this->getApplication()->run($input$output);
    }

    
/**
     * {@inheritDoc}
     */
    
public function isProxyCommand()
    {
        return 
true;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0084 ]--