Enhance API error handling and response structure; update app name retrieval method

This commit is contained in:
marc-go committed 2026-10-10 19:23:11 +02:00
1 parent 95f8e22f11
commit eb67458ab1
9 files changed
+38 -9

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
<?php
// Set debug to true
$debug = true;
// Load Main Library
require "../main.php";
// Init Main Class
$gb = new gb($debug);
// Load and init HTML Loader Library
require FRONTEND_PATH . "html_loader.php";
$htmlloader = new HTMLLoader();
// Check Login
$call = new APICall("auth/isauth.php");
$response = $call->response;
if (!isset($response["data"]["login"])) {
$htmlloader->setPage("login");
$htmlloader->show();
}