bare-site/html/lng/nl/about.phtml
cclohmar b93de83519 bare-site v1.0 — zero-dependency PHP micro-framework
7 languages, 3 pages (What/How/Start), 80-line router, 98KB total.

Features:
- No database, no Composer, no build step — just files on disk
- nginx PHP isolation: only index.php executes
- Bot detection with browser heuristic bypass
- Rate limiting, structured weekly logs, geo-location, Telegram alerts
- Multi-language: Accept-Language auto-detect, nav dropdown
- Article sub-page routing via /start/{slug}
- Apache + Caddy config alternatives documented in Start page
- Sample config — no real keys or secrets
2026-06-25 14:12:46 +00:00

1 line
846 B
PHTML

<section class="content-section"><h2 class="section-title">Hoe het werkt</h2><div class="section-content"><h3>Verzoekstroom</h3><p>Elk verzoek komt binnen op <code>index.php</code>. Dat is het enige PHP-bestand dat nginx toestaat — alle andere retourneren 404.</p><h3>Routering</h3><p>URL&rsquo;s worden via constanten in <code>class/config.php</code> aan templates gekoppeld. Nieuwe pagina: definieer de slug, menutekst, maak de template.</p><h3>Talen</h3><p>Elke taal heeft een eigen map onder <code>lng/</code>. De <code>Accept-Language</code>-header van de browser detecteert automatisch de taal.</p><h3>Beveiliging</h3><ul><li>nginx blokkeert alle <code>.php</code> behalve <code>index.php</code></li><li>Sessiecookies: httponly, SameSite=Lax</li><li>Botdetectie met 30+ patronen</li><li>Rate limiting op 5 req/s</li></ul></div></section>