From 42db666026d791c537d900d8091635e27bbf1d63 Mon Sep 17 00:00:00 2001 From: Aboubacar M'houmadi Date: Sun, 8 Feb 2026 22:31:31 +0100 Subject: [PATCH] =?UTF-8?q?test=201.2=20de=20la=20r=C3=A9cup=C3=A9ration?= =?UTF-8?q?=20de=20pp=20discord=20sur=20site=20web?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .htaccess | 18 +- pages/{404.html => 404.php} | 2 + pages/test.html | 49 ++++ pages/test2.html | 459 ++++++++++++++++++++++++++++++++++++ 4 files changed, 525 insertions(+), 3 deletions(-) rename pages/{404.html => 404.php} (98%) create mode 100644 pages/test.html create mode 100644 pages/test2.html diff --git a/.htaccess b/.htaccess index 7e619f0..760a81b 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,17 @@ -# Sécurisation minimale +# Désactiver l'affichage des dossiers Options -Indexes -# Page 404 personnalisée -ErrorDocument 404 omegakube/pages/404.html + + RewriteEngine On + + # Si fichier/dossier n'existe pas → afficher 404.php + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^ pages/404.php [L] + + # Si c'est un dossier sans index → afficher 404.php + RewriteCond %{REQUEST_FILENAME} -d + RewriteCond %{REQUEST_FILENAME}/index.html !-f + RewriteCond %{REQUEST_FILENAME}/index.php !-f + RewriteRule ^ pages/404.php [L] + diff --git a/pages/404.html b/pages/404.php similarity index 98% rename from pages/404.html rename to pages/404.php index aecd028..672218d 100644 --- a/pages/404.html +++ b/pages/404.php @@ -1,3 +1,5 @@ + + diff --git a/pages/test.html b/pages/test.html new file mode 100644 index 0000000..120d0a6 --- /dev/null +++ b/pages/test.html @@ -0,0 +1,49 @@ +
+
+
+
+ + + + +
+ + diff --git a/pages/test2.html b/pages/test2.html new file mode 100644 index 0000000..7f86f6c --- /dev/null +++ b/pages/test2.html @@ -0,0 +1,459 @@ + + + + + + Kuby API Dashboard + + + + +
+
+

Kuby API Dashboard

+
+ Affiche les réponses de l’API Flask: /api/status, /api/user/&​lt;id&​gt;, /api/guilds, /api/guild/&​lt;id&​gt; +
+
+
+ +
+
+
+

+ Statut du bot + non chargé +

+
+ + Affiche le statut global. +
+
{}
+
+ +
+

+ Rechercher un utilisateur + /api/user/&​lt;id&​gt; +

+
+ + +
+ + + +
{}
+
+ +
+

+ Serveurs du bot + /api/guilds +

+
+ + Clique un serveur pour charger ses détails. +
+ +
+ +
{}
+
+ +
+

+ Détails d’un serveur + /api/guild/&​lt;id&​gt; +

+
+ + + Astuce: tu peux aussi cliquer un serveur dans la liste au-dessus. +
+ + + +
{}
+
+
+
+ + + + \ No newline at end of file