if (is_object($mail) && true == $util->authorized($mail->recipient)) {
$secret_id = $mail->secret_id;
$recipient = $mail->recipient;
+ $sender = $mail->sender;
if ($request == 'release') {
$amavisserver = $CFG->amavisd_db_host;
} else if ($request == 'delete') {
$query[] = "UPDATE msgrcpt SET rs = 'D' WHERE mail_id = '$mail_id'";
} else if ($request == 'block') {
- $query[] = $recipient;
+ $query[] = $sender;
} else {
error("Unknown operation [$request]");
exit;
}
exit;
}
- header('Location: index.php');
+ header('Location: qtadmin.php');
} else if ($loggedIn && $request == 'purge') {
$marked = unserialize($_SESSION['marked']);
unset($_SESSION['marked']);
error("The following messages was not purged [$str], contact administrator");
exit;
}
- header('Location: index.php');
+ header('Location: qtadmin.php');
} else if ($loggedIn) {
- header('Location: index.php');
+ header('Location: qtadmin.php');
} else {
header('Location: auth.php');
}