]> git.datanom.net - qtadmin.git/blobdiff - quarantine.php
Handle multi action button
[qtadmin.git] / quarantine.php
index 25529956e07b1f27dfc677e1975feab895408206..3a7570146494d5e7ae7731a790e4dcbfda593bf5 100644 (file)
@@ -21,8 +21,8 @@
             $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;
-            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 +56,9 @@
                 error("Unknown operation [$request]");
                 exit;
             }
                 error("Unknown operation [$request]");
                 exit;
             }
-*/
         }
         }
+
+        return $query;
     }
 
     $util = Utils::getInstance();
     }
 
     $util = Utils::getInstance();
@@ -66,8 +67,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;
             error("Unknown operation [$request]");
             exit;
         }*/
             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.189902 seconds and 5 git commands to generate.