From 030d5068f30f302fba39053d31f099163f064a35 Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 6 Feb 2019 09:29:00 +0100 Subject: [PATCH] [Web] Add quick actions handler for quarantine, add trigger --- data/web/inc/triggers.inc.php | 8 +++++ data/web/qhandler.php | 68 +++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 data/web/qhandler.php diff --git a/data/web/inc/triggers.inc.php b/data/web/inc/triggers.inc.php index d9d873513..9b6226133 100644 --- a/data/web/inc/triggers.inc.php +++ b/data/web/inc/triggers.inc.php @@ -10,6 +10,14 @@ if (isset($_POST["verify_tfa_login"])) { } } +if (isset($_POST["quick_release"])) { + quarantine('quick_release', $_POST["quick_release"]); +} + +if (isset($_POST["quick_delete"])) { + quarantine('quick_delete', $_POST["quick_delete"]); +} + if (isset($_POST["login_user"]) && isset($_POST["pass_user"])) { $login_user = strtolower(trim($_POST["login_user"])); $as = check_login($login_user, $_POST["pass_user"]); diff --git a/data/web/qhandler.php b/data/web/qhandler.php new file mode 100644 index 000000000..fd4dc2359 --- /dev/null +++ b/data/web/qhandler.php @@ -0,0 +1,68 @@ + +
+
+
+
+
+
+ +

+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+