diff --git a/app/public/actions/reopen.php b/app/public/actions/reopen.php new file mode 100644 index 0000000..ee79f47 --- /dev/null +++ b/app/public/actions/reopen.php @@ -0,0 +1,27 @@ +prepare($stmt); + $sql->bindParam(':uuid', $_GET['rid']); + $sql->execute(); + } catch (PDOException $e) { + $alert = array("danger", "Failed to reopen request: " . $e->getMessage()); + } + $newURL = "/"; + echo(""); + } else { + $alert = array("danger", "You are not authorised to close this request."); + $newURL = "/view?rid=" . $request['uuid']; + echo(""); + } + +?> diff --git a/app/public/view.php b/app/public/view.php index 1224e54..a2919a1 100644 --- a/app/public/view.php +++ b/app/public/view.php @@ -53,7 +53,9 @@
Manage subscribers - + + Reopen request + Update the request Add attachment(s)