This commit is contained in:
KIRITO_KMA 2026-04-13 23:05:47 +02:00
parent 1082ef13fb
commit 3c1c3d3e89
28 changed files with 249 additions and 126 deletions

View file

@ -1,18 +1,17 @@
<?php
http_response_code(404);
// Calcule la racine du site à partir du chemin physique de ce fichier
// Ex: /var/www/html/omegakube/pages/404.php → base = /omegakube
$script = $_SERVER['SCRIPT_NAME']; // ex: /omegakube/pages/404.php
$base = rtrim(dirname(dirname($script)), '/'); // remonte 2 niveaux → /omegakube
// Si on est à la racine, $base vaut "" — c'est correct
?>
<?php http_response_code(404); ?>
<!DOCTYPE html>
<html lang="fr" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 — Page non trouvée | OmégaKube</title>
<link rel="stylesheet" href="<?php echo $base; ?>/assets/css/404.css">
<template data-include="/testarea/omegakube/v1bis/components/favicons.html"></template>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
<script src="https://unpkg.com/feather-icons"></script>
<link rel="stylesheet" href="/testarea/omegakube/v1bis/assets/css/404.css">
</head>
<body>
<div class="bg-grid"></div>
@ -33,31 +32,21 @@ $base = rtrim(dirname(dirname($script)), '/'); // remonte 2 niveaux → /omega
<div class="container">
<div class="error-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="40" height="40">
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/>
<line x1="12" y1="9" x2="12" y2="13"/>
<line x1="12" y1="17" x2="12.01" y2="17"/>
</svg>
<i data-feather="alert-triangle"></i>
</div>
<div class="error-code">404</div>
<h1 class="error-title">Dimension introuvable</h1>
<p class="error-message">
Oups&#160;! Il semblerait que vous ayez traversé un <span>portail défectueux</span>.
Cette page n'existe pas dans notre univers... ou peut-être a-t-elle été téléportée ailleurs&#160;?
Oups ! Il semblerait que vous ayez traversé un <span>portail défectueux</span>.
Cette page n'existe pas dans notre univers... ou peut-être a-t-elle été téléportée ailleurs ?
</p>
<div class="buttons">
<a href="<?php echo $base; ?>/index.html" class="btn btn-primary">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="18" height="18">
<path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
<polyline points="9 22 9 12 15 12 15 22"/>
</svg>
<a href="/testarea/omegakube/v1bis/index.html" class="btn btn-primary">
<i data-feather="home"></i>
Retour à l'accueil
</a>
<a href="javascript:history.back()" class="btn btn-secondary">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="18" height="18">
<line x1="19" y1="12" x2="5" y2="12"/>
<polyline points="12 19 5 12 12 5"/>
</svg>
<i data-feather="arrow-left"></i>
Page précédente
</a>
</div>
@ -66,9 +55,9 @@ $base = rtrim(dirname(dirname($script)), '/'); // remonte 2 niveaux → /omega
<div class="footer">
<span class="logo-mini">ΩK</span>
<span>•</span>
<a href="<?php echo $base; ?>/index.html">OmégaKube</a>
<a href="/testarea/omegakube/v1bis/index.html">OmégaKube</a>
</div>
<script src="<?php echo $base; ?>/assets/js/pages/404.js"></script>
<script src="/testarea/omegakube/v1bis/assets/js/pages/404.js"></script>
</body>
</html>