!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/Symfony/Component/Security/Core/User/   drwxr-xr-x
Free 294.19 GB of 429.69 GB (68.47%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     InMemoryUserProvider.php (3.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Security\Core\User;

use 
Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use 
Symfony\Component\Security\Core\Exception\UnsupportedUserException;

/**
 * InMemoryUserProvider is a simple non persistent user provider.
 *
 * Useful for testing, demonstration, prototyping, and for simple needs
 * (a backend with a unique admin for instance)
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class InMemoryUserProvider implements UserProviderInterface
{
    private 
$users;

    
/**
     * Constructor.
     *
     * The user array is a hash where the keys are usernames and the values are
     * an array of attributes: 'password', 'enabled', and 'roles'.
     *
     * @param array $users An array of users
     */
    
public function __construct(array $users = array())
    {
        foreach (
$users as $username => $attributes) {
            
$password = isset($attributes['password']) ? $attributes['password'] : null;
            
$enabled = isset($attributes['enabled']) ? $attributes['enabled'] : true;
            
$roles = isset($attributes['roles']) ? $attributes['roles'] : array();
            
$user = new User($username$password$roles$enabledtruetruetrue);

            
$this->createUser($user);
        }
    }

    
/**
     * Adds a new User to the provider.
     *
     * @param UserInterface $user A UserInterface instance
     *
     * @throws \LogicException
     */
    
public function createUser(UserInterface $user)
    {
        if (isset(
$this->users[strtolower($user->getUsername())])) {
            throw new \
LogicException('Another user with the same username already exists.');
        }

        
$this->users[strtolower($user->getUsername())] = $user;
    }

    
/**
     * {@inheritdoc}
     */
    
public function loadUserByUsername($username)
    {
        if (!isset(
$this->users[strtolower($username)])) {
            
$ex = new UsernameNotFoundException(sprintf('Username "%s" does not exist.'$username));
            
$ex->setUsername($username);

            throw 
$ex;
        }

        
$user $this->users[strtolower($username)];

        return new 
User($user->getUsername(), $user->getPassword(), $user->getRoles(), $user->isEnabled(), $user->isAccountNonExpired(),
                
$user->isCredentialsNonExpired(), $user->isAccountNonLocked());
    }

    
/**
     * {@inheritDoc}
     */
    
public function refreshUser(UserInterface $user)
    {
        if (!
$user instanceof User) {
            throw new 
UnsupportedUserException(sprintf('Instances of "%s" are not supported.'get_class($user)));
        }

        return 
$this->loadUserByUsername($user->getUsername());
    }

    
/**
     * {@inheritDoc}
     */
    
public function supportsClass($class)
    {
        return 
$class === 'Symfony\Component\Security\Core\User\User';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0975 ]--