Update mailbox.php
This commit is contained in:
parent
3b00c8082b
commit
efb6bf4a1f
|
@ -151,24 +151,24 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
||||||
if (!empty($mailboxes)) {
|
if (!empty($mailboxes)) {
|
||||||
foreach ($mailboxes as $mailbox) {
|
foreach ($mailboxes as $mailbox) {
|
||||||
$mailboxdata = mailbox_get_mailbox_details($mailbox);
|
$mailboxdata = mailbox_get_mailbox_details($mailbox);
|
||||||
try {
|
try {
|
||||||
$stmt = $pdo->prepare("SELECT IFNULL(COUNT(`address`), 0) AS `spamalias`
|
$stmt = $pdo->prepare("SELECT IFNULL(COUNT(`address`), 0) AS `spamalias`
|
||||||
FROM `spamalias`
|
FROM `spamalias`
|
||||||
WHERE `goto` = :username
|
WHERE `goto` = :username
|
||||||
AND `validity` >= :unixnow");
|
AND `validity` >= :unixnow");
|
||||||
$stmt->execute(array(
|
$stmt->execute(array(
|
||||||
':username' => $mailboxdata['username'],
|
':username' => $mailboxdata['username'],
|
||||||
':unixnow' => time()
|
':unixnow' => time()
|
||||||
));
|
));
|
||||||
$temp_alias = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
$temp_alias = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
} catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
$_SESSION['return'] = array(
|
$_SESSION['return'] = array(
|
||||||
'type' => 'danger',
|
'type' => 'danger',
|
||||||
'msg' => 'MySQL: '.$e
|
'msg' => 'MySQL: '.$e
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr id="data">
|
<tr id="data">
|
||||||
<td><?=($mailboxdata['is_relayed'] == "0") ? htmlspecialchars($mailboxdata['username']) : '<span data-toggle="tooltip" title="Relayed"><i class="glyphicon glyphicon-forward"></i>' . htmlspecialchars($mailboxdata['username']) . '</span>';?></td>
|
<td><?=($mailboxdata['is_relayed'] == "0") ? htmlspecialchars($mailboxdata['username']) : '<span data-toggle="tooltip" title="Relayed"><i class="glyphicon glyphicon-forward"></i>' . htmlspecialchars($mailboxdata['username']) . '</span>';?></td>
|
||||||
<td><?=htmlspecialchars($mailboxdata['name'], ENT_QUOTES, 'UTF-8');?></td>
|
<td><?=htmlspecialchars($mailboxdata['name'], ENT_QUOTES, 'UTF-8');?></td>
|
||||||
|
|
Loading…
Reference in New Issue