Version 1.5

This commit is contained in:
Erik Thiele
2026-05-22 15:14:13 +02:00
parent 9afc6c39a6
commit 820753f089
16 changed files with 6151 additions and 0 deletions

20
reset-install.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
require __DIR__ . '/app/bootstrap.php';
header('Content-Type: text/plain; charset=utf-8');
if (!$pdo) {
echo "Keine Datenbankverbindung vorhanden.\n";
exit;
}
try {
$pdo->exec('DELETE FROM work_logs');
$pdo->exec('DELETE FROM users');
echo "Installation zurueckgesetzt. users und work_logs wurden geleert.\n";
echo "Jetzt install.php aufrufen.\n";
} catch (Throwable $e) {
echo 'Fehler: ' . $e->getMessage() . "\n";
}