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


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

declare(strict_types=1);

namespace 
Vonage\Voice\Endpoint;

use function 
array_key_exists;

class 
Phone implements EndpointInterface
{
    protected ?
string $ringbackTone null;

    protected ?
string $url null;

    public function 
__construct(protected string $id, protected ?string $dtmfAnswer null)
    {
    }

    public static function 
factory(string $number, array $data): Phone
    
{
        
$endpoint = new Phone($number);

        if (
array_key_exists('dtmfAnswer'$data)) {
            
$endpoint->setDtmfAnswer($data['dtmfAnswer']);
        }

        if (
array_key_exists('onAnswer'$data)) {
            
$endpoint->setUrl($data['onAnswer']['url']);

            if (
array_key_exists('ringbackTone'$data['onAnswer'])) {
                
$endpoint->setRingbackTone($data['onAnswer']['ringbackTone']);
            }

            
// Legacy name for ringbackTone
            
if (array_key_exists('ringback'$data['onAnswer'])) {
                
$endpoint->setRingbackTone($data['onAnswer']['ringback']);
            }
        }

        return 
$endpoint;
    }

    public function 
getDtmfAnswer(): ?string
    
{
        return 
$this->dtmfAnswer;
    }

    
/**
     * @return array{type: string, number: string, dtmfAnswer?: string}
     */
    
public function jsonSerialize(): array
    {
        return 
$this->toArray();
    }

    
/**
     * @return $this
     */
    
public function setDtmfAnswer(string $dtmf): self
    
{
        
$this->dtmfAnswer $dtmf;

        return 
$this;
    }

    
/**
     * @return array{type: string, number: string, dtmfAnswer?: string}
     */
    
public function toArray(): array
    {
        
$data = [
            
'type' => 'phone',
            
'number' => $this->id,
        ];

        if (
null !== $this->getDtmfAnswer()) {
            
$data['dtmfAnswer'] = $this->getDtmfAnswer();
        }

        if (
null !== $this->getUrl()) {
            
$data['onAnswer']['url'] = $this->getUrl();

            if (
null !== $this->getRingbackTone()) {
                
$data['onAnswer']['ringbackTone'] = $this->getRingbackTone();
            }
        }

        return 
$data;
    }

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

    public function 
getRingbackTone(): ?string
    
{
        return 
$this->ringbackTone;
    }

    
/**
     * @return $this
     */
    
public function setRingbackTone(string $ringbackTone): self
    
{
        
$this->ringbackTone $ringbackTone;

        return 
$this;
    }

    public function 
getUrl(): ?string
    
{
        return 
$this->url;
    }

    
/**
     * @return $this
     */
    
public function setUrl(string $url): self
    
{
        
$this->url $url;
        return 
$this;
    }
}

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