This commit is contained in:
2026-03-02 01:45:57 +01:00
parent c92f6d7673
commit 3102790842
8 changed files with 317 additions and 85 deletions

View File

@@ -1,3 +1,22 @@
<?php
use App\Database;
use App\Repository\KeaHostRepository;
echo "test";
global $appConfig;
$pdo = Database::createPdo($appConfig);
$hosts = [];
$error = null;
if ($pdo) {
try {
$repo = new KeaHostRepository($pdo);
$hosts = $repo->findAll(50);
} catch (\Exception $e) {
$error = "Datenbankfehler: " . $e->getMessage();
}
} else {
$error = "Datenbankverbindung ist nicht konfiguriert oder deaktiviert.";
}
tpl('kea_dashboard', 'landing', compact('hosts', 'error'));