* @author Samuel Tran * @version 04-22-05 * @package MailZu * * Copyright (C) 2005 - 2007 MailZu * License: GPL, see LICENSE */ /** * Include Template class */ include_once('lib/Template.class.php'); /** * Include control panel-specific output functions */ include_once('templates/common.template.php'); /** * Include viewmail template class */ include_once('templates/viewmail.template.php'); /** * Include MailEngine class */ include_once('lib/MailEngine.class.php'); if (!Auth::is_logged_in()) { Auth::print_login_msg(); // Check if user is logged in } $t = new Template(translate('Message View')); $t->printHTMLHeader(); $t->printWelcome(); $t->startMain(); // Break table into 2 columns, put quick links on left side and all other tables on the right startQuickLinksCol(); showQuickLinks(); // Print out My Quick Links startDataDisplayCol(); $mail_id = CmnFns::get_mail_id(); $content_type = CmnFns::getGlobalVar('ctype', GET); $recip_email = CmnFns::getGlobalVar('recip_email', GET); $query_string = CmnFns::querystring_exclude_vars( array('mail_id','recip_email') ); $m = new MailEngine($mail_id,$recip_email); if ( ! $m->msg_found) { CmnFns::do_error_box(translate('Message Unavailable')); } else { echo '
'; echo ' '; echo ' '; printActionButtons(false); echo '
'; MsgDisplayOptions(CmnFns::get_mail_id(),$recip_email); startMessage(); MsgDisplayHeaders($m->struct); // Give a space before the body displays echo '
' . "\n"; if ( ! $m->msg_error ) { MsgDisplayBody($m->struct); } else { echo "

$m->last_error

"; } endMessage(); } endDataDisplayCol(); $t->endMain(); $t->printHTMLFooter(); ?>