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
16 lines
403 B
PHP
16 lines
403 B
PHP
<?php
|
|
// POST/GET form handler
|
|
// Process incoming form data — no database, no SQL injection surface
|
|
|
|
if(!empty($HTML_REQUEST['do'])){
|
|
switch ($HTML_REQUEST['do']) {
|
|
default:
|
|
$redirect = logging_errors("400",$HTML_REQUEST);
|
|
header('Location: '.__URL__ . $redirect);
|
|
exit;
|
|
}
|
|
} else {
|
|
$redirect = logging_errors("405",$HTML_REQUEST);
|
|
header('Location: '.__URL__ . $redirect);
|
|
exit;
|
|
}
|