26 header(
"Content-Type: text/plain");
39 .$this->exceptionContent()
40 .$this->tablesContent()
59 return Formatter::formatExceptionPlain($this->
getInspector());
70 $ret .=
"\n\n-- $title --\n\n";
71 if (count($content) > 0) {
72 foreach ($content as $key => $value) {
73 $key = str_pad($key, self::KEY_SPACE);
78 $indentation = str_pad(
"", self::KEY_SPACE);
79 $value = implode(
"\n", array_map(
function($line) use (&$first, $indentation) {
84 return $indentation.$line;
85 }, explode(
"\n", print_r($value,
true))));
87 $ret .=
"$key: $value\n";
110 (
"GET Data" =>
$_GET 111 ,
"POST Data" => $post
115 ,
"Server/Request Data" =>
$server 116 ,
"Environment Variables" => $_ENV
128 if(isset($post[
"password"])) {
129 $post[
"password"] =
"REMOVED FOR SECURITY";
143 $cookie_content = $server[
"HTTP_COOKIE"];
144 $cookie_content = explode(
";", $cookie_content);
146 foreach ($cookie_content as $key => $content) {
147 $content_array = explode(
"=", $content);
148 if(trim($content_array[0]) == session_name()) {
149 $content_array[1] = substr($content_array[1], 0, 5).
" (SHORTENED FOR SECURITY)";
150 $cookie_content[$key] = implode(
"=", $content_array);
154 $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.