3require_once(
'_include.php');
 
    8if (
$_SERVER[
'REQUEST_METHOD'] !== 
'POST') {
 
   18$text = htmlspecialchars((
string) $_REQUEST[
'text']);
 
   21if (!preg_match(
'/^[0-9a-f]{8}$/', 
$reportId)) {
 
   29} 
catch (Exception $e) {
 
   35        'exceptionMsg'   => 
'not set',
 
   36        'exceptionTrace' => 
'not set',
 
   38        'trackId'        => 
'not set',
 
   40        'version'        => 
$config->getVersion(),
 
   41        'referer'        => 
'not set',
 
   49foreach (
$data as $k => $v) {
 
   50    $data[$k] = htmlspecialchars($v);
 
   58<div 
class=
"box" style=
"background: yellow; color: #888; border: 1px solid #999900; padding: .4em; margin: .5em">
 
   62<
p>Exception: <strong>%s</strong></
p>
 
   66<pre><a href=
"%s">%s</a></pre>
 
   77<
p>Version: <tt>%s</tt></
p>
 
   79<
p>Report ID: <tt>%s</tt></
p>
 
   81<
p>Referer: <tt>%s</tt></
p>
 
   91    $data[
'exceptionMsg'],
 
   92    $data[
'exceptionTrace'],
 
   95    htmlspecialchars(php_uname(
'n')),
 
   96    dirname(dirname(__FILE__)),
 
  107if (!preg_match(
'/\s/', 
$email) && strpos(
$email, 
'@') !== 
false) {
 
  115    $from = ini_get(
'sendmail_from');
 
  117        $from = 
'no-reply@example.org';
 
  122if (
$from === 
'no-reply@example.org' && $replyto !== 
null) {
 
  128if (
$config->getBoolean(
'errorreporting', 
true) && 
$toAddress !== 
'na@example.org') {
 
An exception for terminatinating execution or to throw for unit testing.
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static getSessionFromRequest()
Retrieves the current session.
Attribute-related utility methods.
Temporary autoloader to ensure compatibility with old, non-PSR-2 compliant classes.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
if($_SERVER['REQUEST_METHOD'] !=='POST') $reportId
if( $from===null||$from==='') if($from==='no-reply @example.org' && $replyto !==null) $toAddress
if(!preg_match('/^ $data[0-9a-f]{8}$/', $reportId))
catch(Exception $e) if( $data===null) foreach($data as $k=> $v) $message