X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/5ee144945eda9e1688bf8af140e7fee937380eaf..6ba8e4d31ed75b27167ef4841ba5cc0ba8936716:/quarantine.php diff --git a/quarantine.php b/quarantine.php index dd7fa1a..6a2cf5a 100644 --- a/quarantine.php +++ b/quarantine.php @@ -55,6 +55,7 @@ $query[] = "UPDATE msgrcpt SET rs = 'R' WHERE mail_id = '$mail_id'"; } else if ($request == 'delete') { $query[] = "UPDATE msgrcpt SET rs = 'D' WHERE mail_id = '$mail_id'"; + } else if ($request == 'block') { } else { error("Unknown operation [$request]"); exit; @@ -70,11 +71,15 @@ $request = isset($_GET['op']) ? $_GET['op'] : ''; if ($loggedIn && isset($_GET['id'])) { $ids = explode(',', $_GET['id']); - $query = handleRequest($util, $request, $ids); - $success = $DB->update($query); - if (! $success) { - error("Message not released, contact administrator [$query]"); - exit; + if ($request == 'block') { + // call rest server + } else { + $query = handleRequest($util, $request, $ids); + $success = $DB->update($query); + if (! $success) { + error("Message not released, contact administrator [$query]"); + exit; + } } header('Location: index.php'); } else if ($loggedIn && $request == 'purge') {