-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtournaments.php
More file actions
49 lines (41 loc) · 1.51 KB
/
tournaments.php
File metadata and controls
49 lines (41 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
require_once 'assets/init_session.php';
if (!isset($_SESSION['user_id'])) {
header("Location: /");
exit;
}
$userAgent = $_SERVER['HTTP_USER_AGENT'] ?? '';
if (strpos($userAgent, 'SecteurV-Desktop-App') === false) {
// They are on a regular browser! Kick them to the download page.
header("Location: download_client.php");
exit;
}
require 'db.php';
require 'assets/header.php';
require 'assets/footer.php';
$header = new Header('SECTEUR V - Tournaments');
$header->render();
?>
<main class="dashboard-container" style="text-align: center; padding: 100px 20px; min-height: 60vh;">
<h1 style="font-size: 3rem; color: #FFD700;"><i class="fas fa-tools"></i></h1>
<h2 style="margin-top: 20px; text-transform: uppercase;">Tournaments Coming Soon</h2>
<p style="color: var(--text-secondary); margin-top: 10px;">The ultimate bracket system is currently under construction.</p>
<a href="/" style="display: inline-block; margin-top: 30px; color: var(--primary-purple); text-decoration: none; font-weight: bold;">
<i class="fas fa-arrow-left"></i> Back to Dashboard
</a>
</main>
<script>
// Update Discord RPC to show that the user is on the Tournaments page
document.addEventListener('DOMContentLoaded', () => {
if (window.secteurV) {
window.secteurV.sendRPCData({
details: "Exploring Tournaments",
state: "Waiting for the next cup"
});
}
});
</script>
<?php
$footer = new Footer();
$footer->render();
?>