From 210f27e7c70288c9c71c6d98f497b6d236735fe5 Mon Sep 17 00:00:00 2001 From: marc-go Date: Tue, 29 Sep 2026 14:38:06 +0200 Subject: [PATCH] Add initial implementation of database and HTML loader classes --- database.db | 0 public/html_loader.php | 22 ++++++++++++++++++++++ public/index.php | 7 +++++++ public/main.php | 25 +++++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 database.db create mode 100644 public/html_loader.php create mode 100644 public/index.php create mode 100644 public/main.php diff --git a/database.db b/database.db new file mode 100644 index 0000000..e69de29 diff --git a/public/html_loader.php b/public/html_loader.php new file mode 100644 index 0000000..e4bd2cb --- /dev/null +++ b/public/html_loader.php @@ -0,0 +1,22 @@ +showError('Template "' . $template . '" was not found.'); + + } + } +} \ No newline at end of file diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..473bce8 --- /dev/null +++ b/public/index.php @@ -0,0 +1,7 @@ +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(); + } +} \ No newline at end of file