End of Day

This commit is contained in:
Kilian Kurt Hofmann committed 2024-04-26 13:17:24 +02:00
1 parent 09ad98ba14
commit 7eb0302faa
4 files changed
+154 -12

No files matched your search

+13
View File
@@ -3,6 +3,19 @@ class Headers
{
static function json()
{
header('Content-Type: text/html; charset=utf-8');
header("Content-Type: text/json");
}
static function html()
{
header('Content-Type: text/html; charset=utf-8');
}
static function redirect(string $newUrl, bool $permanent = FALSE)
{
header('Location: ' . $newUrl, true, $permanent ? 301 : 302);
exit();
}
}