Version 1.6 - Strato Verzeichnis unterhalb tc-ingelfingen

This commit is contained in:
Erik Thiele
2026-05-23 23:32:00 +02:00
parent 54ae12771e
commit 7c5790e856
6 changed files with 69 additions and 32 deletions

View File

@@ -5,7 +5,7 @@ require __DIR__ . '/app/bootstrap.php';
require __DIR__ . '/app/views.php';
if ($pdo && isInstalled($pdo)) {
header('Location: /');
header('Location: ' . appPath(''));
exit;
}
@@ -31,7 +31,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && ($_POST['action'] ?? '') === 'setup
trim((string)$_POST['email']),
password_hash((string)$_POST['password'], PASSWORD_DEFAULT),
]);
header('Location: /?page=login');
header('Location: ' . appPath('?page=login'));
exit;
} catch (Throwable $e) {
$installError = $e->getMessage();