22 lines
431 B
PHP
22 lines
431 B
PHP
<?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();
|
|
} |