datein hinzufügen
This commit is contained in:
20
panel/dashboard/layout/customeraside.php
Normal file
20
panel/dashboard/layout/customeraside.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<style>
|
||||
/* Hide vertical scrollbar for Webkit-based browsers (e.g., Chrome, Safari) */
|
||||
*::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<aside id="sidebar"
|
||||
class="flex hidden fixed top-0 left-0 z-20 flex-col flex-shrink-0 pt-16 w-64 h-full duration-200 lg:flex transition-width"
|
||||
aria-label="Sidebar">
|
||||
<div class="flex relative flex-col flex-1 pt-0 min-h-0 bg-[#0f0f17] border-r border-[#0f0f17]">
|
||||
<div class="flex overflow-y-auto flex-col flex-1 pt-5 pb-4">
|
||||
<div class="flex-1 px-3 space-y-1 bg-[#0f0f17]">
|
||||
<div class="mb-4 border-b border-[#0f0f17]">
|
||||
<?php require '../dashboard/layout/profile.php';?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
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>
|
||||
48
panel/dashboard/layout/profile.php
Normal file
48
panel/dashboard/layout/profile.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<script src="https://cdn.keyauth.cc/dashboard/unixtolocal.js"></script>
|
||||
|
||||
<div class="w-full max-w-sm border border-gray-700 rounded-lg shadow">
|
||||
<div class="flex justify-end px-4 pt-2">
|
||||
<button id="dropdownButton" data-dropdown-toggle="dropdown"
|
||||
class="inline-block text-gray-500 hover:opacity-60 focus:ring-0 p-1.5" type="button">
|
||||
<span class="sr-only">Open dropdown</span>
|
||||
<svg class="w-5 h-5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor"
|
||||
viewBox="0 0 16 3">
|
||||
<path
|
||||
d="M2 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm6.041 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM14 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z" />
|
||||
</svg>
|
||||
</button>
|
||||
<!-- Dropdown menu -->
|
||||
<form method="post">
|
||||
<div id="dropdown" class="z-10 hidden text-base list-none bg-[#09090d] rounded-lg shadow w-44">
|
||||
<ul class="py-2" aria-labelledby="dropdownButton">
|
||||
<li>
|
||||
<a href="?page=logout" class="block px-4 py-2 text-sm text-white hover:bg-blue-700">Log Out</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="flex flex-col items-center pb-4">
|
||||
<?php
|
||||
$query = misc\mysql\query("SELECT * FROM `subs` WHERE `app` = ? AND `user` = ? AND `expiry` > ? LIMIT 1", [$_SESSION['panelapp'], $_SESSION['un'], time()]);
|
||||
$row = mysqli_fetch_array($query->result);
|
||||
$subName = $row["subscription"];
|
||||
$subExpiry = $row["expiry"];
|
||||
?>
|
||||
<h5 class="mb-1 text-xl font-medium text-blue-700 stars"><?= $_SESSION["un"]; ?></h5>
|
||||
|
||||
<?php
|
||||
$cssClasses = "text-transparent bg-clip-text bg-gradient-to-r to-blue-600 from-sky-400 text-xs font-black mr-2 px-1.5 py-0.5 rounded border mb-2 mt-2";
|
||||
$cssClasses .= " border-white-400";
|
||||
|
||||
// Finally, output the HTML with the calculated classes
|
||||
echo "<p class=\"$cssClasses\">" . $subName . "</p>";
|
||||
|
||||
?>
|
||||
<label class="text-sm text-gray-400"><b>Expires:</b>
|
||||
<script>
|
||||
document.write(convertTimestamp(<?= $subExpiry; ?>));
|
||||
</script>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user