directory structure

This commit is contained in:
Kilian committed 2024-05-03 12:32:22 +02:00
1 parent e01c3c9fb0
commit 896d1936b6
8 files changed
+14 -9

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
<?php
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();
}
}