!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/   drwxr-xr-x
Free 703.77 GB of 879.6 GB (80.01%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace WP_CLI;

use WP_CLI;

/**
 * Context manager to register_context and process different contexts that commands can
 * run within.
 */
final class ContextManager {

    /**
     * Associative array of context implementations.
     *
     * @var array<string, Context>
     */
    private $contexts = [];

    /**
     * Store the current context.
     *
     * @var string Current context.
     */
    private $current_context = Context::CLI;

    /**
     * Register a context with WP-CLI.
     *
     * @param string  $name           Name of the context.
     * @param Context $implementation Implementation of the context.
     */
    public function register_context( $name, Context $implementation ) {
        $this->contexts[ $name ] = $implementation;
    }

    /**
     * Switch the context in which to run WP-CLI.
     *
     * @param array $config Associative array of configuration data.
     * @return void
     *
     * @throws ExitException When an invalid context was requested.
     */
    public function switch_context( $config ) {
        $context = isset( $config['context'] )
            ? $config['context']
            : $this->current_context;

        if ( ! array_key_exists( $context, $this->contexts ) ) {
            WP_CLI::error( "Unknown context '{$context}'" );
        }

        WP_CLI::debug( "Using context '{$context}'", Context::DEBUG_GROUP );

        $this->current_context = $context;
        $this->contexts[ $context ]->process( $config );
    }

    /**
     * Return the current context.
     *
     * @return string Current context.
     */
    public function get_context() {
        return $this->current_context;
    }
}

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