<?php
session_start();
$num = $_GET['num'];
if($num != null) {
session_register('num');
$_SESSION['num'] = $num;
if (!isset($_SESSION['num'])) { echo 'Ihre Sitzung ist abgelaufen - <a href=\"index.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=php']php[/URL]\">Login</a><br><br>'; }
}
else
// Verbindung zu dem Postfach erstellen
$mbox = imap_open("{xxx.xxxxx.de:110/pop3}INBOX", "user", "passwort");
//$num = imap_msgno($mbox, $num);
$header = imap_header($mbox, $num);
$subject = $header->subject;
$date = gmdate("d.m.Y H:i:s",strtotime($header->date));
$host = $header->from[0]->host;
$box = $header->from[0]->mailbox;
$from = $box."@".$host;
$date_sent = gmdate("d.m.Y H:i:s",strtotime($header->MailDate));
$size = $header->Size;
$body = quoted_printable_decode(nl2br(imap_body($mbox, $num)));
imap_close($mbox);
?>
<html>
<head>
<title>Detailansicht</title>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
<meta http-equiv="content-language" content="de" />
<link rel="stylesheet" type="text/css" href="postfach.css" />
<script type="text/javascript" src="stmenu1.js"></script>
</head>
<body>
<h1>E-Mail Detailansicht</h1>
<table border="0" width="100%">
<tr>
<td align="right" colspan="2">
<script type="text/javascript">
<!--
stm_bm(['menu61b2',850,'','symbole/blank.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=gif']gif[/URL]",0,"","",0,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand",""],this);
stm_bp("p0",[0,4,0,0,1,1,15,0,100,'',-2,'',-2,50,0,0,'#799BD8','transparent','',3,0,0,'#000000','',-1,-1,0,'transparent','',0,'',-1,-1,0,'transparent','',0,'',-1,-1,0,'transparent','',0,'',-1,-1,0,'transparent','',0,'','','','',0,0,0,0,0,0,0,0]);
stm_ai("p0i0",[0,'Antworten','','',-1,-1,0,'reply.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=php']php[/URL]","_self","","Antworten","symbole/icon_01a.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=gif']gif[/URL]","symbole/icon_01a.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=gif']gif[/URL]",15,15,0,"","",0,0,0,0,1,"#FFFFF7",0,"#FFFFF7",0,"","",2,2,1,1,"#999999","#999999","#666666","#000000","bold 7pt Verdana","bold 7pt Verdana",0,0],100,0);
stm_aix("p0i1","p0i0",[0,'Weiterleiten','','',-1,-1,0,'forward.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=php']php[/URL]","_self","","E-Mail Weiterleiten","symbole/icon_01a.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=gif']gif[/URL]","symbole/icon_01b.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=gif']gif[/URL]",15,15,0,"","",0,0,0,0,1,"#FFFFF7",0,"#FFFFF7",0,"","",3,3,1,1,"#999999","#b3ca32","#666666","#b3ca32"],100,0);
stm_aix("p0i2","p0i0",[0,'Löschen','','',-1,-1,0,'delete.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=php']php[/URL]?num=<?php echo $num ?>","_self","","E-Mail Löschen","symbole/icon_01a.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=gif']gif[/URL]","symbole/icon_02b.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=gif']gif[/URL]",15,15,0,"","",0,0,0,0,1,"#FFFFF7",0,"#FFFFF7",0,"","",3,3,1,1,"#999999","#8CBEE1","#666666","#3ac6e1"],100,0);
stm_aix("p0i3","p0i2",[0,'Zurück zum Posteingang','','',-1,-1,0,'list_mailbox.[URL='http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=php']php[/URL]","_self","","Zurück zum Posteingang"],100,0);
stm_ep();
stm_em();
//-->
</script>
</td>
</tr>
<tr bgcolor="#ffcc00">
<td colspan="2">
<p>
<b>Betreff:</b><br />
<?php echo $subject ?>
</p>
</td>
</tr>
<tr bgcolor="#cccccc">
<td>
<p>
<b>Sender: </b><br />
<b>Gesendet: </b><br />
<b>Empfangen: </b><br />
<b>Größe: </b>
</p>
</td>
<td>
<p>
<?php echo $from ?><br />
<?php echo $date_sent ?><br />
<?php echo $date ?><br />
<?php echo $size ?>
</p>
</td>
</tr>
<tr bgcolor="#ffffcc">
<td colspan="2">
<p>
<b>Inhalt:</b><br />
<?php
//E-Mail Nachricht anzeigen
echo $body
?>
</p>
</td>
</tr>
</table>
</body>
</html>
Alles anzeigen