!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/main_file/vendor/aws/aws-sdk-php/src/EndpointV2/Ruleset/   drwxr-xr-x
Free 12.97 GB of 57.97 GB (22.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Ruleset.php (2.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Aws\EndpointV2\Ruleset;

use 
Aws\EndpointV2\Rule\RuleCreator;

/**
 * A collection of rules, parameter definitions and a class of helper functions
 * used to resolve either an endpoint or an error.
 */
Class Ruleset
{
    
/** @var string */
    
private $version;

    
/** @var array */
    
private $parameters;

    
/** @var array */
    
private $rules;

    
/** @var RulesetStandardLibrary */
    
public $standardLibrary;

    public function 
__construct(array $ruleset, array $partitions)
    {
        
$this->version $ruleset['version'];
        
$this->parameters $this->createParameters($ruleset['parameters']);
        
$this->rules $this->createRules($ruleset['rules']);
        
$this->standardLibrary = new RulesetStandardLibrary($partitions);
    }

    
/**
     * @return mixed
     */
    
public function getVersion()
    {
        return 
$this->version;
    }

    
/**
     * @return array
     */
    
public function getParameters()
    {
        return 
$this->parameters;
    }

    
/**
     * @return array
     */
    
public function getRules()
    {
        return 
$this->rules;
    }

    
/**
     * Evaluate the ruleset against the input parameters.
     * Return the first rule the parameters match against.
     *
     * @return mixed
     */
    
public function evaluate(array $inputParameters)
    {
        
$this->validateInputParameters($inputParameters);

        foreach(
$this->rules as $rule) {
            
$evaluation $rule->evaluate($inputParameters$this->standardLibrary);
            if (
$evaluation !== false) {
                return 
$evaluation;
            }
        }
        return 
false;
    }

    
/**
     * Ensures all corresponding client-provided parameters match
     * the Ruleset parameter's specified type.
     *
     * @return void
     */
    
private function validateInputParameters(array &$inputParameters)
    {
        foreach(
$this->parameters as $paramName => $param) {
            
$inputParam = isset($inputParameters[$paramName]) ? $inputParameters[$paramName] : null;

            if (
is_null($inputParam) && !is_null($param->getDefault())) {
                
$inputParameters[$paramName] = $param->getDefault();
            } elseif (!
is_null($inputParam)) {
                
$param->validateInputParam($inputParam);
            }
        }
    }

    private function 
createParameters(array $parameters)
    {
        
$parameterList = [];

        foreach(
$parameters as $name => $definition) {
            
$parameterList[$name] = new RulesetParameter($name$definition);
        }

        return 
$parameterList;
    }

    private function 
createRules(array $rules)
    {
        
$rulesList = [];

        forEach(
$rules as $rule) {
            
$ruleObj RuleCreator::create($rule['type'], $rule);
            
$rulesList[] = $ruleObj;
        }
        return 
$rulesList;
    }
}


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