Server IP : 10.111.20.6  /  Your IP : 216.73.217.121
Web Server : Apache
System : Linux webm006.cluster111.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : edizioni ( 7252)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (2705) :  /home/edizioni/stampaeweb/../.config/../gulfanatura/saml1190/../saml1190/www/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/edizioni/stampaeweb/../.config/../gulfanatura/saml1190/../saml1190/www/errorreport.php
<?php

require_once('_include.php');

$config = \SimpleSAML\Configuration::getInstance();

// this page will redirect to itself after processing a POST request and sending the email
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
    // the message has been sent. Show error report page

    $t = new \SimpleSAML\XHTML\Template($config, 'errorreport.php', 'errors');
    $t->show();
    exit;
}

$reportId = $_REQUEST['reportId'];
$email = $_REQUEST['email'];
$text = $_REQUEST['text'];

if (!preg_match('/^[0-9a-f]{8}$/', $reportId)) {
    throw new \SimpleSAML\Error\Exception('Invalid reportID');
}

$data = null;
try {
    $session = \SimpleSAML\Session::getSessionFromRequest();
    $data = $session->getData('core:errorreport', $reportId);
} catch (\Exception $e) {
    \SimpleSAML\Logger::error('Error loading error report data: ' . var_export($e->getMessage(), true));
}

if ($data === null) {
    $data = [
        'exceptionMsg'   => 'not set',
        'exceptionTrace' => 'not set',
        'trackId'        => 'not set',
        'url'            => 'not set',
        'referer'        => 'not set',
    ];

    if (isset($session)) {
        $data['trackId'] = $session->getTrackID();
    }
}

$data['reportId'] = $reportId;
$data['version'] = $config->getVersion();
$data['hostname'] = php_uname('n');
$data['directory'] = dirname(dirname(__FILE__));

if ($config->getBoolean('errorreporting', true)) {
    $mail = new SimpleSAML\Utils\EMail('SimpleSAMLphp error report from ' . $email);
    $mail->setData($data);
    $mail->addReplyTo($email);
    $mail->setText($text);
    $mail->send();
    SimpleSAML\Logger::error('Report with id ' . $reportId . ' sent');
}

// redirect the user back to this page to clear the POST request
\SimpleSAML\Utils\HTTP::redirectTrustedURL(\SimpleSAML\Utils\HTTP::getSelfURLNoQuery());