Enhance API error handling, add lastError tracking, and implement admin home template
This commit is contained in:
1 parent
ce0777bb33
commit
205f2e2f73
9 files changed
+257
-33
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user