bare-site/html/lng/de/start.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

5 lines
1.2 KiB
PHTML

<section class="content-section"><h2 class="section-title">Loslegen</h2><div class="section-content"><h3>⚠️ Schritt 1: Webserver konfigurieren</h3><p><strong>Nicht optional.</strong> bare-site funktioniert nur mit diesen nginx-Regeln. Kopieren Sie <code>nginx/default.conf</code> — die drei kritischen Regeln:</p><pre style="background:#f5f5f5;padding:1rem;border-radius:6px;font-size:0.85rem;line-height:1.5;"># 1. NUR index.php darf PHP ausführen
location = /index.php { fastcgi_pass ...; }
location ~ \.php$ { return 404; }
# 2. Alles über index.php routen
location / { try_files $uri $uri/ /index.php?$query_string; }</pre><h3>2. Dateien auf Server ablegen</h3><pre style="background:#f5f5f5;padding:1rem;border-radius:6px;font-size:0.9rem;">git clone https://your-repo/bare-site.git /var/www/html/</pre><h3>3. Config bearbeiten</h3><p><code>class/config.php</code><code>SITE_NAME</code>, Slugs, Sprachen setzen.</p><h3>4. Seiten erstellen</h3><p><code>.phtml</code>-Dateien in <code>lng/{lang}/</code> — reines HTML, keine Template-Engine.</p><h3>5. Sprache hinzufügen</h3><p>In <code>config.php</code> eintragen, Verzeichnis unter <code>lng/</code> erstellen, übersetzen. Erscheint automatisch im Nav-Dropdown.</p></div></section>