forked from gnanet/mailzu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
send_mail.php
57 lines (49 loc) · 1.26 KB
/
send_mail.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
57
<?php
/**
* This file is the 'read mail' page. Logged in users can:
* - read the content of a specific message
* - view the full headers
* - view the original content
* - release or delete the viewed message
*
* @author Nicolas Peyrussie <peyrouz@users.sourceforge.net>
* @version 04-22-05
* @package MailZu
*
* Copyright (C) 2005 - 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 sendmail to admin specific output functions
*/
include_once('templates/sendmail.template.php');
if (!Auth::is_logged_in()) {
Auth::print_login_msg(); // Check if user is logged in
}
$_SESSION['sessionNav'] = "Email Administrator";
$t = new Template(translate('Email Administrator'));
$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();
$action = CmnFns::getGlobalVar('action', POST);
if (isset($action)){
verifyAndSendMail();
}else{
printsendmail();
}
endDataDisplayCol();
$t->endMain();
$t->printHTMLFooter();
?>