3 require_once(
'_include.php');
8 if (
$_SERVER[
'REQUEST_METHOD'] !==
'POST') {
17 $email = (string) $_REQUEST[
'email'];
18 $text = htmlspecialchars((
string) $_REQUEST[
'text']);
21 if (!preg_match(
'/^[0-9a-f]{8}$/',
$reportId)) {
35 'exceptionMsg' =>
'not set',
36 'exceptionTrace' =>
'not set',
38 'trackId' =>
'not set',
40 'version' =>
$config->getVersion(),
41 'referer' =>
'not set',
49 foreach (
$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">
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__)),
107 if (!preg_match(
'/\s/',
$email) && strpos(
$email,
'@') !==
false) {
115 $from = ini_get(
'sendmail_from');
117 $from =
'no-reply@example.org';
122 if (
$from ===
'no-reply@example.org' && $replyto !== null) {
128 if (
$config->getBoolean(
'errorreporting',
true) &&
$toAddress !==
'na@example.org') {
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
if(!preg_match('/^ $data[0-9a-f]{8}$/', $reportId))
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Attribute-related utility methods.
if($from===null|| $from==='') if($from==='no-reply @example.org' && $replyto !==null) $toAddress
if($_SERVER['REQUEST_METHOD'] !=='POST') $reportId
catch(Exception $e) if($data===null) foreach($data as $k=> $v) $message
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.