summaryrefslogtreecommitdiff
path: root/src/DTS/Functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/DTS/Functions.php')
-rw-r--r--src/DTS/Functions.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/DTS/Functions.php b/src/DTS/Functions.php
index d7ca835..2101cda 100644
--- a/src/DTS/Functions.php
+++ b/src/DTS/Functions.php
@@ -16,3 +16,8 @@ function respondAndExit(int $responseCode, string $header, string $body = '', ar
exit();
}
+
+function redirectAndExit(string $location): void
+{
+ respondAndExit(302, 'Found', '', ["Location: $location"]);
+}