include("../config/config.php"); include("../functions/strings.php"); include("../functions/page_header.php"); include("../functions/imap.php"); include("../functions/mailbox.php"); include("../functions/date.php"); $imapConnection = loginToImapServer($username, $key, $imapServerAddress); selectMailbox($imapConnection, $mailbox, $numMessages); echo "
\n"; displayPageHeader($mailbox); $body = fetchBody($imapConnection, $passed_id); getMessageHeaders($imapConnection, $passed_id, $passed_id, $f, $s, $d); $subject = $s[0]; $d[0] = ereg_replace(" ", " ", $d[0]); // $date = explode(" ", trim($d[0])); // $date = getDateString($date); $date = $d[0]; $from_name = getSenderName($f[0]); echo "";
echo "
| ||||||
\n"; $i = 1; while ($i < count($body)-2) { echo "$body[$i] "; $i++; } echo " | ||||||