mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-05 04:52:58 +00:00
Add files via upload
This commit is contained in:
@@ -463,14 +463,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Check if user is authenticated
|
// Get token and check authentication
|
||||||
(function() {
|
const token = localStorage.getItem('token');
|
||||||
const token = localStorage.getItem('token');
|
if (!token) {
|
||||||
if (!token) {
|
window.location.href = '/login.html';
|
||||||
window.location.href = '/login.html';
|
}
|
||||||
return;
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
|
|
||||||
// Show notification to user
|
// Show notification to user
|
||||||
function showNotification(message, type = 'info') {
|
function showNotification(message, type = 'info') {
|
||||||
|
|||||||
Reference in New Issue
Block a user