One Hat Cyber Team
Your IP:
216.73.216.30
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
proc
/
self
/
root
/
proc
/
thread-self
/
cwd
/
View File Name :
Support.tar
RefreshFlow.php 0000644 00000001166 15107555234 0007516 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Support; trait RefreshFlow { /** * The refresh flow flag. * * @var bool */ protected $refreshFlow = false; /** * Set the refresh flow flag. * * @param bool $refreshFlow * @return $this */ public function setRefreshFlow($refreshFlow = true) { $this->refreshFlow = $refreshFlow; return $this; } } CustomClaims.php 0000644 00000001764 15107555234 0007677 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Support; trait CustomClaims { /** * Custom claims. * * @var array */ protected $customClaims = []; /** * Set the custom claims. * * @param array $customClaims * @return $this */ public function customClaims(array $customClaims) { $this->customClaims = $customClaims; return $this; } /** * Alias to set the custom claims. * * @param array $customClaims * @return $this */ public function claims(array $customClaims) { return $this->customClaims($customClaims); } /** * Get the custom claims. * * @return array */ public function getCustomClaims() { return $this->customClaims; } } Utils.php 0000644 00000003003 15107555234 0006360 0 ustar 00 <?php /* * This file is part of jwt-auth. * * (c) Sean Tymon <tymon148@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Support; use Carbon\Carbon; class Utils { /** * Get the Carbon instance for the current time. * * @return \Carbon\Carbon */ public static function now() { return Carbon::now('UTC'); } /** * Get the Carbon instance for the timestamp. * * @param int $timestamp * @return \Carbon\Carbon */ public static function timestamp($timestamp) { return Carbon::createFromTimestampUTC($timestamp)->timezone('UTC'); } /** * Checks if a timestamp is in the past. * * @param int $timestamp * @param int $leeway * @return bool */ public static function isPast($timestamp, $leeway = 0) { $timestamp = static::timestamp($timestamp); return $leeway > 0 ? $timestamp->addSeconds($leeway)->isPast() : $timestamp->isPast(); } /** * Checks if a timestamp is in the future. * * @param int $timestamp * @param int $leeway * @return bool */ public static function isFuture($timestamp, $leeway = 0) { $timestamp = static::timestamp($timestamp); return $leeway > 0 ? $timestamp->subSeconds($leeway)->isFuture() : $timestamp->isFuture(); } } InstantUpdateApi/BillingAgreement.php 0000644 00000004237 15111162606 0013707 0 ustar 00 <?php namespace Omnipay\PayPal\Support\InstantUpdateApi; use Omnipay\Common\Exception\InvalidRequestException; class BillingAgreement { /** * Billing agreement types for single or recurring payment * * @var array */ protected $types = array( 'single' => 'MerchantInitiatedBillingSingleAgreement', 'recurring' => 'MerchantInitiatedBilling', ); /** @var string */ private $type; /** @var string */ private $description; /** @var string */ private $paymentType; /** @var string */ private $customAnnotation; /** * @param bool $recurring L_BILLINGTYPE0 * @param string $description L_BILLINGAGREEMENTDESCRIPTION0 * @param null|string $paymentType L_PAYMENTTYPE0 * @param null|string $customAnnotation L_BILLINGAGREEMENTCUSTOM0 * @throws \Exception */ public function __construct($recurring, $description, $paymentType = null, $customAnnotation = null) { if (!$recurring && !is_null($paymentType) && !in_array($paymentType, array('Any', 'InstantOnly'))) { throw new InvalidRequestException("The 'paymentType' parameter can be only 'Any' or 'InstantOnly'"); } $this->type = $recurring ? $this->types['recurring'] : $this->types['single']; $this->description = $description; $this->customAnnotation = $customAnnotation; $this->paymentType = $paymentType; } /** * @return string */ public function getType() { return $this->type; } /** * @return string */ public function getDescription() { return $this->description; } /** * @return bool */ public function hasPaymentType() { return !is_null($this->paymentType); } /** * @return string */ public function getPaymentType() { return $this->paymentType; } /** * @return bool */ public function hasCustomAnnotation() { return !is_null($this->customAnnotation); } /** * @return string */ public function getCustomAnnotation() { return $this->customAnnotation; } } InstantUpdateApi/ShippingOption.php 0000644 00000002434 15111162606 0013446 0 ustar 00 <?php namespace Omnipay\PayPal\Support\InstantUpdateApi; class ShippingOption { /** @var string */ private $name; /** @var float */ private $amount; /** @var bool */ private $isDefault; /** @var string */ private $label; /** * @param string $name L_SHIPPINGOPTIONNAME0 * @param float $amount L_SHIPPINGOPTIONAMOUNT0 * @param bool $isDefault L_SHIPPINGOPTIONISDEFAULT0 * @param string $label L_SHIPPINGOPTIONLABEL0 */ public function __construct($name, $amount, $isDefault = false, $label = null) { $this->name = $name; $this->amount = $amount; $this->isDefault = $isDefault; $this->label = $label; } /** * @return bool */ public function hasLabel() { return !is_null($this->label); } /** * @return string */ public function getName() { return $this->name; } /** * @return float */ public function getAmount() { return $this->amount; } /** * @return boolean */ public function isDefault() { return $this->isDefault; } /** * @return string */ public function getLabel() { return $this->label; } }