datein hinzufügen
This commit is contained in:
41
panel/dashboard/layout/master.php
Normal file
41
panel/dashboard/layout/master.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
$page = isset($_GET['page']) ? $_GET['page'] : "customer-actions";
|
||||
require '../../app/layout/topbar.php';
|
||||
?>
|
||||
|
||||
<div class="flex overflow-hidden pt-16 bg-[#09090d]">
|
||||
|
||||
<?php
|
||||
include '/var/www/vhosts/tbs-server.de/lizenz.tbs-server.de/panel/dashboard/layout/customeraside.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>
|
||||
Reference in New Issue
Block a user