!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/vendor/wp-cli/extension-command/src/WP_CLI/   drwxr-xr-x
Free 719.92 GB of 879.6 GB (81.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace WP_CLI;

use WP_CLI;

trait ParsePluginNameInput {

    /**
     * If have optional args ([<plugin>...]) and an all option, then check have something to do.
     *
     * @param array  $args Passed-in arguments.
     * @param bool   $all All flag.
     * @param string $verb Optional. Verb to use. Defaults to 'install'.
     * @return array Same as $args if not all, otherwise all slugs.
     * @param string $exclude Comma separated list of plugin slugs.
     * @throws ExitException If neither plugin name nor --all were provided.
     */
    protected function check_optional_args_and_all( $args, $all, $verb = 'install', $exclude = null ) {
        if ( $all ) {
            $args = array_map(
                '\WP_CLI\Utils\get_plugin_name',
                array_keys( $this->get_all_plugins() )
            );
        }

        if ( $all && $exclude ) {
            $exclude_list = explode( ',', trim( $exclude, ',' ) );
            $args         = array_filter(
                $args,
                static function ( $slug ) use ( $exclude_list ) {
                    return ! in_array( $slug, $exclude_list, true );
                }
            );
        }

        if ( empty( $args ) ) {
            if ( ! $all ) {
                WP_CLI::error( 'Please specify one or more plugins, or use --all.' );
            }

            $past_tense_verb = Utils\past_tense_verb( $verb );
            WP_CLI::success( "No plugins {$past_tense_verb}." ); // Don't error if --all given for BC.
        }

        return $args;
    }

    /**
     * Gets all available plugins.
     *
     * Uses the same filter core uses in plugins.php to determine which plugins
     * should be available to manage through the WP_Plugins_List_Table class.
     *
     * @return array
     */
    private function get_all_plugins() {
        // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Calling native WordPress hook.
        return apply_filters( 'all_plugins', get_plugins() );
    }
}

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