]> git.datanom.net - qtadmin.git/blobdiff - quarantine.php
add more debug info
[qtadmin.git] / quarantine.php
index 28bd2bd0a607a42ab823c4bf7707d2c3982f4b95..b6703d866c802ba867f55631ee32a9a8af82ae56 100644 (file)
@@ -25,6 +25,7 @@
             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;
@@ -56,7 +57,7 @@
                 } 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;
@@ -94,7 +95,7 @@
             }
             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');
     }
This page took 0.030081 seconds and 5 git commands to generate.