X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/acaa44d26edeac3ee6838eb636e470a085054138..6b8a5143271a6e20dcd73a3fb1f7f0ec7472818a:/quarantine.php diff --git a/quarantine.php b/quarantine.php index 2552995..4afefab 100644 --- a/quarantine.php +++ b/quarantine.php @@ -15,14 +15,16 @@ } 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; @@ -56,8 +58,9 @@ error("Unknown operation [$request]"); exit; } -*/ } + + return $query; } $util = Utils::getInstance(); @@ -66,8 +69,8 @@ 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; @@ -105,7 +108,9 @@ } else { error("Unknown operation [$request]"); exit; - }*/ + } + print_r($query); + exit;*/ $success = $DB->update($query); if (! $success) { error("Message not released, contact administrator [$query]");