diff --git a/app/event_guard/event_guard_log_edit.php b/app/event_guard/event_guard_log_edit.php
new file mode 100644
index 0000000000..d86c12eeb5
--- /dev/null
+++ b/app/event_guard/event_guard_log_edit.php
@@ -0,0 +1,307 @@
+
+ Portions created by the Initial Developer are Copyright (C) 2018 - 2021
+ the Initial Developer. All Rights Reserved.
+*/
+
+//includes
+ require_once "root.php";
+ require_once "resources/require.php";
+ require_once "resources/check_auth.php";
+
+//check permissions
+ if (permission_exists('event_guard_log_add') || permission_exists('event_guard_log_edit')) {
+ //access granted
+ }
+ else {
+ echo "access denied";
+ exit;
+ }
+
+//add multi-lingual support
+ $language = new text;
+ $text = $language->get();
+
+//action add or update
+ if (is_uuid($_REQUEST["id"])) {
+ $action = "update";
+ $event_guard_log_uuid = $_REQUEST["id"];
+ $id = $_REQUEST["id"];
+ }
+ else {
+ $action = "add";
+ }
+
+//get http post variables and set them to php variables
+ if (is_array($_POST)) {
+ $hostname = $_POST["hostname"];
+ $log_date = $_POST["log_date"];
+ $filter = $_POST["filter"];
+ $ip_address = $_POST["ip_address"];
+ $extension = $_POST["extension"];
+ $log_status = $_POST["log_status"];
+ }
+
+//process the user data and save it to the database
+ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
+
+ //validate the token
+ $token = new token;
+ if (!$token->validate($_SERVER['PHP_SELF'])) {
+ message::add($text['message-invalid_token'],'negative');
+ header('Location: event_guard_logs.php');
+ exit;
+ }
+
+ //process the http post data by submitted action
+ if ($_POST['action'] != '' && strlen($_POST['action']) > 0) {
+
+ //prepare the array(s)
+ //send the array to the database class
+ switch ($_POST['action']) {
+ case 'copy':
+ if (permission_exists('event_guard_log_add')) {
+ $obj = new database;
+ $obj->copy($array);
+ }
+ break;
+ case 'delete':
+ if (permission_exists('event_guard_log_delete')) {
+ $obj = new database;
+ $obj->delete($array);
+ }
+ break;
+ case 'toggle':
+ if (permission_exists('event_guard_log_update')) {
+ $obj = new database;
+ $obj->toggle($array);
+ }
+ break;
+ }
+
+ //redirect the user
+ if (in_array($_POST['action'], array('copy', 'delete', 'toggle'))) {
+ header('Location: event_guard_log_edit.php?id='.$id);
+ exit;
+ }
+ }
+
+ //check for all required data
+ $msg = '';
+ if (strlen($hostname) == 0) { $msg .= $text['message-required']." ".$text['label-hostname']."
\n"; }
+ if (strlen($log_date) == 0) { $msg .= $text['message-required']." ".$text['label-log_date']."
\n"; }
+ if (strlen($filter) == 0) { $msg .= $text['message-required']." ".$text['label-filter']."
\n"; }
+ if (strlen($ip_address) == 0) { $msg .= $text['message-required']." ".$text['label-ip_address']."
\n"; }
+ if (strlen($extension) == 0) { $msg .= $text['message-required']." ".$text['label-extension']."
\n"; }
+ if (strlen($log_status) == 0) { $msg .= $text['message-required']." ".$text['label-log_status']."
\n"; }
+ if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
+ require_once "resources/header.php";
+ require_once "resources/persist_form_var.php";
+ echo "
| \n";
+ echo $msg." "; + echo " |