21 lines
481 B
PHP
21 lines
481 B
PHP
<?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";
|
|
}
|