- $row = $DB->getMail($id);
- $string = $row->mail_text;
- $sa_tests = null;
- $params['include_bodies'] = false;
- $params['decode_bodies'] = true;
- $params['decode_headers'] = true;
- $params['input'] = $string;
- $params['crlf'] = "\r\n";
-
- $structure = Mail_mimeDecode::decode($params);
- $headers = $structure->headers;
- $output = '<table><tr><th>Header</th><th>Value</th></tr>';
- foreach ($headers as $header => $value) {
- if (is_array($value)) {
- $text = '';
- foreach ($value as $val) {
- if ($text == '') {
- $text = $val;
- } else {
- $text .= "<br/><br/>$val";
- }
- }
- } else {
- $text = $value;
- }
- $output .= "<tr><td class=\"label\">$header</td><td class=\"value\">$text</td></tr>";
- }
- $output .= '</table>';
- echo '<table class="button-menu">';
+ $util->setHeading('Full Headers Report');
+ echo $util->getHeader();
+ echo $util->getHeading();
+
+ $row = $DB->getMail($id);
+ $string = $row->mail_text;
+ $sa_tests = null;
+ $params['include_bodies'] = false;
+ $params['decode_bodies'] = true;
+ $params['decode_headers'] = true;
+ $params['input'] = $string;
+ $params['crlf'] = "\r\n";
+
+ $structure = Mail_mimeDecode::decode($params);
+ $headers = $structure->headers;
+ $output = '<table><tr><th>Header</th><th>Value</th></tr>';
+ foreach ($headers as $header => $value) {
+ if (is_array($value)) {
+ $text = '';
+ foreach ($value as $val) {
+ if ($text == '') {
+ $text = $val;
+ } else {
+ $text .= "<br/><br/>$val";
+ }
+ }
+ } else {
+ $text = $value;
+ }
+ $output .= "<tr><td class=\"label\">$header</td><td class=\"value\">$text</td></tr>";
+ }
+ $output .= '</table>';
+ echo '<table class="button-menu">';