Project import generated by Copybara.

GitOrigin-RevId: 63746295f1a5ab5a619056791995793d65529e62
diff --git a/src/doverifyincident.php b/src/doverifyincident.php
new file mode 100644
index 0000000..c6e58bf
--- /dev/null
+++ b/src/doverifyincident.php
@@ -0,0 +1,19 @@
+<?php
+require_once("core.php");
+security::checkType(security::ADMIN);
+
+if (!security::checkParams("POST", [
+  ["id", security::PARAM_ISINT],
+  ["value", security::PARAM_ISINT]
+])) {
+  security::go(visual::getContinueUrl("incidents.php", "unexpected", "POST"));
+}
+
+$id = (int)$_POST["id"];
+$value = ($_POST["value"] == 1 ? 1 : 0);
+
+if (incidents::verify($id, $value)) {
+  security::go(visual::getContinueUrl("incidents.php", "verified".$value, "POST"));
+} else {
+  security::go(visual::getContinueUrl("incidents.php", "unexpected", "POST"));
+}