/**
  * The mail body / message
  * Extend this to child classes
  *
  * @since ADD MVC 0.0
  */
 public function mail_body()
 {
     $important_info = array("Path" => $_SERVER['REQUEST_URI'], "IP" => $_SERVER['REMOTE_ADDR'], "User Agent" => $_SERVER['HTTP_USER_AGENT']);
     $original_message = $this->getMessage();
     $message = $this->truncated_subject();
     $mail_body_header = "= {$message} =\r\n";
     if ($original_message != $message) {
         $mail_body_header .= "{$original_message}\r\n\r\n";
     }
     return $mail_body_header . debug::return_pretty_var_dump($important_info) . "\r\n" . "== Data ==\r\n" . debug::return_pretty_var_dump($this->data) . "\r\n" . "== Trace ==\r\n" . debug::return_pretty_var_dump($this->getTrace()) . "\r\n" . "== User Latest Request Data ==\r\n" . debug::return_pretty_var_dump(current_user::singleton()->request_data()) . "\r\n";
     "== User Activities ==\r\n" . debug::return_pretty_var_dump(current_user::singleton()->trimmed_activities());
 }
<?php

require '../config.php';
require $C->add_dir . '/init.php';
class this_debug extends debug
{
    public static function current_user_allowed()
    {
        return true;
    }
}
if ($_REQUEST['mode'] == 'reset') {
    session_start();
    session_destroy();
}
$user = current_user::singleton();
?>
<a href="?rand=<?php 
echo rand();
?>
">Test Referer</a>
<a href="?mode=reset">Reset session</a>
<form method="post">
   <label>
      Random Text:
      <textarea name="rand<?php 
echo rand();
?>
"></textarea>
   </label><br />
   <label>Password: <input name="password" type="password" /></label><br />