forked from gnanet/mailzu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
read_original.php
56 lines (49 loc) · 1.35 KB
/
read_original.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* This file is the control panel, or "home page" for logged in users.
* It provides a listing of all upcoming reservations
* and functionality to modify or delete them. It also
* provides links to all other parts of the system.
* @author Brian Wong <bwsource@users.sourceforge.net>
* @author Jeremy Fowler
* @version 04-03-07
* @package MailZu
*
* Copyright (C) 2003 - 2017 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('ViewOriginal'));
$t->printHTMLHeader();
$t->startMain();
//$mail_id = CmnFns::get_mail_id();
$mail_id = CmnFns::getGlobalVar('mail_id', GET);
$recip_email = CmnFns::getGlobalVar('recip_email', GET);
if (! Auth::isMailAdmin() && !in_array($recip_email, $_SESSION['sessionMail'])) {
CmnFns::do_error_box(translate('Access Denied'));
} else {
$m = new MailEngine($mail_id,$recip_email);
MsgOriginalOptions();
MsgBodyPlainText($m->raw);
}
$t->endMain();
$t->printHTMLFooter();
?>