Files

25 lines
512 B
PHP
Executable File

<?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 (!$response["data"]["login"]) {
$htmlloader->setPage("login");
$htmlloader->show([], true);
}else{
$htmlloader->setPage("admin_home");
$htmlloader->show([], true);
}