!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/Installer/   drwxr-xr-x
Free 13.24 GB of 57.97 GB (22.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     PluginInstaller.php (3.94 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\Installer;

use 
Composer\Composer;
use 
Composer\IO\IOInterface;
use 
Composer\Repository\InstalledRepositoryInterface;
use 
Composer\Package\PackageInterface;
use 
Composer\Util\Filesystem;
use 
Composer\Installer\InstallationManager;
use 
Composer\Util\Platform;
use 
React\Promise\PromiseInterface;

/**
 * Installer for plugin packages
 *
 * @author Jordi Boggiano <j.boggiano@seld.be>
 * @author Nils Adermann <naderman@naderman.de>
 */
class PluginInstaller extends LibraryInstaller
{
    
/**
     * Initializes Plugin installer.
     *
     * @param IOInterface $io
     * @param Composer    $composer
     */
    
public function __construct(IOInterface $ioComposer $composerFilesystem $fs nullBinaryInstaller $binaryInstaller null)
    {
        
parent::__construct($io$composer'composer-plugin'$fs$binaryInstaller);
    }

    
/**
     * {@inheritDoc}
     */
    
public function supports($packageType)
    {
        return 
$packageType === 'composer-plugin' || $packageType === 'composer-installer';
    }

    
/**
     * {@inheritDoc}
     */
    
public function download(PackageInterface $packagePackageInterface $prevPackage null)
    {
        
$extra $package->getExtra();
        if (empty(
$extra['class'])) {
            throw new 
\UnexpectedValueException('Error while installing '.$package->getPrettyName().', composer-plugin packages should have a class defined in their extra key to be usable.');
        }

        return 
parent::download($package$prevPackage);
    }

    
/**
     * {@inheritDoc}
     */
    
public function install(InstalledRepositoryInterface $repoPackageInterface $package)
    {
        
$promise parent::install($repo$package);
        if (!
$promise instanceof PromiseInterface) {
            
$promise \React\Promise\resolve();
        }

        
$pluginManager $this->composer->getPluginManager();
        
$self $this;

        return 
$promise->then(function () use ($self$pluginManager$package$repo) {
            try {
                
Platform::workaroundFilesystemIssues();
                
$pluginManager->registerPackage($packagetrue);
            } catch (
\Exception $e) {
                
$self->rollbackInstall($e$repo$package);
            }
        });
    }

    
/**
     * {@inheritDoc}
     */
    
public function update(InstalledRepositoryInterface $repoPackageInterface $initialPackageInterface $target)
    {
        
$promise parent::update($repo$initial$target);
        if (!
$promise instanceof PromiseInterface) {
            
$promise \React\Promise\resolve();
        }

        
$pluginManager $this->composer->getPluginManager();
        
$self $this;

        return 
$promise->then(function () use ($self$pluginManager$initial$target$repo) {
            try {
                
Platform::workaroundFilesystemIssues();
                
$pluginManager->deactivatePackage($initialtrue);
                
$pluginManager->registerPackage($targettrue);
            } catch (
\Exception $e) {
                
$self->rollbackInstall($e$repo$target);
            }
        });
    }

    public function 
uninstall(InstalledRepositoryInterface $repoPackageInterface $package)
    {
        
$this->composer->getPluginManager()->uninstallPackage($packagetrue);

        return 
parent::uninstall($repo$package);
    }

    
/**
     * TODO v3 should make this private once we can drop PHP 5.3 support
     * @private
     */
    
public function rollbackInstall(\Exception $eInstalledRepositoryInterface $repoPackageInterface $package)
    {
        
$this->io->writeError('Plugin initialization failed ('.$e->getMessage().'), uninstalling plugin');
        
parent::uninstall($repo$package);
        throw 
$e;
    }
}

:: 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.0065 ]--