PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
Paypal
/
Services
/
Core
<?php /** * @package PayPalCheckoutSdk/Core */ namespace Modules\Paypal\Services\Core; class UserAgent { /** * Returns the value of the User-Agent header * Add environment values and php version numbers * * @return string */ public static function getValue() { $featureList = array( 'platform-ver=' . PHP_VERSION, 'bit=' . self::_getPHPBit(), 'os=' . str_replace(' ', '_', php_uname('s') . ' ' . php_uname('r')), 'machine=' . php_uname('m') ); if (defined('OPENSSL_VERSION_TEXT')) { $opensslVersion = explode(' ', OPENSSL_VERSION_TEXT); $featureList[] = 'crypto-lib-ver=' . $opensslVersion[1]; } if (function_exists('curl_version')) { $curlVersion = curl_version(); $featureList[] = 'curl=' . $curlVersion['version']; } return sprintf("PayPalSDK/%s %s (%s)", "Checkout-PHP-SDK", "1.0.2", implode('; ', $featureList)); } /** * Gets PHP Bit version * * @return int|string */ private static function _getPHPBit() { switch (PHP_INT_SIZE) { case 4: return '32'; case 8: return '64'; default: return PHP_INT_SIZE; } } }
[-] UserAgent.php
[edit]
[-] AccessTokenRequest.php
[edit]
[+]
..
[-] AuthorizationInjector.php
[edit]
[-] AccessToken.php
[edit]
[-] PayPalHttpClient.php
[edit]
[-] RefreshTokenRequest.php
[edit]
[-] FPTIInstrumentationInjector.php
[edit]
[-] GzipInjector.php
[edit]
[-] ProductionEnvironment.php
[edit]
[-] SandboxEnvironment.php
[edit]
[-] PayPalEnvironment.php
[edit]