MailZu 0.8RC3
[bMailZu.git] / messagesSummary.php
blob3f71ed9371930bfc8a6503bff0102c0555be7c0c
1 <?php
2 /**
3 * This file is the messages index in quarantine for the entire site.
4 * It provides a listing of all messages corresponding to:
5 * - attachment ('B')
6 * - spam ('S')
7 * - viruses ('V')
8 * - bad headers ('H')
9 * @author Samuel Tran
10 * @author Jeremy Fowler <jfowler06@users.sourceforge.net>
11 * @version 04-03-2007
12 * @package MailZu
14 * Copyright (C) 2005 - 2007 MailZu
15 * License: GPL, see LICENSE
17 /**
18 * Include Template class
20 include_once('lib/Template.class.php');
21 /**
22 * Include common output functions
24 include_once('templates/common.template.php');
25 /**
26 * Include quarantine-specific output functions
28 include_once('templates/summary.template.php');
30 if (!Auth::is_logged_in()) {
31 Auth::print_login_msg(); // Check if user is logged in
34 $_SESSION['sessionNav'] = "Site Quarantine Summary";
35 $t = new Template(translate('Site Quarantine Summary'));
37 $db = new DBEngine();
39 $t->printHTMLHeader();
40 $t->printWelcome();
41 $t->startMain();
43 // Break table into 2 columns, put quick links on left side and all other tables on the right
44 startQuickLinksCol();
45 showQuickLinks(); // Print out My Quick Links
46 startDataDisplayCol();
48 if (! Auth::isMailAdmin() || ! $conf['app']['siteSummary']) {
49 CmnFns::do_error_box(translate('Access Denied'));
51 } else {
53 // Print a loading message until database returns...
54 printMessage(translate('Loading Summary...'));
56 $count_array = $db->get_site_summary();
58 showSummary( $count_array );
60 // Hide the message after the table loads.
61 hideMessage(translate('Loading Summary...'));
65 endDataDisplayCol();
66 $t->endMain();
67 $t->printHTMLFooter();