<?php
require_once 'includes/auth.php';
require_once 'includes/db_connect.php';
require_role('admin');

$id = (int)$_GET['id'];

$conn->query("
    UPDATE high_risk_recipients
    SET active=0
    WHERE id=$id
");

header("Location: flagged_recipients.php");
exit;