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
13 lines
574 B
PHP
13 lines
574 B
PHP
<?php
|
|
define('LANGUAGE_TITLE','Lingua');
|
|
define('PAGE_00_TXT','Cosa');
|
|
define('PAGE_01_TXT','Come');
|
|
define('PAGE_02_TXT','Inizia');
|
|
define('PAGE_03_TXT','');
|
|
define('PAGE_04_TXT','');
|
|
define('PAGE_05_TXT','');
|
|
define('DISCLAIMER','');
|
|
define( 'ERROR_400', '<center><strong>400 Richiesta non valida</strong></center>');
|
|
define( 'ERROR_404', '<center><strong>404 Non trovato</strong></center>');
|
|
define( 'ERROR_500', '<center><strong>500 Errore interno del server</strong></center>');
|
|
define( 'ERROR_default', '<center><strong>Si è verificato un errore</strong></center>');
|