datein hinzufügen

This commit is contained in:
tbS
2025-08-02 22:24:03 +02:00
commit 938d485253
129 changed files with 37532 additions and 0 deletions

47
app/layout/master.php Normal file
View File

@@ -0,0 +1,47 @@
<?php
$page = isset($_GET['page']) ? $_GET['page'] : "manage-apps";
require '../app/layout/topbar.php';
?>
<div class="flex overflow-hidden pt-16 bg-[#09090d]">
<?php
if ($_SESSION["role"] == 'Reseller'){
include '../app/layout/reselleraside.php';
} else{
include '../app/layout/aside.php';
}
?>
<div class="hidden fixed inset-0 z-10" id="sidebarBackdrop"></div>
<div id="main-content" class="overflow-y-auto relative w-full h-full lg:ml-64">
<main>
<?php
try {
if (str_contains($page, ".")) {
throw new ErrorException('');
}
else {
$filePath = __DIR__ . "/../pages/{$page}.php";
if (file_exists($filePath)) {
require $filePath;
}
else {
throw new ErrorException('');
}
}
} catch (ErrorException $ex) {
require '../404_error.html';
}
?>
</main>
<?php
require '../app/layout/footer.php';
?>
</div>
</div>