]> git.datanom.net - qtadmin.git/blobdiff - quarantine.php
fix bug
[qtadmin.git] / quarantine.php
index 25529956e07b1f27dfc677e1975feab895408206..4afefabee576c73f9ca947998aa6efa15259dda8 100644 (file)
     }
 
     function handleRequest($request, $ids) {
     }
 
     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;
         $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;
             if ($request == 'release') {
                 $amavisserver = $CFG->amavisd_db_host;
                 $policy_port = $CFG->amavis_policy_port;
@@ -56,8 +58,9 @@
                 error("Unknown operation [$request]");
                 exit;
             }
                 error("Unknown operation [$request]");
                 exit;
             }
-*/
         }
         }
+
+        return $query;
     }
 
     $util = Utils::getInstance();
     }
 
     $util = Utils::getInstance();
@@ -66,8 +69,8 @@
     if ($loggedIn && isset($_GET['id'])) {
         $ids = explode(',', $_GET['id']);
         $query = handleRequest($request, $ids);
     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;
         $mail = unserialize($_SESSION['mailInfo']["$mail_id"]);
         $secret_id = $mail->secret_id;
         $recipient = $mail->recipient;
         } else {
             error("Unknown operation [$request]");
             exit;
         } else {
             error("Unknown operation [$request]");
             exit;
-        }*/
+        }
+        print_r($query);
+        exit;*/
         $success = $DB->update($query);
         if (! $success) {
             error("Message not released, contact administrator [$query]");
         $success = $DB->update($query);
         if (! $success) {
             error("Message not released, contact administrator [$query]");
This page took 0.147001 seconds and 5 git commands to generate.