1<?php
2  include_once dirname(__FILE__) . '/config/variables.php';
3  include_once dirname(__FILE__) . '/config/authpostmaster.php';
4  include_once dirname(__FILE__) . "/config/functions.php";
5  include_once dirname(__FILE__) . '/config/httpheaders.php';
6?>
7<!DOCTYPE html>
8<html>
9  <head>
10    <title><?php echo _('Virtual Exim') . ': ' . _('Manage Users'); ?></title>
11    <link rel="stylesheet" href="style.css" type="text/css">
12  </head>
13  <body>
14    <?php include dirname(__FILE__) . '/config/header.php'; ?>
15    <div id="Menu">
16      <a href="adminfailadd.php"><?php echo _('Add Fail'); ?></a><br>
17      <a href="admin.php"><?php echo _('Main Menu'); ?></a><br>
18      <br><a href="logout.php"><?php echo _('Logout'); ?></a><br>
19    </div>
20    <div id="Content">
21    <table align="center">
22      <tr>
23        <th>&nbsp;</th>
24        <th><?php echo _('Failed Address'); ?>..</th>
25      </tr>
26      <?php
27        $query = "SELECT user_id,localpart FROM users
28          WHERE domain_id=:domain_id
29          AND users.type='fail'
30          ORDER BY localpart;";
31        $sth = $dbh->prepare($query);
32        $sth->execute(array(':domain_id'=>$_SESSION['domain_id']));
33        if ($sth->rowCount()) {
34          while ($row = $sth->fetch()) {
35            print '<tr>'
36              . '<td align="center">'
37              . '<a href="adminfaildelete.php?user_id='
38              . $row['user_id']
39              . '&amp;localpart='
40              . $row['localpart']
41              . '"><img class="trash" src="images/trashcan.gif" title="'
42              . _('Delete fail ')
43              . $row['localpart']
44              . '"></a></td>';
45            print '<td>'
46              . '<a href="adminfailchange.php?user_id='
47              . $row['user_id']
48              . '">'
49              . $row['localpart']
50              . '@'
51              . htmlspecialchars($_SESSION['domain'])
52              . '</a></td>';
53            print '</tr>';
54          }
55        }
56      ?>
57    </table>
58    </div>
59  </body>
60</html>
61<!-- Layout and CSS tricks obtained from http://www.bluerobot.com/web/layouts/ -->
62