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


Viewing file:     Constant_Definition.php (3.34 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;

/**
 * Confirms expected state of the %constant% constant.
 */
class Constant_Definition extends Check {

    /**
     * Name of the constant.
     *
     * @var string
     */
    protected $constant;

    /**
     * Whether or not the constant is expected to be defined.
     *
     * @var bool
     */
    protected $defined;

    /**
     * Whether or not the constant is expected to be a falsy value.
     *
     * @var bool
     */
    protected $falsy;

    /**
     * Expected value of the constant.
     *
     * @var mixed
     */
    protected $value;

    /**
     * Initialize the constant check
     */
    public function __construct( $options = array() ) {
        parent::__construct( $options );
        if ( isset( $this->value ) ) {
            $this->defined = true;
        }
    }

    public function run() {

        if ( isset( $this->falsy ) ) {
            if ( ! defined( $this->constant ) ) {
                if ( $this->falsy ) {
                    $this->set_status( 'success' );
                    $this->set_message( "Constant '{$this->constant}' is undefined." );
                } else {
                    $this->set_status( 'error' );
                    $this->set_message( "Constant '{$this->constant}' is undefined but expected to not be falsy." );
                }
            } else {
                $actual_value = constant( $this->constant );
                $human_actual = self::human_value( $actual_value );
                if ( ! $actual_value ) {
                    if ( $this->falsy ) {
                        $this->set_status( 'success' );
                        $this->set_message( "Constant '{$this->constant}' is defined falsy." );
                    } else {
                        $this->set_status( 'error' );
                        $this->set_message( "Constant '{$this->constant}' is defined '{$human_actual}' but expected to not be falsy." );
                    }
                } elseif ( ! $this->falsy ) {
                        $this->set_status( 'success' );
                        $this->set_message( "Constant '{$this->constant}' is not defined falsy." );
                } else {
                    $this->set_status( 'error' );
                    $this->set_message( "Constant '{$this->constant}' is defined '{$human_actual}' but expected to be falsy." );
                }
            }
            return;
        }

        if ( ! defined( $this->constant ) ) {
            if ( $this->defined ) {
                $this->set_status( 'error' );
                if ( isset( $this->value ) ) {
                    $human_expected = self::human_value( $this->value );
                    $this->set_message( "Constant '{$this->constant}' is undefined but expected to be '{$human_expected}'." );
                } else {
                    $this->set_message( "Constant '{$this->constant}' is undefined but expected to be." );
                }
            }
            return;
        }

        if ( ! $this->defined ) {
            $this->set_status( 'error' );
            $this->set_message( "Constant '{$this->constant}' is defined but expected not to be." );
            return;
        }

        if ( $this->defined && ! isset( $this->value ) ) {
            $this->set_status( 'success' );
            $this->set_message( "Constant '{$this->constant}' is defined." );
            return;
        }

        $actual_value = constant( $this->constant );
        $human_actual = self::human_value( $actual_value );

        if ( $actual_value === $this->value ) {
            $this->set_status( 'success' );
            $this->set_message( "Constant '{$this->constant}' is defined '{$human_actual}'." );
        } else {
            $this->set_status( 'error' );
            $human_expected = self::human_value( $this->value );
            $this->set_message( "Constant '{$this->constant}' is defined '{$human_actual}' but expected to be '{$human_expected}'." );
        }
    }

    private static function human_value( $value ) {
        if ( true === $value ) {
            $value = 'true';
        } elseif ( false === $value ) {
            $value = 'false';
        }
        return $value;
    }
}

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