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


Viewing file:     InputValidator.php (2.45 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Input validation utilities.
 *
 * @package Requests\Utilities
 */

namespace WpOrg\Requests\Utility;

use ArrayAccess;
use CurlHandle;
use Traversable;

/**
 * Input validation utilities.
 *
 * @package Requests\Utilities
 */
final class InputValidator {

    /**
     * Verify that a received input parameter is of type string or is "stringable".
     *
     * @param mixed $input Input parameter to verify.
     *
     * @return bool
     */
    public static function is_string_or_stringable($input) {
        return is_string($input) || self::is_stringable_object($input);
    }

    /**
     * Verify whether a received input parameter is usable as an integer array key.
     *
     * @param mixed $input Input parameter to verify.
     *
     * @return bool
     */
    public static function is_numeric_array_key($input) {
        if (is_int($input)) {
            return true;
        }

        if (!is_string($input)) {
            return false;
        }

        return (bool) preg_match('`^-?[0-9]+$`', $input);
    }

    /**
     * Verify whether a received input parameter is "stringable".
     *
     * @param mixed $input Input parameter to verify.
     *
     * @return bool
     */
    public static function is_stringable_object($input) {
        return is_object($input) && method_exists($input, '__toString');
    }

    /**
     * Verify whether a received input parameter is _accessible as if it were an array_.
     *
     * @param mixed $input Input parameter to verify.
     *
     * @return bool
     */
    public static function has_array_access($input) {
        return is_array($input) || $input instanceof ArrayAccess;
    }

    /**
     * Verify whether a received input parameter is "iterable".
     *
     * @internal The PHP native `is_iterable()` function was only introduced in PHP 7.1
     * and this library still supports PHP 5.6.
     *
     * @param mixed $input Input parameter to verify.
     *
     * @return bool
     */
    public static function is_iterable($input) {
        return is_array($input) || $input instanceof Traversable;
    }

    /**
     * Verify whether a received input parameter is a Curl handle.
     *
     * The PHP Curl extension worked with resources prior to PHP 8.0 and with
     * an instance of the `CurlHandle` class since PHP 8.0.
     * {@link https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.resource2object}
     *
     * @param mixed $input Input parameter to verify.
     *
     * @return bool
     */
    public static function is_curl_handle($input) {
        if (is_resource($input)) {
            return get_resource_type($input) === 'curl';
        }

        if (is_object($input)) {
            return $input instanceof CurlHandle;
        }

        return false;
    }
}

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