3require_once 
'./libs/composer/vendor/autoload.php';
 
   17    public function __construct($inspector, $file_path, $file_name)
 
   19        $this->inspector = $inspector;
 
   20        $this->file_path = $file_path;
 
   21        $this->file_name = $file_name;
 
   26        if (!is_dir($this->file_path)) {
 
   44        $stream = fopen($file_name, 
'w+');
 
   47        chmod($file_name, 0755);
 
   67        return Formatter::formatExceptionPlain($this->inspector);
 
   79            $ret .= 
"\n\n-- $title --\n\n";
 
   80            if (count($content) > 0) {
 
   81                foreach ($content as 
$key => $value) {
 
   82                    $key = str_pad(
$key, self::KEY_SPACE);
 
   87                    $indentation = str_pad(
"", self::KEY_SPACE);
 
   88                    $value = implode(
"\n", array_map(
function ($line) use (&$first, $indentation) {
 
   93                        return $indentation . $line;
 
   94                    }, explode(
"\n", print_r($value, 
true))));
 
   96                    $ret .= 
"$key: $value\n";
 
  118        return array( 
"GET Data" => 
$_GET 
  119            , 
"POST Data" => 
$post 
  123            , 
"Server/Request Data" => 
$server 
  124            , 
"Environment Variables" => $_ENV
 
  137        if (isset(
$post[
"password"])) {
 
  138            $post[
"password"] = 
"REMOVED FOR SECURITY";
 
  155        $cookie_content = 
$server[
"HTTP_COOKIE"];
 
  156        $cookie_content = explode(
";", $cookie_content);
 
  158        foreach ($cookie_content as 
$key => $content) {
 
  159            $content_array = explode(
"=", $content);
 
  160            if (trim($content_array[0]) == session_name()) {
 
  161                $content_array[1] = substr($content_array[1], 0, 5) . 
" (SHORTENED FOR SECURITY)";
 
  162                $cookie_content[
$key] = implode(
"=", $content_array);
 
  166        $server[
"HTTP_COOKIE"] = implode(
";", $cookie_content);
 
An exception for terminatinating execution or to throw for unit testing.
Saves error informations into file.
hidePassword(array $post)
Replace passwort from post array with security message.
__construct($inspector, $file_path, $file_name)
pageHeader()
Get the header for the page.
exceptionContent()
Get a short info about the exception.
tablesContent()
Get the header for the page.
tables()
Get the tables that should be rendered.
shortenPHPSessionId(array $server)
Shorts the php session id.
static makeDirParents($a_dir)
Create a new directory and all parent directories.
$stream
PHP stream implementation.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']