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


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

namespace WP_CLI\Doctor\Check;

use WP_CLI;
use WP_CLI\Doctor\Check;

/**
 * Errors if plugin '%name%' isn't in the expected state '%status%'.
 */
class Plugin_Status extends Plugin {

    /**
     * Name of the plugin to check.
     *
     * @var string
     */
    protected $name;

    /**
     * Expected status for the plugin.
     *
     * * 'uninstalled' - Completely uninstalled from the system.
     * * 'installed' = Present on the system. Could also be active or active-network.
     * * 'active' = Present and activated on the system.
     *
     * @var string
     */
    protected $status;

    public function __construct( $options = array() ) {
        $valid_statuses = array( 'uninstalled', 'installed', 'active' );
        if ( ! in_array( $options['status'], $valid_statuses, true ) ) {
            WP_CLI::error( 'Invalid plugin_status. Should be one of: ' . implode( ', ', $valid_statuses ) . '.' );
        }
        parent::__construct( $options );
    }

    public function run() {
        $plugins = self::get_plugins();

        $current_status = 'uninstalled';
        foreach ( self::get_plugins() as $plugin ) {
            if ( $plugin['name'] === $this->name ) {
                $current_status = $plugin['status'];
                break;
            }
        }

        $erred = false;
        if ( 'uninstalled' === $this->status
            && $current_status !== $this->status ) {
            $erred = true;
        } elseif ( 'installed' === $this->status
            && 'uninstalled' === $current_status ) {
            $erred = true;
        } elseif ( 'active' === $this->status
            && in_array( $current_status, array( 'uninstalled', 'inactive' ), true ) ) {
            $erred = true;
        }

        if ( $erred ) {
            $this->set_status( 'error' );
            $this->set_message( "Plugin '{$this->name}' is '{$current_status}' but expected to be '{$this->status}'." );
        } else {
            $this->set_status( 'success' );
            $this->set_message( "Plugin '{$this->name}' is '{$current_status}' as expected." );
        }
    }
}

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