Files
FWS-Website/p/404.php
T
BlackAngelTV ae472fe30a fix(pages): make page URLs and assets base-aware
Root-absolute asset paths and ?p= links broke when the site is
served from a subfolder (WAMP). Screenshots from the database and
avatars from creators.json go through fws_url() as well.
2026-09-16 14:35:33 +02:00

22 lines
539 B
PHP

<?php
/**
* FWS Linux — page 404 (incluse par page.php avec http_response_code(404)).
*/
declare(strict_types=1);
if (!isset($title, $extraCss, $extraJs)) {
http_response_code(404);
exit('Page introuvable.');
}
$title = 'Page introuvable | FWS Linux';
?>
<section class="hero">
<h1>Page introuvable</h1>
<p class="lead">Cette page n'existe pas ou a été déplacée.</p>
<div class="hero-actions">
<a class="button button-primary" href="<?= e(fws_url('/?p/index/')) ?>">Retour à l'accueil</a>
</div>
</section>