!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/3ros/simplesamlphp/modules/saml/lib/   drwxr-xr-x
Free 13.81 GB of 61.93 GB (22.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * Class for representing a SAML 2 error.
 *
 * @package simpleSAMLphp
 * @version $Id$
 */
class sspmod_saml_Error extends SimpleSAML_Error_Exception {

    
/**
     * The top-level status code.
     *
     * @var string
     */
    
private $status;


    
/**
     * The second-level status code, or NULL if no second-level status code is defined.
     *
     * @var string|NULL
     */
    
private $subStatus;


    
/**
     * The status message, or NULL if no status message is defined.
     *
     * @var string|NULL
     */
    
private $statusMessage;


    
/**
     * Create a SAML 2 error.
     *
     * @param string $status  The top-level status code.
     * @param string|NULL $subStatus  The second-level status code. Can be NULL, in which case there is no second-level status code.
     * @param string|NULL $statusMessage  The status message. Can be NULL, in which case there is no status message.
     * @param Exception|NULL $cause  The cause of this exception. Can be NULL.
     */
    
public function __construct($status$subStatus NULL$statusMessage NULLException $cause NULL) {
        
assert('is_string($status)');
        
assert('is_null($subStatus) || is_string($subStatus)');
        
assert('is_null($statusMessage) || is_string($statusMessage)');

        
$st self::shortStatus($status);
        if (
$subStatus !== NULL) {
            
$st .= '/' self::shortStatus($subStatus);
        }
        if (
$statusMessage !== NULL) {
            
$st .= ': ' $statusMessage;
        }
        
parent::__construct($st0$cause);

        
$this->status $status;
        
$this->subStatus $subStatus;
        
$this->statusMessage $statusMessage;
    }


    
/**
     * Get the top-level status code.
     *
     * @return string  The top-level status code.
     */
    
public function getStatus() {
        return 
$this->status;
    }


    
/**
     * Get the second-level status code.
     *
     * @return string|NULL  The second-level status code or NULL if no second-level status code is present.
     */
    
public function getSubStatus() {
        return 
$this->subStatus;
    }


    
/**
     * Get the status message.
     *
     * @return string|NULL  The status message or NULL if no status message is present.
     */
    
public function getStatusMessage() {
        return 
$this->statusMessage;
    }


    
/**
     * Create a SAML2 error from an exception.
     *
     * This function attempts to create a SAML2 error with the appropriate
     * status codes from an arbitrary exception.
     *
     * @param Exception $exception  The original exception.
     * @return sspmod_saml_Error  The new exception.
     */
    
public static function fromException(Exception $exception) {

        if (
$exception instanceof sspmod_saml_Error) {
            
/* Return the original exception unchanged. */
            
return $exception;

        } elseif (
$exception instanceof SimpleSAML_Error_NoPassive) {
            
$e = new self(
                
SAML2_Const::STATUS_RESPONDER,
                
SAML2_Const::STATUS_NO_PASSIVE,
                
$exception->getMessage(),
                
$exception
                
);
        } elseif (
$exception instanceof SimpleSAML_Error_ProxyCountExceeded) {
            
$e = new self(
                
SAML2_Const::STATUS_RESPONDER,
                
SAML2_Const::STATUS_PROXY_COUNT_EXCEEDED,
                
$exception->getMessage(),
                
$exception
                
);

        } else {
            
$e = new self(
                
SAML2_Const::STATUS_RESPONDER,
                
NULL,
                
get_class($exception) . ': ' $exception->getMessage(),
                
$exception
                
);
        }

        return 
$e;
    }


    
/**
     * Create a normal exception from a SAML2 error.
     *
     * This function attempts to reverse the operation of the fromException() function.
     * If it is unable to create a more specific exception, it will return the current
     * object.
     *
     * @see sspmod_saml_Error::fromException()
     *
     * @return SimpleSAML_Error_Exception  An exception representing this error.
     */
    
public function toException() {

        if (
$this->statusMessage !== NULL) {
            
$msg $this->statusMessage;
        } else {
            
$msg '';
        }

        
$e NULL;

        switch (
$this->status) {
        case 
SAML2_Const::STATUS_RESPONDER:
            switch (
$this->subStatus) {
            case 
SAML2_Const::STATUS_NO_PASSIVE:
                
$e = new SimpleSAML_Error_NoPassive($this->statusMessage0$this);
                break;
            }
            break;
        }

        if (
$e === NULL) {
            return 
$this;
        }

        return 
$e;
    }


    
/**
     * Create a short version of the status code.
     *
     * Remove the 'urn:oasis:names:tc:SAML:2.0:status:'-prefix of status codes
     * if it is present.
     *
     * @param string $status  The status code.
     * @return string  A shorter version of the status code.
     */
    
private static function shortStatus($status) {
        
assert('is_string($status)');

        
$t 'urn:oasis:names:tc:SAML:2.0:status:';
        if (
substr($status0strlen($t)) === $t) {
            return 
substr($statusstrlen($t));
        }

        return 
$status;
    }
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.9392 ]--