data = $data; } /** * @return string */ public function renderErrorPage() { $data = $this->data->getData(); $title = $this->data->getTitle(); $content = $this->renderPageHeader(); $content .= '
';
$content .= '' . htmlspecialchars($title, ENT_QUOTES) . ''; $content .= '' . htmlspecialchars($data['exception']['message'], ENT_QUOTES) . ''; $content .= ' | |
' . $this->renderInformationData($data['information']) . ' | '; $content .= '' . $this->renderExceptionData($data['exception']) . ' | '; $content .= '
';
$content .= '' . htmlspecialchars($exception['message'], ENT_QUOTES) . ''; $content .= "'; $content .= ' |
---|
'; $content .= $this->renderStackTrace($exception['trace']); $content .= ' |
';
$content .= ' ';
$content .= "{$number}";
$content .= "{$trace['class']}";
$content .= "→{$trace['function']}()";
$content .= ' ';
if (!empty($trace['file'])) {
$content .= "';
}
$content .= ' | ';
$content .= '
Xentral-Revision: ';
$content .= !empty($software['xentral_revision']) ? $software['xentral_revision'] : '--';
$content .= "
Xentral-Version: ';
$content .= !empty($software['xentral_version']) ? $software['xentral_version'] : '--';
$content .= "
\n";
$content .= '
FPDF-Version: ';
$content .= !empty($software['fpdf_version']) ? $software['fpdf_version'] : '--';
$content .= "
\n";
$general = $data['php']['general'];
$content .= "
Version: {$version}
({$general['version']})
Server-API: {$general['server_api']}
Binary-Pfad: {$general['binary_dir']}
php.ini: {$general['php_ini_dir']}
%s = %s
';
foreach ($defined as $extension => $isAvailable) {
$failedCssClass = in_array($extension, self::REQUIRED_PHP_EXTENSIONS, true) ? 'error' : 'warning';
$cssClass = $isAvailable === true ? '' : $failedCssClass;
$content .= sprintf('%s
', $cssClass, $extension) . ', ';
}
$content = substr_replace($content, '', -2);
$content .= "
";
foreach ($other as $extension => $available) {
$content .= sprintf('%s
', $extension) . ', ';
}
$content = substr_replace($content, '', -2);
$content .= "
Username: {$env['username']}
Home-Directory: {$env['home_dir']}
Document-Root: {$env['document_root']}
Script-Filename: {$env['script_filename']}
Script-Owner/-Group: {$env['script_owner']}:{$env['script_group']}
Software: ' . (!empty($server['software']) ? $server['software'] : '--') . "
Signatur: ' . (!empty($server['signature']) ? $server['signature'] : '--') . "
Host: {$server['name']}
({$server['addr']}:{$server['port']}
)
Schema: {$request['scheme']}
Method/Uri: {$request['method']} " . htmlspecialchars($request['uri']) . "
Referer: ' . (!empty($request['referer']) ? htmlspecialchars($request['referer']) : '--') . "
UserAgent: ' . (!empty($request['user_agent']) ? $request['user_agent'] : '--') . "
AJAX-Request: ' . ($request['is_ajax'] === true ? 'true' : 'false') . "
HTTPS-Request: ' . ($request['is_https'] === true ? 'true' : 'false') . "
Timestamp: {$request['time']}