25 lines
718 B
PHP
25 lines
718 B
PHP
<?php
|
|
class gb {
|
|
function __construct() {
|
|
// Define Paths
|
|
define("APP_PATH", __DIR__ . "/..");
|
|
define("FRONTEND_PATH", __DIR__ . "/");
|
|
define("TEMPLATE_PATH", FRONTEND_PATH . "templates/");
|
|
define("TEMPLATE_CONF", TEMPLATE_PATH . "templates.json");
|
|
|
|
// Check Database and show setup if database not exists
|
|
if (!file_exists(APP_PATH . "database.db")) {
|
|
$this->initSetup();
|
|
}
|
|
}
|
|
|
|
function initSetup() {
|
|
// Load and init the HTML Loader
|
|
require "html_loader.php";
|
|
$html = new HTMLLoader();
|
|
|
|
// Set template to Setup an show it
|
|
$html->setTemplate("setup");
|
|
$html->show();
|
|
}
|
|
} |