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

use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\FormController;
use Joomla\CMS\Router\Route;
use Joomla\Component\Privacy\Administrator\Model\ConsentsModel;

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

/**
 * Consents management controller class.
 *
 * @since  3.9.0
 */
class ConsentsController extends FormController
{
    /**
     * Method to invalidate specific consents.
     *
     * @return  void
     *
     * @since   3.9.0
     */
    public function invalidate()
    {
        // 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->app->enqueueMessage(Text::_('JERROR_NO_ITEMS_SELECTED'), CMSApplication::MSG_ERROR);
        } else {
            /** @var ConsentsModel $model */
            $model = $this->getModel();

            if (!$model->invalidate($ids)) {
                $this->setMessage($model->getError());
            } else {
                $this->setMessage(Text::plural('COM_PRIVACY_N_CONSENTS_INVALIDATED', \count($ids)));
            }
        }

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

    /**
     * Method to invalidate all consents of a specific subject.
     *
     * @return  void
     *
     * @since   3.9.0
     */
    public function invalidateAll()
    {
        // Check for request forgeries
        $this->checkToken();

        $filters = $this->input->get('filter', [], 'array');

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

        if (isset($filters['subject']) && $filters['subject'] != '') {
            $subject = $filters['subject'];
        } else {
            $this->app->enqueueMessage(Text::_('JERROR_NO_ITEMS_SELECTED'));

            return;
        }

        /** @var ConsentsModel $model */
        $model = $this->getModel();

        if (!$model->invalidateAll($subject)) {
            $this->setMessage($model->getError());
        }

        $this->setMessage(Text::_('COM_PRIVACY_CONSENTS_INVALIDATED_ALL'));
    }
}

Filemanager

Name Type Size Permission Actions
ConsentsController.php File 2.56 KB 0664
DisplayController.php File 4 KB 0664
RequestController.php File 11.66 KB 0664
RequestsController.php File 1.19 KB 0664
Filemanager