!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/Call/   drwxr-xr-x
Free 28.88 GB of 117.98 GB (24.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Stream.php (4.62 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\Call;

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\JsonSerializableInterface;

use function 
is_array;
use function 
is_null;
use function 
json_decode;
use function 
json_encode;
use function 
trigger_error;

/**
 * Lightweight resource, only has put / delete.
 *
 * @deprecated Please use Vonage\Voice\Client::streamAudio() or Vonage\Voice\Client::stopStreamAudio() instead
 */
class Stream implements JsonSerializableInterfaceClientAwareInterface
{
    use 
ClientAwareTrait;

    
/**
     * @var string|null
     */
    
protected $id;

    
/**
     * @var array
     */
    
protected $data = [];

    public function 
__construct(?string $id null)
    {
        
trigger_error(
            
'Vonage\Call\Stream is deprecated, ' .
            
'please use Vonage\Voice\Client::streamAudio() or Vonage\Voice\Client::stopStreamAudio() instead',
            
E_USER_DEPRECATED
        
);

        
$this->id $id;
    }

    
/**
     * @throws ClientExceptionInterface
     * @throws ClientException\Exception
     * @throws ClientException\Request
     * @throws ClientException\Server
     *
     * @return $this|Event
     */
    
public function __invoke(?Stream $stream null)
    {
        if (
is_null($stream)) {
            return 
$this;
        }

        return 
$this->put($stream);
    }

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

    public function 
setUrl($url): void
    
{
        if (!
is_array($url)) {
            
$url = [$url];
        }

        
$this->data['stream_url'] = $url;
    }

    
/**
     * @param string|int $times
     */
    
public function setLoop($times): void
    
{
        
$this->data['loop'] = (int)$times;
    }

    
/**
     * @param null|mixed $stream
     *
     * @throws ClientException\Exception
     * @throws ClientException\Request
     * @throws ClientException\Server
     * @throws ClientExceptionInterface
     */
    
public function put($stream null): Event
    
{
        if (!
$stream) {
            
$stream $this;
        }

        
$request = new Request(
            
$this->getClient()->getApiUrl() . Collection::getCollectionPath() . '/' $this->getId() . '/stream',
            
'PUT',
            
'php://temp',
            [
'content-type' => 'application/json']
        );

        
$request->getBody()->write(json_encode($stream));
        
$response $this->client->send($request);

        return 
$this->parseEventResponse($response);
    }

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

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

        return 
$this->parseEventResponse($response);
    }

    
/**
     * @throws ClientException\Exception
     * @throws ClientException\Request
     * @throws ClientException\Server
     */
    
protected function parseEventResponse(ResponseInterface $response): Event
    
{
        if ((int)
$response->getStatusCode() !== 200) {
            throw 
$this->getException($response);
        }

        
$json json_decode($response->getBody()->getContents(), true);

        if (!
$json) {
            throw new 
ClientException\Exception('Unexpected Response Body Format');
        }

        return new 
Event($json);
    }

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

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

        return 
$e;
    }

    public function 
jsonSerialize(): array
    {
        return 
$this->data;
    }
}

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