!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/lib/SimpleSAML/Error/   drwxr-xr-x
Free 12.99 GB of 61.93 GB (20.98%)
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 (6.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Class which wraps simpleSAMLphp errors in exceptions.
 *
 * @author Olav Morken, UNINETT AS.
 * @package simpleSAMLphp
 * @version $Id$
 */
class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception {


    
/**
     * The error code.
     *
     * @var string
     */
    
private $errorCode;


    
/**
     * The error title tag in dictionary.
     *
     * @var string
     */
    
private $dictTitle;


    
/**
     * The error description tag in dictionary.
     *
     * @var string
     */
    
private $dictDescr;


    
/**
     * The name of module which throw error.
     *
     * @var string|NULL
     */
    
private $module NULL;


    
/**
     * The parameters for the error.
     *
     * @var array
     */
    
private $parameters;


    
/**
     * Name of custom include template for the error.
     *
     * @var string|NULL
     */
    
protected $includeTemplate NULL;


    
/**
     * Constructor for this error.
     *
     * The error can either be given as a string, or as an array. If it is an array, the
     * first element in the array (with index 0), is the error code, while the other elements
     * are replacements for the error text.
     *
     * @param mixed $errorCode  One of the error codes defined in the errors dictionary.
     * @param Exception $cause  The exception which caused this fatal error (if any).
     */
    
public function __construct($errorCodeException $cause NULL) {
        
assert('is_string($errorCode) || is_array($errorCode)');

        if (
is_array($errorCode)) {
            
$this->parameters $errorCode;
            unset(
$this->parameters[0]);
            
$this->errorCode $errorCode[0];
        } else {
            
$this->parameters = array();
            
$this->errorCode $errorCode;
        }

        
$moduleCode explode(':'$this->errorCode2);
        if (
count($moduleCode) === 2) {
            
$this->module $moduleCode[0];
            
$this->dictTitle '{' $this->module ':errors:title_' $moduleCode[1] . '}';
            
$this->dictDescr '{' $this->module ':errors:descr_' $moduleCode[1] . '}';
        } else {
            
$this->dictTitle '{errors:title_' $this->errorCode '}';
            
$this->dictDescr '{errors:descr_' $this->errorCode '}';
        }

        if (!empty(
$this->parameters)) {
            
$msg $this->errorCode '(';
            foreach (
$this->parameters as $k => $v) {
                if (
$k === 0) {
                    continue;
                }

                
$msg .= var_export($kTRUE) . ' => ' var_export($vTRUE) . ', ';
            }
            
$msg substr($msg0, -2) . ')';
        } else {
            
$msg $this->errorCode;
        }
        
parent::__construct($msg, -1$cause);
    }


    
/**
     * Retrieve the error code given when throwing this error.
     *
     * @return string  The error code.
     */
    
public function getErrorCode() {
        return 
$this->errorCode;
    }


    
/**
     * Retrieve the error parameters given when throwing this error.
     *
     * @return array  The parameters.
     */
    
public function getParameters() {
        return 
$this->parameters;
    }


    
/**
     * Retrieve the error title tag in dictionary.
     *
     * @return string  The error title tag.
     */
    
public function getDictTitle() {
        return 
$this->dictTitle;
    }


    
/**
     * Retrieve the error description tag in dictionary.
     *
     * @return string  The error description tag.
     */
    
public function getDictDescr() {
        return 
$this->dictDescr;
    }


    
/**
     * Set the HTTP return code for this error.
     *
     * This should be overridden by subclasses who want a different return code than 500 Internal Server Error.
     */
    
protected function setHTTPCode() {
        
header('HTTP/1.0 500 Internal Server Error');
    }


    
/**
     * Save an error report.
     *
     * @return array  The array with the error report data.
     */
    
protected function saveError() {

        
$data $this->format();
        
$emsg array_shift($data);
        
$etrace implode("\n"$data);

        
$reportId SimpleSAML_Utilities::stringToHex(SimpleSAML_Utilities::generateRandomBytes(4));
        
SimpleSAML_Logger::error('Error report with id ' $reportId ' generated.');

        
$config SimpleSAML_Configuration::getInstance();
        
$session SimpleSAML_Session::getInstance();

        if (isset(
$_SERVER['HTTP_REFERER'])) {
            
$referer $_SERVER['HTTP_REFERER'];
            
/*
             * Remove anything after the first '?' or ';', just
             * in case it contains any sensitive data.
             */
            
$referer explode('?'$referer2);
            
$referer $referer[0];
            
$referer explode(';'$referer2);
            
$referer $referer[0];
        } else {
            
$referer 'unknown';
        }
        
$errorData = array(
            
'exceptionMsg' => $emsg,
            
'exceptionTrace' => $etrace,
            
'reportId' => $reportId,
            
'trackId' => $session->getTrackID(),
            
'url' => SimpleSAML_Utilities::selfURLNoQuery(),
            
'version' => $config->getVersion(),
            
'referer' => $referer,
        );
        
$session->setData('core:errorreport'$reportId$errorData);

        return 
$errorData;
    }


    
/**
     * Display this error.
     *
     * This method displays a standard simpleSAMLphp error page and exits.
     */
    
public function show() {

        
$this->setHTTPCode();

        
/* Log the error message. */
        
$this->logError();

        
$errorData $this->saveError();

        
$config SimpleSAML_Configuration::getInstance();

        
$data['showerrors'] = $config->getBoolean('showerrors'true);
        
$data['error'] = $errorData;
        
$data['errorCode'] = $this->errorCode;
        
$data['parameters'] = $this->parameters;
        
$data['module'] = $this->module;
        
$data['dictTitle'] = $this->dictTitle;
        
$data['dictDescr'] = $this->dictDescr;
        
$data['includeTemplate'] = $this->includeTemplate;

        
/* Check if there is a valid technical contact email address. */
        
if($config->getString('technicalcontact_email''na@example.org') !== 'na@example.org') {
            
/* Enable error reporting. */
            
$baseurl SimpleSAML_Utilities::getBaseURL();
            
$data['errorReportAddress'] = $baseurl 'errorreport.php';
        }

        
$session SimpleSAML_Session::getInstance();
        
$attributes $session->getAttributes();
        if (
is_array($attributes) && array_key_exists('mail'$attributes) && count($attributes['mail']) > 0) {
            
$data['email'] = $attributes['mail'][0];
        } else {
            
$data['email'] = '';
        }

        
$show_function $config->getArray('errors.show_function'NULL);
        if (isset(
$show_function)) {
            
assert('is_callable($show_function)');
            
call_user_func($show_function$config$data);
            
assert('FALSE');
        } else {
            
$t = new SimpleSAML_XHTML_Template($config'error.php''errors');
            
$t->data array_merge($t->data$data);
            
$t->show();
        }

        exit;
    }

}

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