Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit bebb3c3

Browse files
Create tokens.php
1 parent b91a172 commit bebb3c3

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

app/pages/tokens.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
if ($_SESSION['role'] == "Reseller") {
3+
header("location: ./?page=reseller-licenses");
4+
die();
5+
}
6+
if($role == "Manager" && !($permissions & 1)) {
7+
misc\auditLog\send("Attempted (and failed) to view tokens.");
8+
dashboard\primary\error("You weren't granted permission to view this page!");
9+
die();
10+
}
11+
if(!isset($_SESSION['app'])) {
12+
dashboard\primary\error("Application not selected");
13+
die("Application not selected.");
14+
}
15+
?>
16+
17+
<div class="p-4 bg-[#09090d] block sm:flex items-center justify-between lg:mt-1.5">
18+
<div class="mb-1 w-full bg-[#0f0f17] rounded-xl">
19+
<div class="mb-4 p-4">
20+
<?php require '../app/layout/breadcrumb.php'; ?>
21+
<h1 lang class="text-xl font-semibold text-white-900 sm:text-2xl">Tokens</h1>
22+
<p class="text-xs text-gray-500">Given to users to manage blacklists.</p>
23+
<br>
24+
<div class="p-4 flex flex-col">
25+
<div class="overflow-x-auto">
26+
27+
<!-- START TABLE -->
28+
<div class="relative overflow-x-auto shadow-md sm:rounded-lg pt-5">
29+
<table id="kt_datatable_tokens" class="w-full text-sm text-left text-white">
30+
<thead>
31+
<tr class="fw-bolder fs-6 text-blue-700 px-7">
32+
<th class="px-6 py-3">App</th>
33+
<th class="px-6 py-3">Token</th>
34+
<th class="px-6 py-3">Assigned</th>
35+
<th class="px-6 py-3">Banned</th>
36+
<th class="px-6 py-3">Reason</th>
37+
<th class="px-6 py-3">Hash</th>
38+
<th class="px-6 py-3">Type</th>
39+
<th class="px-6 py-3">Status</th>
40+
</tr>
41+
</thead>
42+
</table>
43+
</div>

0 commit comments

Comments
 (0)