-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
102 lines (90 loc) · 4.16 KB
/
Copy pathindex.php
File metadata and controls
102 lines (90 loc) · 4.16 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
declare(strict_types=1);
require 'autoloader.php';
use lib\Utils;
use lib\Databases;
// Incrémente le compteur à chaque hit (GET/POST)
$count = 0;
$error = null;
try {
Databases::increment_unique_visit_count(Utils::hkey());
$count = Databases::get_unique_visit_count();
} catch (Throwable $e) {
// Si SQLite n'est pas dispo, on évite de casser l'affichage
$count = -1; // indicateur d'erreur
$error = $e->getMessage();
}
try {
Databases::increment_visit_count();
} catch (Throwable $e) {
// Ignorer les erreurs d'incrémentation totale
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Magic Bertrand - Unofficial</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="favicon.ico">
<meta property="og:type" content="image/webp">
<meta property="og:title" content="Magic Bertrand - Unofficial">
<meta property="og:description" content="Le site non-officiel de Magic Bertrand">
<meta property="og:url" content="https://magicbertrand.org/">
<meta property="og:image" content="https://magicbertrand.org/assets/magicbertrand.webp">
<meta property="og:image:secure_url" content="https://magicbertrand.org/assets/magicbertrand.webp">
<meta property="twitter:title" content="Magic Bertrand - Unofficial">
<meta property="twitter:description" content="Le site non-officiel de Magic Bertrand">
<meta property="twitter:url" content="https://magicbertrand.org/">
<meta property="twitter:image" content="https://magicbertrand.org/assets/magicbertrand.webp">
</head>
<body>
<?php if ($error): ?>
<div class="badge badge-animated error" role="alert">
Erreur compteur
<span class="small"><?php echo htmlspecialchars($error, ENT_QUOTES, 'UTF-8'); ?></span>
</div>
<?php else: ?>
<div class="badge badge-animated" aria-live="polite" aria-atomic="true">
Visites: <b><?php echo htmlspecialchars((string)$count, ENT_QUOTES, 'UTF-8'); ?></b>
</div>
<?php endif; ?>
<a class="badge-animated gh-btn" href="https://github.com/devleesch001/magicbertrand" target="_blank" rel="noopener noreferrer" aria-label="Ouvrir GitHub dans un nouvel onglet">★ GitHub ★</a>
<main>
<section class="hero" aria-label="Titre principal">
<h1>MAGIC <br>BERTRAND</h1>
</section>
<section class="marquees" aria-hidden="true">
<div class="marquee left" style="--duration: 20s">
<div class="track">
<span>MagicBertrand ✦ MagicBertrand ✦ MagicBertrand ✦ MagicBertrand ✦</span>
<span aria-hidden="true">MagicBertrand ✦ MagicBertrand ✦ MagicBertrand ✦ MagicBertrand ✦</span>
</div>
</div>
<div class="marquee right" style="--duration: 12s">
<div class="track">
<span>MAGICBERTRAND MAGICBERTRAND MAGICBERTRAND MAGICBERTRAND MAGICBERTRAND</span>
<span aria-hidden="true">MAGICBERTRAND MAGICBERTRAND MAGICBERTRAND MAGICBERTRAND MAGICBERTRAND</span>
</div>
</div>
<div class="marquee right" style="--duration: 25s">
<div class="track">
<span>★ MAGIC • BERTRAND • MAGIC • BERTRAND • MAGIC • BERTRAND ★</span>
<span aria-hidden="true">★ MAGIC • BERTRAND • MAGIC • BERTRAND • MAGIC • BERTRAND ★</span>
</div>
</div>
<div class="marquee left" style="--duration: 16s">
<div class="track">
<span>M A G I C B E R T R A N D — M A G I C B E R T R A N D — M A G I C</span>
<span aria-hidden="true">M A G I C B E R T R A N D — M A G I C B E R T R A N D — M A G I C</span>
</div>
</div>
</section>
<div id="chaos" aria-hidden="true"></div>
<div class="sticker">
<iframe src="https://www.youtube.com/embed/_G6Gj7PEGS8?si=2wX1-ORFCnDTVXF5&start=5326" title="Magic Bertrand Mega BG" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
</main>
</body>
</html>