dashboard - first draft of complete redesign

This commit is contained in:
2026-09-03 08:19:00 +02:00
parent c5c052ac87
commit 87fc43db87
11 changed files with 759 additions and 816 deletions
@@ -8,8 +8,10 @@ class TestStatement extends PDOStatement
public function __construct(private string $sql) {}
public function execute(?array $params = null): bool
{
if (!str_starts_with($this->sql, 'SELECT')) {
file_put_contents($_SERVER['DOCUMENT_ROOT'] . '/writes.jsonl', json_encode([$this->sql, $params]) . "\n", FILE_APPEND);
if (!str_starts_with($this->sql, 'SELECT')) {
$log = str_contains($this->sql, 'WHERE COALESCE(ansage_datum_bis, ansage_datum_von) < ?')
? '/cleanup.jsonl' : '/writes.jsonl';
file_put_contents($_SERVER['DOCUMENT_ROOT'] . $log, json_encode([$this->sql, $params]) . "\n", FILE_APPEND);
}
return true;
}