}
function handleRequest($request, $ids) {
+ global $CFG;
+
$query = array();
foreach ($ids as $id) {
$mail_id = urldecode($id);
$mail = unserialize($_SESSION['mailInfo']["$mail_id"]);
$secret_id = $mail->secret_id;
$recipient = $mail->recipient;
- echo "$mail_id $secret_id $recipient";
-/*
+ //echo "$mail_id $secret_id $recipient";
+
if ($request == 'release') {
$amavisserver = $CFG->amavisd_db_host;
$policy_port = $CFG->amavis_policy_port;
error("Unknown operation [$request]");
exit;
}
-*/
}
+
+ return $query;
}
$util = Utils::getInstance();
if ($loggedIn && isset($_GET['id'])) {
$ids = explode(',', $_GET['id']);
$query = handleRequest($request, $ids);
- exit;
-/* $mail_id = urldecode($_GET['id']);
+/* exit;
+ $mail_id = urldecode($_GET['id']);
$mail = unserialize($_SESSION['mailInfo']["$mail_id"]);
$secret_id = $mail->secret_id;
$recipient = $mail->recipient;
} else {
error("Unknown operation [$request]");
exit;
- }*/
+ }
+ print_r($query);
+ exit;*/
$success = $DB->update($query);
if (! $success) {
error("Message not released, contact administrator [$query]");