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


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

declare(strict_types=1);

namespace 
Vonage\Network\Number;

use 
BadMethodCallException;
use 
InvalidArgumentException;
use 
Vonage\Client\Response\Response as BaseResponse;

use function 
array_merge;
use function 
count;

class 
Response extends BaseResponse
{
    protected array 
$callbacks = [];

    public function 
__construct(array $data, array $callbacks = [])
    {
        
//add expected keys
        
$this->expected array_merge($this->expected, [
            
'request_id',
            
'number',
            
'request_price',
            
'remaining_balance',
            
'callback_total_parts'
        
]);

        
parent::__construct($data);

        foreach (
$callbacks as $callback) {
            if (!(
$callback instanceof Callback)) {
                throw new 
InvalidArgumentException('callback must be of type: Vonage\Network\Number\Callback');
            }

            if (
$callback->getId() !== $this->getId()) {
                throw new 
InvalidArgumentException('callback id must match request id');
            }
        }

        
$this->callbacks $callbacks;
    }

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

    public function 
isComplete(): bool
    
{
        return 
count($this->callbacks) === $this->getCallbackTotal();
    }

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

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

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

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

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

    
/**
     * @TODO This looks somewhat illogical
     */
    
public function __call($name$args)
    {
        if (empty(
$this->callbacks)) {
            throw new 
BadMethodCallException('can not check for response data without callback data');
        }

        foreach (
$this->callbacks as $callback) {
            if (
$last $callback->$name()) {
                return 
$last;
            }
        }

        
/** @noinspection PhpUndefinedVariableInspection */
        
return $last;
    }

    public function 
getCallbacks(): array
    {
        return 
$this->callbacks;
    }

    public static function 
addCallback(Response $response, callable $callback): Response
    
{
        
$callbacks $response->getCallbacks();
        
$callbacks[] = $callback;

        return new static(
$response->getData(), $callbacks);
    }
}

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