configured
[bMailZu.git] / summary.php
blobe5a173bb65c52d9df32e60bf04e28c436bda4b34
1 <?php
2 /**
3 * This file is the messages index in quarantine for logged in users.
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 * @version 04-03-07
11 * @package MailZu
13 * Copyright (C) 2005 - 2007 MailZu
14 * License: GPL, see LICENSE
16 /**
17 * Include Template class
19 include_once('lib/Template.class.php');
20 /**
21 * Include common output functions
23 include_once('templates/common.template.php');
24 /**
25 * Include quarantine-specific output functions
27 include_once('templates/summary.template.php');
29 if (!Auth::is_logged_in()) {
30 Auth::print_login_msg(); // Check if user is logged in
33 $_SESSION['sessionNav'] = "Quarantine Summary";
34 $t = new Template(translate('Quarantine Summary'));
36 $db = new DBEngine();
38 $t->printHTMLHeader();
39 $t->printWelcome();
40 $t->startMain();
42 // Break table into 2 columns, put quick links on left side and all other tables on the right
43 startQuickLinksCol();
44 showQuickLinks(); // Print out My Quick Links
45 startDataDisplayCol();
47 // Print a loading message until database returns...
48 printMessage(translate('Loading Summary...'));
50 $count_array = $db->get_user_summary($_SESSION['sessionMail']);
52 showSummary( $count_array );
54 // Hide the message after the table loads.
55 hideMessage(translate('Loading Summary...'));
57 endDataDisplayCol();
58 $t->endMain();
59 $t->printHTMLFooter();