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


Viewing file:     VcsDriver.php (4.69 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\Repository\Vcs;

use 
Composer\Cache;
use 
Composer\Downloader\TransportException;
use 
Composer\Config;
use 
Composer\IO\IOInterface;
use 
Composer\Json\JsonFile;
use 
Composer\Util\ProcessExecutor;
use 
Composer\Util\HttpDownloader;
use 
Composer\Util\Filesystem;
use 
Composer\Util\Http\Response;

/**
 * A driver implementation for driver with authentication interaction.
 *
 * @author François Pluchino <francois.pluchino@opendisplay.com>
 */
abstract class VcsDriver implements VcsDriverInterface
{
    
/** @var string */
    
protected $url;
    
/** @var string */
    
protected $originUrl;
    
/** @var array */
    
protected $repoConfig;
    
/** @var IOInterface */
    
protected $io;
    
/** @var Config */
    
protected $config;
    
/** @var ProcessExecutor */
    
protected $process;
    
/** @var HttpDownloader */
    
protected $httpDownloader;
    
/** @var array */
    
protected $infoCache = array();
    
/** @var Cache */
    
protected $cache;

    
/**
     * Constructor.
     *
     * @param array           $repoConfig     The repository configuration
     * @param IOInterface     $io             The IO instance
     * @param Config          $config         The composer configuration
     * @param HttpDownloader  $httpDownloader Remote Filesystem, injectable for mocking
     * @param ProcessExecutor $process        Process instance, injectable for mocking
     */
    
final public function __construct(array $repoConfigIOInterface $ioConfig $configHttpDownloader $httpDownloaderProcessExecutor $process)
    {
        if (
Filesystem::isLocalPath($repoConfig['url'])) {
            
$repoConfig['url'] = Filesystem::getPlatformPath($repoConfig['url']);
        }

        
$this->url $repoConfig['url'];
        
$this->originUrl $repoConfig['url'];
        
$this->repoConfig $repoConfig;
        
$this->io $io;
        
$this->config $config;
        
$this->httpDownloader $httpDownloader;
        
$this->process $process;
    }

    
/**
     * Returns whether or not the given $identifier should be cached or not.
     *
     * @param  string $identifier
     * @return bool
     */
    
protected function shouldCache($identifier)
    {
        return 
$this->cache && preg_match('{^[a-f0-9]{40}$}iD'$identifier);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getComposerInformation($identifier)
    {
        if (!isset(
$this->infoCache[$identifier])) {
            if (
$this->shouldCache($identifier) && $res $this->cache->read($identifier)) {
                return 
$this->infoCache[$identifier] = JsonFile::parseJson($res);
            }

            
$composer $this->getBaseComposerInformation($identifier);

            if (
$this->shouldCache($identifier)) {
                
$this->cache->write($identifierjson_encode($composer));
            }

            
$this->infoCache[$identifier] = $composer;
        }

        return 
$this->infoCache[$identifier];
    }

    protected function 
getBaseComposerInformation($identifier)
    {
        
$composerFileContent $this->getFileContent('composer.json'$identifier);

        if (!
$composerFileContent) {
            return 
null;
        }

        
$composer JsonFile::parseJson($composerFileContent$identifier ':composer.json');

        if (empty(
$composer['time']) && $changeDate $this->getChangeDate($identifier)) {
            
$composer['time'] = $changeDate->format(DATE_RFC3339);
        }

        return 
$composer;
    }

    
/**
     * {@inheritDoc}
     */
    
public function hasComposerFile($identifier)
    {
        try {
            return (bool) 
$this->getComposerInformation($identifier);
        } catch (
TransportException $e) {
        }

        return 
false;
    }

    
/**
     * Get the https or http protocol depending on SSL support.
     *
     * Call this only if you know that the server supports both.
     *
     * @return string The correct type of protocol
     */
    
protected function getScheme()
    {
        if (
extension_loaded('openssl')) {
            return 
'https';
        }

        return 
'http';
    }

    
/**
     * Get the remote content.
     *
     * @param string $url The URL of content
     *
     * @return Response
     */
    
protected function getContents($url)
    {
        
$options = isset($this->repoConfig['options']) ? $this->repoConfig['options'] : array();

        return 
$this->httpDownloader->get($url$options);
    }

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

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