$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;
$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') {