Enhance API error handling, add lastError tracking, and implement admin home template

This commit is contained in:
marc-go committed 2026-10-11 14:37:56 +02:00
1 parent ce0777bb33
commit 205f2e2f73
9 files changed
+257 -33

No files matched your search

+5 -2
View File
@@ -16,7 +16,10 @@ $htmlloader = new HTMLLoader();
$call = new APICall("auth/isauth.php");
$response = $call->response;
if (!isset($response["data"]["login"])) {
if (!$response["data"]["login"]) {
$htmlloader->setPage("login");
$htmlloader->show();
$htmlloader->show([], true);
}else{
$htmlloader->setPage("admin_home");
$htmlloader->show([], true);
}