bare-site/html/lng/es/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.1 KiB
PHTML

<section class="content-section"><h2 class="section-title">Empezar</h2><div class="section-content"><h3>⚠️ Paso 1: Configurar el servidor web</h3><p><strong>No es opcional.</strong> bare-site requiere estas reglas de nginx. Copie <code>nginx/default.conf</code> — las tres reglas críticas:</p><pre style="background:#f5f5f5;padding:1rem;border-radius:6px;font-size:0.85rem;line-height:1.5;"># 1. SOLO index.php puede ejecutar PHP
location = /index.php { fastcgi_pass ...; }
location ~ \.php$ { return 404; }
# 2. Todo pasa por index.php
location / { try_files $uri $uri/ /index.php?$query_string; }</pre><h3>2. Colocar los archivos</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</h3><p><code>class/config.php</code><code>SITE_NAME</code>, slugs, idiomas.</p><h3>4. Páginas</h3><p>Archivos <code>.phtml</code> en <code>lng/{lang}/</code> — HTML puro.</p><h3>5. Idioma</h3><p>Añadir en <code>config.php</code>, crear directorio, traducir. Aparece automáticamente.</p></div></section>