Enhance API error handling and response structure; update app name retrieval method
This commit is contained in:
1 parent
95f8e22f11
commit
eb67458ab1
9 files changed
+38
-9
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user