28 header(
"Content-Type: text/plain");
64 return Formatter::formatExceptionPlain($this->
getInspector());
76 $ret .=
"\n\n-- $title --\n\n";
77 if (count($content) > 0) {
78 foreach ($content as
$key => $value) {
79 $key = str_pad(
$key, self::KEY_SPACE);
84 $indentation = str_pad(
"", self::KEY_SPACE);
85 $value = implode(
"\n", array_map(
function ($line) use (&$first, $indentation) {
90 return $indentation . $line;
91 }, explode(
"\n", print_r($value,
true))));
93 $ret .=
"$key: $value\n";
116 ,
"POST Data" =>
$post 120 ,
"Server/Request Data" =>
$server 121 ,
"Environment Variables" => $_ENV
134 if (isset($post[
"password"])) {
135 $post[
"password"] =
"REMOVED FOR SECURITY";
150 $cookie_content = $server[
"HTTP_COOKIE"];
151 $cookie_content = explode(
";", $cookie_content);
153 foreach ($cookie_content as
$key => $content) {
154 $content_array = explode(
"=", $content);
155 if (trim($content_array[0]) == session_name()) {
156 $content_array[1] = substr($content_array[1], 0, 5) .
" (SHORTENED FOR SECURITY)";
157 $cookie_content[
$key] = implode(
"=", $content_array);
161 $server[
"HTTP_COOKIE"] = implode(
";", $cookie_content);
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
hidePassword(array $post)
Replace passwort from post array with security message.
handle()
Last missing method from HandlerInterface.
tablesContent()
Get the header for the page.
shortenPHPSessionId(array $server)
Shorts the php session id.
exceptionContent()
Get a short info about the exception.
tables()
Get the tables that should be rendered.
pageHeader()
Get the header for the page.
Add a drawing to the header
Create styles array
The data for the language used.
Abstract implementation of a Handler.
content()
Assemble the output for this handler.