403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.197.208
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/pregrados/fisioterapia/libraries/src/HTML/Helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/pregrados/fisioterapia/libraries/src/HTML/Helpers/User.php
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\HTML\Helpers;

use Joomla\CMS\Access\Access;
use Joomla\CMS\Factory;
use Joomla\CMS\Helper\UserGroupsHelper;
use Joomla\CMS\HTML\HTMLHelper;

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

/**
 * Utility class working with users
 *
 * @since  2.5
 */
abstract class User
{
    /**
     * Displays a list of user groups.
     *
     * @param   boolean  $includeSuperAdmin  true to include super admin groups, false to exclude them
     *
     * @return  array  An array containing a list of user groups.
     *
     * @since   2.5
     */
    public static function groups($includeSuperAdmin = false)
    {
        $options = array_values(UserGroupsHelper::getInstance()->getAll());

        for ($i = 0, $n = count($options); $i < $n; $i++) {
            $options[$i]->value = $options[$i]->id;
            $options[$i]->text  = str_repeat('- ', $options[$i]->level) . $options[$i]->title;
            $groups[]           = HTMLHelper::_('select.option', $options[$i]->value, $options[$i]->text);
        }

        // Exclude super admin groups if requested
        if (!$includeSuperAdmin) {
            $filteredGroups = [];

            foreach ($groups as $group) {
                if (!Access::checkGroup($group->value, 'core.admin')) {
                    $filteredGroups[] = $group;
                }
            }

            $groups = $filteredGroups;
        }

        return $groups;
    }

    /**
     * Get a list of users.
     *
     * @return  string
     *
     * @since   2.5
     */
    public static function userlist()
    {
        $db    = Factory::getDbo();
        $query = $db->getQuery(true)
            ->select(
                [
                    $db->quoteName('a.id', 'value'),
                    $db->quoteName('a.name', 'text'),
                ]
            )
            ->from($db->quoteName('#__users', 'a'))
            ->where($db->quoteName('a.block') . ' = 0')
            ->order($db->quoteName('a.name'));
        $db->setQuery($query);

        return $db->loadObjectList();
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit