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


Viewing file:     Argument.php (2.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PHP Command Line Tools
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.
 *
 * @author    James Logsdon <[email protected]>
 * @copyright 2010 James Logsdom (http://girsbrain.org)
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
 */

namespace cli\arguments;

use cli\Memoize;

/**
 * Represents an Argument or a value and provides several helpers related to parsing an argument list.
 */
class Argument extends Memoize {
    /**
     * The canonical name of this argument, used for aliasing.
     *
     * @param string
     */
    public $key;

    private $_argument;
    private $_raw;

    /**
     * @param string  $argument  The raw argument, leading dashes included.
     */
    public function __construct($argument) {
        $this->_raw = $argument;
        $this->key =& $this->_argument;

        if ($this->isLong) {
            $this->_argument = substr($this->_raw, 2);
        } else if ($this->isShort) {
            $this->_argument = substr($this->_raw, 1);
        } else {
            $this->_argument = $this->_raw;
        }
    }

    /**
     * Returns the raw input as a string.
     *
     * @return string
     */
    public function __toString() {
        return (string)$this->_raw;
    }

    /**
     * Returns the formatted argument string.
     *
     * @return string
     */
    public function value() {
        return $this->_argument;
    }

    /**
     * Returns the raw input.
     *
     * @return mixed
     */
    public function raw() {
        return $this->_raw;
    }

    /**
     * Returns true if the string matches the pattern for long arguments.
     *
     * @return bool
     */
    public function isLong() {
        return (0 == strncmp((string)$this->_raw, '--', 2));
    }

    /**
     * Returns true if the string matches the pattern for short arguments.
     *
     * @return bool
     */
    public function isShort() {
        return !$this->isLong && (0 == strncmp((string)$this->_raw, '-', 1));
    }

    /**
     * Returns true if the string matches the pattern for arguments.
     *
     * @return bool
     */
    public function isArgument() {
        return $this->isShort() || $this->isLong();
    }

    /**
     * Returns true if the string matches the pattern for values.
     *
     * @return bool
     */
    public function isValue() {
        return !$this->isArgument;
    }

    /**
     * Returns true if the argument is short but contains several characters. Each
     * character is considered a separate argument.
     *
     * @return bool
     */
    public function canExplode() {
        return $this->isShort && strlen($this->_argument) > 1;
    }

    /**
     * Returns all but the first character of the argument, removing them from the
     * objects representation at the same time.
     *
     * @return array
     */
    public function exploded() {
        $exploded = array();

        for ($i = strlen($this->_argument); $i > 0; $i--) {
            array_push($exploded, $this->_argument[$i - 1]);
        }

        $this->_argument = array_pop($exploded);
        $this->_raw      = '-' . $this->_argument;
        return $exploded;
    }
}

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