-if (!$stripHTML) {
- ob_start();
- displayHtmlHeader( _("Message Details"), $xtra, FALSE );
- $returnValue .= ob_get_contents();
- ob_end_clean();
-}
-
-/* body */
-if (!$stripHTML) {
- $returnValue .= "<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n";
- $returnValue .= '<code>'."\n";
- $returnValue .= '<font face="monospace">'."\n";
- $returnValue .= '<br />'."\n";
-}
-
-
-//session_register("entities");
-//$keys = array_keys($entities);
-//$start = gettimeofday();
-//foreach ($keys as $key) {
-// if (isset($entities[$key])) {
-// if ($entities[$key]['encoding'] == 'base64') {
-// if (!$stripHTML) {
-// $returnValue .= 'img src="message_viewentity.php?ent='.$entities[$key]['entity'].'&name='.$entities[$key]['name'].'"><br />';
-// }
-// }
-// }
-//}
-//session_unregister("entities");
-
-if (count($content) > 0 && !$stripHTML) {
- $returnValue .= '<h2>'._("Bodystructure")."</h2>\n\n";
- $returnValue .= '<table border="1" width="98%"><thead>'.
- '<tr bgcolor="'.$color[7].'">'.
- '<td><b><font color="'.$color[5].'">'._("Entity").'</font></b></td>'.
- '<td><b><font color="'.$color[5].'">'._("Content-Type").'</font></b></td>'.
- '<td><b><font color="'.$color[5].'">'._("Name").'</font></b></td>'.
- '<td><b><font color="'.$color[5].'">'._("Encoding").'</font></b></td>'.
- '</tr>'.
- '</thead><tbody>';
- for ($i = 0; $i < count($content);$i++) {
- $returnValue .= '<tr><td>';
- $returnValue .= $content[$i]['ent'].'</td><td>';
- if (isset($content[$i]['type'])) {
- $returnValue .= $content[$i]['type'];
- } else $returnValue .= 'TEXT/PLAIN';
- $returnValue .= '</td><td>';
- if (isset($content[$i]['name'])) {
- $returnValue .= $content[$i]['name'];
- } else $returnValue .= ' ';
- $returnValue .= '</td><td>';
- if (isset($content[$i]['encoding'])) {
- $returnValue .= $content[$i]['encoding'];
- } else $returnValue .= ' ';
- $returnValue .= '</td></tr>'."\n";