3 require_once(
'_include.php');
8 if (
$_SERVER[
'REQUEST_METHOD'] !==
'POST') {
18 $text = htmlspecialchars((
string) $_REQUEST[
'text']);
30 'exceptionMsg' =>
'not set',
31 'exceptionTrace' =>
'not set',
33 'trackId' =>
'not set',
35 'version' =>
$config->getVersion(),
36 'referer' =>
'not set',
44 foreach (
$data as $k => $v) {
45 $data[$k] = htmlspecialchars($v);
52 <p>Message from
user:</p>
53 <div
class=
"box" style=
"background: yellow; color: #888; border: 1px solid #999900; padding: .4em; margin: .5em">
61 <pre><a href=
"%s">%
s</a></pre>
72 <p>Version: <tt>%
s</tt></p>
74 <p>Report ID: <tt>%
s</tt></p>
76 <p>Referer: <tt>%
s</tt></p>
85 htmlspecialchars(
$text),
86 $data[
'exceptionMsg'],
87 $data[
'exceptionTrace'],
90 htmlspecialchars(php_uname(
'n')),
91 dirname(dirname(__FILE__)),
102 if (!preg_match(
'/\s/',
$email) && strpos(
$email,
'@') !==
false) {
107 $from =
'no-reply@simplesamlphp.org';
112 if (
$config->getBoolean(
'errorreporting',
true) &&
$toAddress !==
'na@example.org') {
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Attribute-related utility methods.
if($_SERVER['REQUEST_METHOD'] !=='POST') $reportId
catch(Exception $e) if($data===null) foreach($data as $k=> $v) $message
Create styles array
The data for the language used.
Temporary autoloader to ensure compatibility with old, non-PSR-2 compliant classes.
static getSessionFromRequest()
Retrieves the current session.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.